@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.
- package/dist/chunk-KNYXLM77.js +107 -0
- package/dist/fetch.js +574 -14
- package/dist/index.js +255 -4501
- package/dist/src/fetch/openapi-handler.d.ts +2 -0
- package/dist/src/fetch/openapi-payload-codec.d.ts +3 -1
- package/dist/src/index.d.ts +10 -1
- package/dist/src/json-serializer.d.ts +5 -0
- package/dist/src/openapi-content-builder.d.ts +10 -0
- package/dist/src/openapi-generator.d.ts +51 -0
- package/dist/src/openapi-parameters-builder.d.ts +9 -0
- package/dist/src/openapi-path-parser.d.ts +8 -0
- package/dist/src/openapi.d.ts +3 -0
- package/dist/src/schema-converter.d.ts +16 -0
- package/dist/src/schema-utils.d.ts +11 -0
- package/dist/src/schema.d.ts +12 -0
- package/dist/src/utils.d.ts +1 -0
- package/package.json +4 -4
- package/dist/chunk-UPDKQRQG.js +0 -665
- package/dist/src/generator.d.ts +0 -26
- package/dist/src/zod-to-json-schema.d.ts +0 -43
|
@@ -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
|