@orpc/json-schema 2.0.0-beta.49 → 2.0.0-beta.50
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/coercer.d.ts +26 -26
- package/dist/coercer.js +316 -460
- package/dist/composition-utils.d.ts +4 -8
- package/dist/composition-utils.js +281 -351
- package/dist/constants.js +63 -62
- package/dist/convert.d.ts +16 -16
- package/dist/convert.js +12 -14
- package/dist/index.d.ts +11 -10
- package/dist/index.js +9 -9
- package/dist/ref-utils.d.ts +3 -7
- package/dist/ref-utils.js +178 -228
- package/dist/smart-coercion-handler-plugin.d.ts +13 -13
- package/dist/smart-coercion-handler-plugin.js +46 -49
- package/dist/smart-coercion-link-plugin.d.ts +19 -19
- package/dist/smart-coercion-link-plugin.js +62 -74
- package/dist/standard-json-schema-converter.d.ts +8 -8
- package/dist/standard-json-schema-converter.js +34 -43
- package/dist/types.d.ts +34 -36
- package/dist/types.js +42 -40
- package/dist/utils.d.ts +6 -10
- package/dist/utils.js +59 -91
- package/package.json +6 -6
- package/dist/constants.d.ts +0 -8
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* and exclusively use absolute JSON pointers for `$ref` values.
|
|
4
|
-
*/
|
|
5
|
-
import type { JsonSchema } from './types.ts';
|
|
6
|
-
import type { JsonArraySchema, JsonObjectSchema } from './utils.ts';
|
|
1
|
+
import { JsonSchema } from "./types.js";
|
|
2
|
+
import { JsonArraySchema, JsonObjectSchema } from "./utils.js";
|
|
7
3
|
/**
|
|
8
4
|
* Combines multiple schemas under the requested composition keyword, promoting branch `$defs` to the root.
|
|
9
5
|
*/
|
|
10
|
-
export declare function combineJsonSchemasWithComposition(keyword:
|
|
6
|
+
export declare function combineJsonSchemasWithComposition(keyword: "allOf" | "anyOf" | "oneOf", schemas: JsonSchema[]): JsonSchema;
|
|
11
7
|
export type JsonObjectSchemaEntry = [name: string, schema: JsonSchema, optional: boolean];
|
|
12
8
|
/**
|
|
13
9
|
* Combines object property entries back into a single object schema.
|
|
@@ -38,4 +34,4 @@ export declare function flattenJsonUnionSchema(schema: JsonSchema): JsonSchema[]
|
|
|
38
34
|
* Matches a union made of a single item schema and its array form.
|
|
39
35
|
*/
|
|
40
36
|
export declare function matchArrayableJsonSchema(schema: JsonSchema): undefined | [itemSchema: JsonSchema, arraySchema: JsonArraySchema];
|
|
41
|
-
export declare function deduplicateJsonSchemas(schemas: JsonSchema[]): JsonSchema[];
|
|
37
|
+
export declare function deduplicateJsonSchemas(schemas: JsonSchema[]): JsonSchema[];
|