fix annotation

This commit is contained in:
Dax Raad
2026-03-21 09:11:15 -04:00
parent 9b805e1cc4
commit f80343b875
4 changed files with 13 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ export namespace Auth {
token: Schema.String,
}) {}
const _Info = Schema.Union([Oauth, Api, WellKnown])
const _Info = Schema.Union([Oauth, Api, WellKnown]).annotate({ discriminator: "type", identifier: "Auth" })
export const Info = Object.assign(_Info, { zod: zod(_Info) })
export type Info = Schema.Schema.Type<typeof _Info>