Skip to content

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

417 B
Raw Blame
import { z } from "zod"
import { defineVersion } from "verzod"
import { V13_SCHEMA } from "./13"

// Update the HoppRESTRequestResponses while migrating HoppRESTRequest
export const V14_SCHEMA = V13_SCHEMA.extend({
  v: z.literal("14"),
})

export default defineVersion({
  schema: V14_SCHEMA,
  initial: false,
  up(old: z.infer<typeof V13_SCHEMA>) {
    return {
      ...old,
      v: "14" as const,
    }
  },
})