Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

323 B
Raw Blame
import { z } from "zod"
import { defineVersion } from "verzod"

export const V0_SCHEMA = z.object({
  id: z.optional(z.string()),
  name: z.string(),
  variables: z.array(
    z.object({
      key: z.string(),
      value: z.string(),
    })
  ),
})

export default defineVersion({
  initial: true,
  schema: V0_SCHEMA,
})