@orpc/openapi 0.18.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,43 +0,0 @@
1
- import type { StandardSchemaV1 } from '@standard-schema/spec';
2
- import { type JSONSchema } from 'json-schema-typed/draft-2020-12';
3
- export declare const NON_LOGIC_KEYWORDS: ("$anchor" | "$comment" | "$defs" | "$dynamicAnchor" | "$dynamicRef" | "$id" | "$schema" | "$vocabulary" | "contentEncoding" | "contentMediaType" | "default" | "definitions" | "deprecated" | "description" | "examples" | "format" | "readOnly" | "title" | "writeOnly")[];
4
- export declare const UNSUPPORTED_JSON_SCHEMA: {
5
- not: {};
6
- };
7
- export declare const UNDEFINED_JSON_SCHEMA: {
8
- const: string;
9
- };
10
- export interface ZodToJsonSchemaOptions {
11
- /**
12
- * Max depth of lazy type, if it exceeds.
13
- *
14
- * Used `{}` when reach max depth
15
- *
16
- * @default 5
17
- */
18
- maxLazyDepth?: number;
19
- /**
20
- * The length used to track the depth of lazy type
21
- *
22
- * @internal
23
- */
24
- lazyDepth?: number;
25
- /**
26
- * The expected json schema for input or output zod schema
27
- *
28
- * @default input
29
- */
30
- mode?: 'input' | 'output';
31
- /**
32
- * Track if current level schema is handled custom json schema to prevent recursive
33
- *
34
- * @internal
35
- */
36
- isHandledCustomJSONSchema?: boolean;
37
- }
38
- export declare function zodToJsonSchema(schema: StandardSchemaV1, options?: ZodToJsonSchemaOptions): Exclude<JSONSchema, boolean>;
39
- export declare function extractJSONSchema(schema: JSONSchema, check: (schema: JSONSchema) => boolean, matches?: JSONSchema[]): {
40
- schema: JSONSchema | undefined;
41
- matches: JSONSchema[];
42
- };
43
- //# sourceMappingURL=zod-to-json-schema.d.ts.map