Skip to content

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

409 B
Raw Blame
import { V12_SCHEMA } from "../12"

import { z } from "zod"
import { defineVersion } from "verzod"

import { HoppRESTAuth } from "./auth"

export const V13_SCHEMA = V12_SCHEMA.extend({
  v: z.literal("13"),
  auth: HoppRESTAuth,
})

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