We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9126782 commit e2d72afCopy full SHA for e2d72af
1 file changed
packages/zod/src/v4/core/registries.ts
@@ -66,19 +66,12 @@ export interface JSONSchemaMeta {
66
id?: string | undefined;
67
title?: string | undefined;
68
description?: string | undefined;
69
- examples?: $output[] | undefined;
+ example?: unknown | undefined;
70
+ examples?: unknown[] | Record<string, { value: unknown; [k: string]: unknown }> | undefined; // allow array or example map
71
+ deprecated?: boolean | undefined;
72
[k: string]: unknown;
73
}
74
-// export class $ZodJSONSchemaRegistry<
-// Meta extends JSONSchemaMeta = JSONSchemaMeta,
75
-// Schema extends $ZodType = $ZodType,
76
-// > extends $ZodRegistry<Meta, Schema> {
77
-// toJSONSchema(_schema: Schema): object {
78
-// return {};
79
-// }
80
81
-
82
export interface GlobalMeta extends JSONSchemaMeta {}
83
84
// registries
0 commit comments