typia 10.0.0 → 10.0.2
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/README.md +4 -2
- package/lib/index.mjs +2 -2
- package/lib/json.d.mts +108 -21
- package/lib/json.d.ts +108 -21
- package/lib/json.js +8 -3
- package/lib/json.js.map +1 -1
- package/lib/json.mjs +7 -3
- package/lib/module.d.mts +1 -1
- package/lib/module.d.ts +1 -1
- package/lib/module.js +1 -1
- package/lib/module.js.map +1 -1
- package/lib/programmers/json/JsonApplicationProgrammer.d.mts +2 -2
- package/lib/programmers/json/JsonApplicationProgrammer.d.ts +2 -2
- package/lib/programmers/json/JsonApplicationProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonAssertStringifyProgrammer.js +1 -1
- package/lib/programmers/json/JsonAssertStringifyProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonAssertStringifyProgrammer.mjs +1 -1
- package/lib/programmers/json/JsonIsStringifyProgrammer.js +1 -1
- package/lib/programmers/json/JsonIsStringifyProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonIsStringifyProgrammer.mjs +1 -1
- package/lib/programmers/json/JsonValidateStringifyProgrammer.js +1 -1
- package/lib/programmers/json/JsonValidateStringifyProgrammer.js.map +1 -1
- package/lib/programmers/json/JsonValidateStringifyProgrammer.mjs +1 -1
- package/lib/programmers/protobuf/ProtobufAssertEncodeProgrammer.js +1 -1
- package/lib/programmers/protobuf/ProtobufAssertEncodeProgrammer.js.map +1 -1
- package/lib/programmers/protobuf/ProtobufAssertEncodeProgrammer.mjs +1 -1
- package/lib/programmers/protobuf/ProtobufIsEncodeProgrammer.js +1 -1
- package/lib/programmers/protobuf/ProtobufIsEncodeProgrammer.js.map +1 -1
- package/lib/programmers/protobuf/ProtobufIsEncodeProgrammer.mjs +1 -1
- package/lib/programmers/protobuf/ProtobufValidateEncodeProgrammer.js +1 -1
- package/lib/programmers/protobuf/ProtobufValidateEncodeProgrammer.js.map +1 -1
- package/lib/programmers/protobuf/ProtobufValidateEncodeProgrammer.mjs +1 -1
- package/lib/schemas/json/{__IJsonApplication.d.mts → IJsonSchemaApplication.d.mts} +4 -4
- package/lib/schemas/json/{__IJsonApplication.d.ts → IJsonSchemaApplication.d.ts} +4 -4
- package/lib/schemas/json/{__IJsonApplication.js → IJsonSchemaApplication.js} +1 -1
- package/lib/schemas/json/IJsonSchemaApplication.js.map +1 -0
- package/lib/schemas/json/IJsonSchemaApplication.mjs +2 -0
- package/lib/schemas/json/IJsonSchemaApplication.mjs.map +1 -0
- package/lib/transformers/CallExpressionTransformer.js +3 -1
- package/lib/transformers/CallExpressionTransformer.js.map +1 -1
- package/lib/transformers/CallExpressionTransformer.mjs +3 -1
- package/lib/transformers/features/json/JsonApplicationTransformer.d.mts +5 -0
- package/lib/transformers/features/json/JsonApplicationTransformer.d.ts +5 -0
- package/lib/transformers/features/json/JsonApplicationTransformer.js +85 -92
- package/lib/transformers/features/json/JsonApplicationTransformer.js.map +1 -1
- package/lib/transformers/features/json/JsonApplicationTransformer.mjs +81 -0
- package/package.json +2 -2
- package/src/json.ts +122 -25
- package/src/module.ts +1 -1
- package/src/programmers/json/JsonApplicationProgrammer.ts +17 -14
- package/src/programmers/json/JsonAssertStringifyProgrammer.ts +1 -1
- package/src/programmers/json/JsonIsStringifyProgrammer.ts +1 -1
- package/src/programmers/json/JsonValidateStringifyProgrammer.ts +1 -1
- package/src/programmers/llm/LlmApplicationProgrammer.ts +4 -4
- package/src/programmers/protobuf/ProtobufAssertEncodeProgrammer.ts +1 -1
- package/src/programmers/protobuf/ProtobufIsEncodeProgrammer.ts +1 -1
- package/src/programmers/protobuf/ProtobufValidateEncodeProgrammer.ts +1 -1
- package/src/schemas/json/{__IJsonApplication.ts → IJsonSchemaApplication.ts} +7 -5
- package/src/transformers/CallExpressionTransformer.ts +3 -1
- package/src/transformers/features/json/JsonApplicationTransformer.ts +92 -92
- package/lib/schemas/json/IJsonApplication.d.mts +0 -16
- package/lib/schemas/json/IJsonApplication.d.ts +0 -16
- package/lib/schemas/json/IJsonApplication.js +0 -58
- package/lib/schemas/json/IJsonApplication.js.map +0 -1
- package/lib/schemas/json/IJsonApplication.mjs +0 -2
- package/lib/schemas/json/IJsonApplication.mjs.map +0 -1
- package/lib/schemas/json/__IJsonApplication.js.map +0 -1
- package/lib/schemas/json/__IJsonApplication.mjs +0 -2
- package/lib/schemas/json/__IJsonApplication.mjs.map +0 -1
- package/src/schemas/json/IJsonApplication.ts +0 -77
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ export function validate<T>(input: unknown): IValidation<T>; // detailed
|
|
|
18
18
|
|
|
19
19
|
// JSON FUNCTIONS
|
|
20
20
|
export namespace json {
|
|
21
|
-
export function
|
|
21
|
+
export function schema<T>(): IJsonSchemaUnit<T>; // JSON schema
|
|
22
22
|
export function assertParse<T>(input: string): T; // type safe parser
|
|
23
23
|
export function assertStringify<T>(input: T): string; // safe and faster
|
|
24
24
|
}
|
|
@@ -33,7 +33,9 @@ export namespace llm {
|
|
|
33
33
|
): ILlmController<Model>; // +executor
|
|
34
34
|
// structured output
|
|
35
35
|
export function parameters<P, Model>(): ILlmSchema.IParameters<Model>;
|
|
36
|
-
export function schema<T, Model>(
|
|
36
|
+
export function schema<T, Model>(
|
|
37
|
+
$defs: Record<string, ILlmSchema<Model>>,
|
|
38
|
+
): ILlmSchema<Model>; // type schema
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
// PROTOCOL BUFFER
|
package/lib/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as module from './module.mjs';
|
|
1
|
+
import * as module$1 from './module.mjs';
|
|
2
2
|
export { assert, assertEquals, assertGuard, assertGuardEquals, createAssert, createAssertEquals, createAssertGuard, createAssertGuardEquals, createEquals, createIs, createRandom, createValidate, createValidateEquals, equals, is, random, validate, validateEquals } from './module.mjs';
|
|
3
3
|
import * as functional from './functional.mjs';
|
|
4
4
|
export { functional };
|
|
@@ -22,5 +22,5 @@ export { TypeGuardError } from './TypeGuardError.mjs';
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
export { module as default };
|
|
25
|
+
export { module$1 as default };
|
|
26
26
|
//# sourceMappingURL=index.mjs.map
|
package/lib/json.d.mts
CHANGED
|
@@ -1,8 +1,47 @@
|
|
|
1
|
+
import { IJsonSchemaApplication } from "./schemas/json/IJsonSchemaApplication";
|
|
1
2
|
import { IJsonSchemaCollection } from "./schemas/json/IJsonSchemaCollection";
|
|
2
3
|
import { IJsonSchemaUnit } from "./schemas/json/IJsonSchemaUnit";
|
|
3
4
|
import { IValidation } from "./IValidation";
|
|
4
5
|
import { Primitive } from "./Primitive";
|
|
5
6
|
import { TypeGuardError } from "./TypeGuardError";
|
|
7
|
+
/**
|
|
8
|
+
* > You must configure the generic argument `Type`.
|
|
9
|
+
*
|
|
10
|
+
* JSON schema generator.
|
|
11
|
+
*
|
|
12
|
+
* Creates a JSON schema unit which contains a main JSON schema and its
|
|
13
|
+
* components. Note that, all of the named types are stored in the
|
|
14
|
+
* {@link IJsonSchemaUnit.components} property for the `$ref` referencing.
|
|
15
|
+
*
|
|
16
|
+
* Also, you can specify the OpenAPI version by configuring the second generic
|
|
17
|
+
* argument `Version`. For reference, the default version is `"3.1"`, and key
|
|
18
|
+
* different of `"3.0"` and `"3.1"` is whether supporting the tuple type or
|
|
19
|
+
* not.
|
|
20
|
+
*
|
|
21
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
22
|
+
* @template Type Target type
|
|
23
|
+
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
24
|
+
* @returns JSON schema unit
|
|
25
|
+
*/
|
|
26
|
+
export declare function schema(): never;
|
|
27
|
+
/**
|
|
28
|
+
* JSON schema generator.
|
|
29
|
+
*
|
|
30
|
+
* Creates a JSON schema unit which contains a main JSON schema and its
|
|
31
|
+
* components. Note that, all of the named types are stored in the
|
|
32
|
+
* {@link IJsonSchemaUnit.components} property for the `$ref` referencing.
|
|
33
|
+
*
|
|
34
|
+
* Also, you can specify the OpenAPI version by configuring the second generic
|
|
35
|
+
* argument `Version`. For reference, the default version is `"3.1"`, and key
|
|
36
|
+
* different of `"3.0"` and `"3.1"` is whether supporting the tuple type or
|
|
37
|
+
* not.
|
|
38
|
+
*
|
|
39
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
40
|
+
* @template Type Target type
|
|
41
|
+
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
42
|
+
* @returns JSON schema unit
|
|
43
|
+
*/
|
|
44
|
+
export declare function schema<Type extends unknown, Version extends "3.0" | "3.1" = "3.1">(): IJsonSchemaUnit<Version, Type>;
|
|
6
45
|
/**
|
|
7
46
|
* > You must configure the generic argument `Types`.
|
|
8
47
|
*
|
|
@@ -42,43 +81,91 @@ export declare function schemas(): never;
|
|
|
42
81
|
*/
|
|
43
82
|
export declare function schemas<Types extends unknown[], Version extends "3.0" | "3.1" = "3.1">(): IJsonSchemaCollection<Version, Types>;
|
|
44
83
|
/**
|
|
45
|
-
* > You must configure the generic argument `
|
|
84
|
+
* > You must configure the generic argument `Class`.
|
|
46
85
|
*
|
|
47
|
-
* JSON schema
|
|
86
|
+
* TypeScript class to JSON function schema application.
|
|
48
87
|
*
|
|
49
|
-
* Creates a JSON schema
|
|
50
|
-
*
|
|
51
|
-
*
|
|
88
|
+
* Creates a JSON function schema application from a TypeScript class or
|
|
89
|
+
* interface type containing the target functions. This is an intermediate-level
|
|
90
|
+
* function designed for professional developers who want to build custom LLM
|
|
91
|
+
* function calling schemas or need to transform class methods into structured
|
|
92
|
+
* JSON schema representations.
|
|
93
|
+
*
|
|
94
|
+
* Unlike {@link schema} which creates a schema for a single type, this function
|
|
95
|
+
* analyzes an entire class/interface and generates JSON schemas for all its
|
|
96
|
+
* methods, their parameters, and return types. The returned
|
|
97
|
+
* {@link IJsonSchemaApplication} contains:
|
|
98
|
+
*
|
|
99
|
+
* - {@link IJsonSchemaApplication.functions}: Array of function metadata with
|
|
100
|
+
* parameter and return type schemas
|
|
101
|
+
* - {@link IJsonSchemaApplication.components}: Shared schema components for `$ref`
|
|
102
|
+
* referencing
|
|
103
|
+
*
|
|
104
|
+
* This function serves as the underlying implementation for
|
|
105
|
+
* {@link llm.application}, and can be used when you need to:
|
|
106
|
+
*
|
|
107
|
+
* - Create your own custom LLM function calling schema format
|
|
108
|
+
* - Transform class methods into structured JSON schema format
|
|
109
|
+
* - Build API documentation or code generation tools
|
|
110
|
+
* - Develop alternative LLM integrations beyond the built-in providers
|
|
111
|
+
*
|
|
112
|
+
* For direct LLM function calling implementations, consider using
|
|
113
|
+
* {@link llm.application} instead, which provides provider-specific schemas for
|
|
114
|
+
* ChatGPT, Claude, Gemini, and other LLM providers.
|
|
52
115
|
*
|
|
53
116
|
* Also, you can specify the OpenAPI version by configuring the second generic
|
|
54
|
-
* argument `Version`. For reference, the default version is `"3.1"`, and
|
|
55
|
-
*
|
|
56
|
-
* not.
|
|
117
|
+
* argument `Version`. For reference, the default version is `"3.1"`, and the
|
|
118
|
+
* key difference between `"3.0"` and `"3.1"` is whether supporting the tuple
|
|
119
|
+
* type or not.
|
|
57
120
|
*
|
|
58
121
|
* @author Jeongho Nam - https://github.com/samchon
|
|
59
|
-
* @template
|
|
122
|
+
* @template Class Target class or interface type containing the functions
|
|
60
123
|
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
61
|
-
* @returns JSON schema
|
|
124
|
+
* @returns JSON function schema application
|
|
62
125
|
*/
|
|
63
|
-
export declare function
|
|
126
|
+
export declare function application(): never;
|
|
64
127
|
/**
|
|
65
|
-
* JSON schema
|
|
128
|
+
* TypeScript class to JSON function schema application.
|
|
66
129
|
*
|
|
67
|
-
* Creates a JSON schema
|
|
68
|
-
*
|
|
69
|
-
*
|
|
130
|
+
* Creates a JSON function schema application from a TypeScript class or
|
|
131
|
+
* interface type containing the target functions. This is an intermediate-level
|
|
132
|
+
* function designed for professional developers who want to build custom LLM
|
|
133
|
+
* function calling schemas or need to transform class methods into structured
|
|
134
|
+
* JSON schema representations.
|
|
135
|
+
*
|
|
136
|
+
* Unlike {@link schema} which creates a schema for a single type, this function
|
|
137
|
+
* analyzes an entire class/interface and generates JSON schemas for all its
|
|
138
|
+
* methods, their parameters, and return types. The returned
|
|
139
|
+
* {@link IJsonSchemaApplication} contains:
|
|
140
|
+
*
|
|
141
|
+
* - {@link IJsonSchemaApplication.functions}: Array of function metadata with
|
|
142
|
+
* parameter and return type schemas
|
|
143
|
+
* - {@link IJsonSchemaApplication.components}: Shared schema components for `$ref`
|
|
144
|
+
* referencing
|
|
145
|
+
*
|
|
146
|
+
* This function serves as the underlying implementation for
|
|
147
|
+
* {@link llm.application}, and can be used when you need to:
|
|
148
|
+
*
|
|
149
|
+
* - Create your own custom LLM function calling schema format
|
|
150
|
+
* - Transform class methods into structured JSON schema format
|
|
151
|
+
* - Build API documentation or code generation tools
|
|
152
|
+
* - Develop alternative LLM integrations beyond the built-in providers
|
|
153
|
+
*
|
|
154
|
+
* For direct LLM function calling implementations, consider using
|
|
155
|
+
* {@link llm.application} instead, which provides provider-specific schemas for
|
|
156
|
+
* ChatGPT, Claude, Gemini, and other LLM providers.
|
|
70
157
|
*
|
|
71
158
|
* Also, you can specify the OpenAPI version by configuring the second generic
|
|
72
|
-
* argument `Version`. For reference, the default version is `"3.1"`, and
|
|
73
|
-
*
|
|
74
|
-
* not.
|
|
159
|
+
* argument `Version`. For reference, the default version is `"3.1"`, and the
|
|
160
|
+
* key difference between `"3.0"` and `"3.1"` is whether supporting the tuple
|
|
161
|
+
* type or not.
|
|
75
162
|
*
|
|
76
163
|
* @author Jeongho Nam - https://github.com/samchon
|
|
77
|
-
* @template
|
|
164
|
+
* @template Class Target class or interface type containing the functions
|
|
78
165
|
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
79
|
-
* @returns JSON schema
|
|
166
|
+
* @returns JSON function schema application
|
|
80
167
|
*/
|
|
81
|
-
export declare function
|
|
168
|
+
export declare function application<Class extends object, Version extends "3.0" | "3.1" = "3.1">(): IJsonSchemaApplication<Version, Class>;
|
|
82
169
|
/**
|
|
83
170
|
* > You must configure the generic argument `T`.
|
|
84
171
|
*
|
package/lib/json.d.ts
CHANGED
|
@@ -1,8 +1,47 @@
|
|
|
1
|
+
import { IJsonSchemaApplication } from "./schemas/json/IJsonSchemaApplication";
|
|
1
2
|
import { IJsonSchemaCollection } from "./schemas/json/IJsonSchemaCollection";
|
|
2
3
|
import { IJsonSchemaUnit } from "./schemas/json/IJsonSchemaUnit";
|
|
3
4
|
import { IValidation } from "./IValidation";
|
|
4
5
|
import { Primitive } from "./Primitive";
|
|
5
6
|
import { TypeGuardError } from "./TypeGuardError";
|
|
7
|
+
/**
|
|
8
|
+
* > You must configure the generic argument `Type`.
|
|
9
|
+
*
|
|
10
|
+
* JSON schema generator.
|
|
11
|
+
*
|
|
12
|
+
* Creates a JSON schema unit which contains a main JSON schema and its
|
|
13
|
+
* components. Note that, all of the named types are stored in the
|
|
14
|
+
* {@link IJsonSchemaUnit.components} property for the `$ref` referencing.
|
|
15
|
+
*
|
|
16
|
+
* Also, you can specify the OpenAPI version by configuring the second generic
|
|
17
|
+
* argument `Version`. For reference, the default version is `"3.1"`, and key
|
|
18
|
+
* different of `"3.0"` and `"3.1"` is whether supporting the tuple type or
|
|
19
|
+
* not.
|
|
20
|
+
*
|
|
21
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
22
|
+
* @template Type Target type
|
|
23
|
+
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
24
|
+
* @returns JSON schema unit
|
|
25
|
+
*/
|
|
26
|
+
export declare function schema(): never;
|
|
27
|
+
/**
|
|
28
|
+
* JSON schema generator.
|
|
29
|
+
*
|
|
30
|
+
* Creates a JSON schema unit which contains a main JSON schema and its
|
|
31
|
+
* components. Note that, all of the named types are stored in the
|
|
32
|
+
* {@link IJsonSchemaUnit.components} property for the `$ref` referencing.
|
|
33
|
+
*
|
|
34
|
+
* Also, you can specify the OpenAPI version by configuring the second generic
|
|
35
|
+
* argument `Version`. For reference, the default version is `"3.1"`, and key
|
|
36
|
+
* different of `"3.0"` and `"3.1"` is whether supporting the tuple type or
|
|
37
|
+
* not.
|
|
38
|
+
*
|
|
39
|
+
* @author Jeongho Nam - https://github.com/samchon
|
|
40
|
+
* @template Type Target type
|
|
41
|
+
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
42
|
+
* @returns JSON schema unit
|
|
43
|
+
*/
|
|
44
|
+
export declare function schema<Type extends unknown, Version extends "3.0" | "3.1" = "3.1">(): IJsonSchemaUnit<Version, Type>;
|
|
6
45
|
/**
|
|
7
46
|
* > You must configure the generic argument `Types`.
|
|
8
47
|
*
|
|
@@ -42,43 +81,91 @@ export declare function schemas(): never;
|
|
|
42
81
|
*/
|
|
43
82
|
export declare function schemas<Types extends unknown[], Version extends "3.0" | "3.1" = "3.1">(): IJsonSchemaCollection<Version, Types>;
|
|
44
83
|
/**
|
|
45
|
-
* > You must configure the generic argument `
|
|
84
|
+
* > You must configure the generic argument `Class`.
|
|
46
85
|
*
|
|
47
|
-
* JSON schema
|
|
86
|
+
* TypeScript class to JSON function schema application.
|
|
48
87
|
*
|
|
49
|
-
* Creates a JSON schema
|
|
50
|
-
*
|
|
51
|
-
*
|
|
88
|
+
* Creates a JSON function schema application from a TypeScript class or
|
|
89
|
+
* interface type containing the target functions. This is an intermediate-level
|
|
90
|
+
* function designed for professional developers who want to build custom LLM
|
|
91
|
+
* function calling schemas or need to transform class methods into structured
|
|
92
|
+
* JSON schema representations.
|
|
93
|
+
*
|
|
94
|
+
* Unlike {@link schema} which creates a schema for a single type, this function
|
|
95
|
+
* analyzes an entire class/interface and generates JSON schemas for all its
|
|
96
|
+
* methods, their parameters, and return types. The returned
|
|
97
|
+
* {@link IJsonSchemaApplication} contains:
|
|
98
|
+
*
|
|
99
|
+
* - {@link IJsonSchemaApplication.functions}: Array of function metadata with
|
|
100
|
+
* parameter and return type schemas
|
|
101
|
+
* - {@link IJsonSchemaApplication.components}: Shared schema components for `$ref`
|
|
102
|
+
* referencing
|
|
103
|
+
*
|
|
104
|
+
* This function serves as the underlying implementation for
|
|
105
|
+
* {@link llm.application}, and can be used when you need to:
|
|
106
|
+
*
|
|
107
|
+
* - Create your own custom LLM function calling schema format
|
|
108
|
+
* - Transform class methods into structured JSON schema format
|
|
109
|
+
* - Build API documentation or code generation tools
|
|
110
|
+
* - Develop alternative LLM integrations beyond the built-in providers
|
|
111
|
+
*
|
|
112
|
+
* For direct LLM function calling implementations, consider using
|
|
113
|
+
* {@link llm.application} instead, which provides provider-specific schemas for
|
|
114
|
+
* ChatGPT, Claude, Gemini, and other LLM providers.
|
|
52
115
|
*
|
|
53
116
|
* Also, you can specify the OpenAPI version by configuring the second generic
|
|
54
|
-
* argument `Version`. For reference, the default version is `"3.1"`, and
|
|
55
|
-
*
|
|
56
|
-
* not.
|
|
117
|
+
* argument `Version`. For reference, the default version is `"3.1"`, and the
|
|
118
|
+
* key difference between `"3.0"` and `"3.1"` is whether supporting the tuple
|
|
119
|
+
* type or not.
|
|
57
120
|
*
|
|
58
121
|
* @author Jeongho Nam - https://github.com/samchon
|
|
59
|
-
* @template
|
|
122
|
+
* @template Class Target class or interface type containing the functions
|
|
60
123
|
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
61
|
-
* @returns JSON schema
|
|
124
|
+
* @returns JSON function schema application
|
|
62
125
|
*/
|
|
63
|
-
export declare function
|
|
126
|
+
export declare function application(): never;
|
|
64
127
|
/**
|
|
65
|
-
* JSON schema
|
|
128
|
+
* TypeScript class to JSON function schema application.
|
|
66
129
|
*
|
|
67
|
-
* Creates a JSON schema
|
|
68
|
-
*
|
|
69
|
-
*
|
|
130
|
+
* Creates a JSON function schema application from a TypeScript class or
|
|
131
|
+
* interface type containing the target functions. This is an intermediate-level
|
|
132
|
+
* function designed for professional developers who want to build custom LLM
|
|
133
|
+
* function calling schemas or need to transform class methods into structured
|
|
134
|
+
* JSON schema representations.
|
|
135
|
+
*
|
|
136
|
+
* Unlike {@link schema} which creates a schema for a single type, this function
|
|
137
|
+
* analyzes an entire class/interface and generates JSON schemas for all its
|
|
138
|
+
* methods, their parameters, and return types. The returned
|
|
139
|
+
* {@link IJsonSchemaApplication} contains:
|
|
140
|
+
*
|
|
141
|
+
* - {@link IJsonSchemaApplication.functions}: Array of function metadata with
|
|
142
|
+
* parameter and return type schemas
|
|
143
|
+
* - {@link IJsonSchemaApplication.components}: Shared schema components for `$ref`
|
|
144
|
+
* referencing
|
|
145
|
+
*
|
|
146
|
+
* This function serves as the underlying implementation for
|
|
147
|
+
* {@link llm.application}, and can be used when you need to:
|
|
148
|
+
*
|
|
149
|
+
* - Create your own custom LLM function calling schema format
|
|
150
|
+
* - Transform class methods into structured JSON schema format
|
|
151
|
+
* - Build API documentation or code generation tools
|
|
152
|
+
* - Develop alternative LLM integrations beyond the built-in providers
|
|
153
|
+
*
|
|
154
|
+
* For direct LLM function calling implementations, consider using
|
|
155
|
+
* {@link llm.application} instead, which provides provider-specific schemas for
|
|
156
|
+
* ChatGPT, Claude, Gemini, and other LLM providers.
|
|
70
157
|
*
|
|
71
158
|
* Also, you can specify the OpenAPI version by configuring the second generic
|
|
72
|
-
* argument `Version`. For reference, the default version is `"3.1"`, and
|
|
73
|
-
*
|
|
74
|
-
* not.
|
|
159
|
+
* argument `Version`. For reference, the default version is `"3.1"`, and the
|
|
160
|
+
* key difference between `"3.0"` and `"3.1"` is whether supporting the tuple
|
|
161
|
+
* type or not.
|
|
75
162
|
*
|
|
76
163
|
* @author Jeongho Nam - https://github.com/samchon
|
|
77
|
-
* @template
|
|
164
|
+
* @template Class Target class or interface type containing the functions
|
|
78
165
|
* @template Version Version of OpenAPI specification. Default is 3.1
|
|
79
|
-
* @returns JSON schema
|
|
166
|
+
* @returns JSON function schema application
|
|
80
167
|
*/
|
|
81
|
-
export declare function
|
|
168
|
+
export declare function application<Class extends object, Version extends "3.0" | "3.1" = "3.1">(): IJsonSchemaApplication<Version, Class>;
|
|
82
169
|
/**
|
|
83
170
|
* > You must configure the generic argument `T`.
|
|
84
171
|
*
|
package/lib/json.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.schemas = schemas;
|
|
4
3
|
exports.schema = schema;
|
|
4
|
+
exports.schemas = schemas;
|
|
5
|
+
exports.application = application;
|
|
5
6
|
exports.assertParse = assertParse;
|
|
6
7
|
exports.isParse = isParse;
|
|
7
8
|
exports.validateParse = validateParse;
|
|
@@ -18,12 +19,16 @@ exports.createIsStringify = createIsStringify;
|
|
|
18
19
|
exports.createValidateStringify = createValidateStringify;
|
|
19
20
|
const NoTransformConfigurationError_1 = require("./transformers/NoTransformConfigurationError");
|
|
20
21
|
/** @internal */
|
|
22
|
+
function schema() {
|
|
23
|
+
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("json.schema");
|
|
24
|
+
}
|
|
25
|
+
/** @internal */
|
|
21
26
|
function schemas() {
|
|
22
27
|
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("json.schemas");
|
|
23
28
|
}
|
|
24
29
|
/** @internal */
|
|
25
|
-
function
|
|
26
|
-
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("json.
|
|
30
|
+
function application() {
|
|
31
|
+
(0, NoTransformConfigurationError_1.NoTransformConfigurationError)("json.application");
|
|
27
32
|
}
|
|
28
33
|
/** @internal */
|
|
29
34
|
function assertParse() {
|
package/lib/json.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.js","sourceRoot":"","sources":["../src/json.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"json.js","sourceRoot":"","sources":["../src/json.ts"],"names":[],"mappings":";;AA+DA,wBAEC;AA8CD,0BAEC;AA8FD,kCAEC;AAsDD,kCAEC;AAyCD,0BAEC;AA6CD,sCAEC;AA8BD,8BAEC;AAyDD,0CAEC;AA+CD,kCAEC;AAmDD,8CAEC;AAy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AC;AAC1D,CAAC;AAuBD,gBAAgB;AAChB,SAAgB,mBAAmB;IAGjC,IAAA,6DAA6B,EAAC,0BAA0B,CAAC,CAAC;AAC5D,CAAC;AAqBD,gBAAgB;AAChB,SAAgB,eAAe;IAC7B,IAAA,6DAA6B,EAAC,sBAAsB,CAAC,CAAC;AACxD,CAAC;AA2BD,gBAAgB;AAChB,SAAgB,qBAAqB;IACnC,IAAA,6DAA6B,EAAC,4BAA4B,CAAC,CAAC;AAC9D,CAAC;AAqBD,gBAAgB;AAChB,SAAgB,iBAAiB;IAC/B,IAAA,6DAA6B,EAAC,wBAAwB,CAAC,CAAC;AAC1D,CAAC;AAuBD,gBAAgB;AAChB,SAAgB,uBAAuB;IAGrC,IAAA,6DAA6B,EAAC,8BAA8B,CAAC,CAAC;AAChE,CAAC"}
|
package/lib/json.mjs
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { NoTransformConfigurationError } from './transformers/NoTransformConfigurationError.mjs';
|
|
2
2
|
|
|
3
|
+
/** @internal */
|
|
4
|
+
function schema() {
|
|
5
|
+
NoTransformConfigurationError("json.schema");
|
|
6
|
+
}
|
|
3
7
|
/** @internal */
|
|
4
8
|
function schemas() {
|
|
5
9
|
NoTransformConfigurationError("json.schemas");
|
|
6
10
|
}
|
|
7
11
|
/** @internal */
|
|
8
|
-
function
|
|
9
|
-
NoTransformConfigurationError("json.
|
|
12
|
+
function application() {
|
|
13
|
+
NoTransformConfigurationError("json.application");
|
|
10
14
|
}
|
|
11
15
|
/** @internal */
|
|
12
16
|
function assertParse() {
|
|
@@ -65,5 +69,5 @@ function createValidateStringify() {
|
|
|
65
69
|
NoTransformConfigurationError("json.createValidateStringify");
|
|
66
70
|
}
|
|
67
71
|
|
|
68
|
-
export { assertParse, assertStringify, createAssertParse, createAssertStringify, createIsParse, createIsStringify, createStringify, createValidateParse, createValidateStringify, isParse, isStringify, schema, schemas, stringify, validateParse, validateStringify };
|
|
72
|
+
export { application, assertParse, assertStringify, createAssertParse, createAssertStringify, createIsParse, createIsStringify, createStringify, createValidateParse, createValidateStringify, isParse, isStringify, schema, schemas, stringify, validateParse, validateStringify };
|
|
69
73
|
//# sourceMappingURL=json.mjs.map
|
package/lib/module.d.mts
CHANGED
|
@@ -14,7 +14,7 @@ export * as protobuf from "./protobuf";
|
|
|
14
14
|
export * as reflect from "./reflect";
|
|
15
15
|
export * as tags from "./tags";
|
|
16
16
|
export * from "./schemas/metadata/IJsDocTagInfo";
|
|
17
|
-
export * from "./schemas/json/
|
|
17
|
+
export * from "./schemas/json/IJsonSchemaApplication";
|
|
18
18
|
export * from "./schemas/json/IJsonSchemaCollection";
|
|
19
19
|
export * from "./schemas/json/IJsonSchemaUnit";
|
|
20
20
|
export * from "./AssertionGuard";
|
package/lib/module.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export * as protobuf from "./protobuf";
|
|
|
14
14
|
export * as reflect from "./reflect";
|
|
15
15
|
export * as tags from "./tags";
|
|
16
16
|
export * from "./schemas/metadata/IJsDocTagInfo";
|
|
17
|
-
export * from "./schemas/json/
|
|
17
|
+
export * from "./schemas/json/IJsonSchemaApplication";
|
|
18
18
|
export * from "./schemas/json/IJsonSchemaCollection";
|
|
19
19
|
export * from "./schemas/json/IJsonSchemaUnit";
|
|
20
20
|
export * from "./AssertionGuard";
|
package/lib/module.js
CHANGED
|
@@ -66,7 +66,7 @@ exports.protobuf = __importStar(require("./protobuf"));
|
|
|
66
66
|
exports.reflect = __importStar(require("./reflect"));
|
|
67
67
|
exports.tags = __importStar(require("./tags"));
|
|
68
68
|
__exportStar(require("./schemas/metadata/IJsDocTagInfo"), exports);
|
|
69
|
-
__exportStar(require("./schemas/json/
|
|
69
|
+
__exportStar(require("./schemas/json/IJsonSchemaApplication"), exports);
|
|
70
70
|
__exportStar(require("./schemas/json/IJsonSchemaCollection"), exports);
|
|
71
71
|
__exportStar(require("./schemas/json/IJsonSchemaUnit"), exports);
|
|
72
72
|
__exportStar(require("./AssertionGuard"), exports);
|
package/lib/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,wBAEC;AA+DD,kCAEC;AAoDD,gBAEC;AAqDD,4BAEC;AAgED,oCAEC;AAuED,8CAEC;AAuDD,wBAEC;AAuDD,wCAEC;AA0CD,wBAEC;AA+BD,oCAEC;AA0DD,8CAEC;AAsBD,4BAEC;AAuBD,wCAGC;AA4BD,gDAEC;AA0DD,0DAIC;AAsBD,oCAEC;AAyBD,oDAGC;AA0BD,oCAEC;AAt3BD,gGAA6F;AAQ7F,2DAA2C;AAC3C,+CAA+B;AAC/B,6CAA6B;AAC7B,+CAA+B;AAC/B,+CAA+B;AAC/B,yDAAyC;AACzC,uDAAuC;AACvC,qDAAqC;AACrC,+CAA+B;AAE/B,mEAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,wBAEC;AA+DD,kCAEC;AAoDD,gBAEC;AAqDD,4BAEC;AAgED,oCAEC;AAuED,8CAEC;AAuDD,wBAEC;AAuDD,wCAEC;AA0CD,wBAEC;AA+BD,oCAEC;AA0DD,8CAEC;AAsBD,4BAEC;AAuBD,wCAGC;AA4BD,gDAEC;AA0DD,0DAIC;AAsBD,oCAEC;AAyBD,oDAGC;AA0BD,oCAEC;AAt3BD,gGAA6F;AAQ7F,2DAA2C;AAC3C,+CAA+B;AAC/B,6CAA6B;AAC7B,+CAA+B;AAC/B,+CAA+B;AAC/B,yDAAyC;AACzC,uDAAuC;AACvC,qDAAqC;AACrC,+CAA+B;AAE/B,mEAAiD;AACjD,wEAAsD;AACtD,uEAAqD;AACrD,iEAA+C;AAC/C,mDAAiC;AACjC,qDAAmC;AACnC,gDAA8B;AAC9B,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AsBD,gBAAgB;AAChB,SAAgB,cAAc;IAE5B,IAAA,6DAA6B,EAAC,gBAAgB,CAAC,CAAC;AAClD,CAAC;AA2BD,gBAAgB;AAChB,SAAgB,kBAAkB;IAChC,IAAA,6DAA6B,EAAC,oBAAoB,CAAC,CAAC;AACtD,CAAC;AAyDD,gBAAgB;AAChB,SAAgB,uBAAuB;IAGrC,IAAA,6DAA6B,EAAC,yBAAyB,CAAC,CAAC;AAC3D,CAAC;AAqBD,gBAAgB;AAChB,SAAgB,YAAY;IAC1B,IAAA,6DAA6B,EAAC,cAAc,CAAC,CAAC;AAChD,CAAC;AAwBD,gBAAgB;AAChB,SAAgB,oBAAoB;IAElC,IAAA,6DAA6B,EAAC,sBAAsB,CAAC,CAAC;AACxD,CAAC;AAyBD,gBAAgB;AAChB,SAAgB,YAAY;IAC1B,IAAA,6DAA6B,EAAC,cAAc,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MetadataFactory } from "../../factories/MetadataFactory";
|
|
2
|
-
import {
|
|
2
|
+
import { IJsonSchemaApplication } from "../../schemas/json/IJsonSchemaApplication";
|
|
3
3
|
import { IJsDocTagInfo } from "../../schemas/metadata/IJsDocTagInfo";
|
|
4
4
|
import { Metadata } from "../../schemas/metadata/Metadata";
|
|
5
5
|
import { MetadataProperty } from "../../schemas/metadata/MetadataProperty";
|
|
@@ -9,7 +9,7 @@ export declare namespace JsonApplicationProgrammer {
|
|
|
9
9
|
version: Version;
|
|
10
10
|
metadata: Metadata;
|
|
11
11
|
filter?: (prop: MetadataProperty) => boolean;
|
|
12
|
-
}) =>
|
|
12
|
+
}) => IJsonSchemaApplication<Version>;
|
|
13
13
|
const writeDescription: <Kind extends "summary" | "title">(props: {
|
|
14
14
|
description: string | null;
|
|
15
15
|
jsDocTags: IJsDocTagInfo[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MetadataFactory } from "../../factories/MetadataFactory";
|
|
2
|
-
import {
|
|
2
|
+
import { IJsonSchemaApplication } from "../../schemas/json/IJsonSchemaApplication";
|
|
3
3
|
import { IJsDocTagInfo } from "../../schemas/metadata/IJsDocTagInfo";
|
|
4
4
|
import { Metadata } from "../../schemas/metadata/Metadata";
|
|
5
5
|
import { MetadataProperty } from "../../schemas/metadata/MetadataProperty";
|
|
@@ -9,7 +9,7 @@ export declare namespace JsonApplicationProgrammer {
|
|
|
9
9
|
version: Version;
|
|
10
10
|
metadata: Metadata;
|
|
11
11
|
filter?: (prop: MetadataProperty) => boolean;
|
|
12
|
-
}) =>
|
|
12
|
+
}) => IJsonSchemaApplication<Version>;
|
|
13
13
|
const writeDescription: <Kind extends "summary" | "title">(props: {
|
|
14
14
|
description: string | null;
|
|
15
15
|
jsDocTags: IJsDocTagInfo[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonApplicationProgrammer.js","sourceRoot":"","sources":["../../../src/programmers/json/JsonApplicationProgrammer.ts"],"names":[],"mappings":";;;AAIA,8DAA2D;AAK3D,mEAAgE;AAEhE,IAAiB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"JsonApplicationProgrammer.js","sourceRoot":"","sources":["../../../src/programmers/json/JsonApplicationProgrammer.ts"],"names":[],"mappings":";;;AAIA,8DAA2D;AAK3D,mEAAgE;AAEhE,IAAiB,yBAAyB,CA+NzC;AA/ND,WAAiB,yBAAyB;IAC3B,kCAAQ,GAAG,CACtB,QAAkB,EAClB,OAAiC,EACvB,EAAE;;QACZ,IAAI,OAAO,CAAC,GAAG,KAAK,KAAK;YAAE,OAAO,6CAAqB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAE3E,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,MAAM,KAAK,GACT,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;YACrB,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;YAC7B,QAAQ,CAAC,UAAU,EAAE,KAAK,IAAI;YAC9B,QA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grammer_1 = require("./JsonStringifyProgrammer");
|
|
|
15
15
|
var JsonAssertStringifyProgrammer;
|
|
16
16
|
(function (JsonAssertStringifyProgrammer) {
|
|
17
17
|
JsonAssertStringifyProgrammer.decompose = (props) => {
|
|
18
|
-
const assert = AssertProgrammer_1.AssertProgrammer.decompose(Object.assign(Object.assign({}, props), { context: Object.assign(Object.assign({}, props.context), { options: Object.assign(Object.assign({}, props.context.options), { functional: false,
|
|
18
|
+
const assert = AssertProgrammer_1.AssertProgrammer.decompose(Object.assign(Object.assign({}, props), { context: Object.assign(Object.assign({}, props.context), { options: Object.assign(Object.assign({}, props.context.options), { functional: false, finite: true }) }), config: {
|
|
19
19
|
equals: false,
|
|
20
20
|
guard: false,
|
|
21
21
|
} }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonAssertStringifyProgrammer.js","sourceRoot":"","sources":["../../../src/programmers/json/JsonAssertStringifyProgrammer.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA4B;AAE5B,yEAAsE;AACtE,uEAAoE;AACpE,6DAA0D;AAK1D,0DAAuD;AACvD,4DAAyD;AACzD,sEAAmE;AACnE,uEAAoE;AAEpE,IAAiB,6BAA6B,CAoG7C;AApGD,WAAiB,6BAA6B;IAC/B,uCAAS,GAAG,CAAC,KAMzB,EAAiC,EAAE;QAClC,MAAM,MAAM,GAAkC,mCAAgB,CAAC,SAAS,iCACnE,KAAK,KACR,OAAO,kCACF,KAAK,CAAC,OAAO,KAChB,OAAO,kCACF,KAAK,CAAC,OAAO,CAAC,OAAO,KACxB,UAAU,EAAE,KAAK,EACjB,
|
|
1
|
+
{"version":3,"file":"JsonAssertStringifyProgrammer.js","sourceRoot":"","sources":["../../../src/programmers/json/JsonAssertStringifyProgrammer.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA4B;AAE5B,yEAAsE;AACtE,uEAAoE;AACpE,6DAA0D;AAK1D,0DAAuD;AACvD,4DAAyD;AACzD,sEAAmE;AACnE,uEAAo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props) => {
|
|
18
18
|
var _a;
|
|
19
|
-
const is = IsProgrammer_1.IsProgrammer.decompose(Object.assign(Object.assign({}, props), { context: Object.assign(Object.assign({}, props.context), { options: Object.assign(Object.assign({}, props.context.options), { functional: false,
|
|
19
|
+
const is = IsProgrammer_1.IsProgrammer.decompose(Object.assign(Object.assign({}, props), { context: Object.assign(Object.assign({}, props.context), { options: Object.assign(Object.assign({}, props.context.options), { functional: false, finite: true }) }), config: {
|
|
20
20
|
equals: false,
|
|
21
21
|
} }));
|
|
22
22
|
const stringify = JsonStringifyProgrammer_1.JsonStringifyProgrammer.decompose(Object.assign(Object.assign({}, props), { context: Object.assign(Object.assign({}, props.context), { options: Object.assign(Object.assign({}, props.context.options), { functional: false, numeric: true }) }), validated: true }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonIsStringifyProgrammer.js","sourceRoot":"","sources":["../../../src/programmers/json/JsonIsStringifyProgrammer.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA4B;AAE5B,yEAAsE;AACtE,uEAAoE;AACpE,6DAA0D;AAK1D,4DAAyD;AACzD,kDAA+C;AAC/C,sEAAmE;AACnE,uEAAoE;AAEpE,IAAiB,yBAAyB,CA6FzC;AA7FD,WAAiB,yBAAyB;IAC3B,mCAAS,GAAG,CAAC,KAKzB,EAAiC,EAAE;;QAClC,MAAM,EAAE,GAAkC,2BAAY,CAAC,SAAS,iCAC3D,KAAK,KACR,OAAO,kCACF,KAAK,CAAC,OAAO,KAChB,OAAO,kCACF,KAAK,CAAC,OAAO,CAAC,OAAO,KACxB,UAAU,EAAE,KAAK,EACjB,
|
|
1
|
+
{"version":3,"file":"JsonIsStringifyProgrammer.js","sourceRoot":"","sources":["../../../src/programmers/json/JsonIsStringifyProgrammer.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA4B;AAE5B,yEAAsE;AACtE,uEAAoE;AACpE,6DAA0D;AAK1D,4DAAyD;AACzD,kDAA+C;AAC/C,sEAAmE;AACnE,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,yBAAW,CAAC,OAAO,CAAC,QAAQ,CAAC;gBACrD,oBAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,oBAAE,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;aAC1D,CAAC,EACF,SAAS,EACT,oBAAE,CAAC,OAAO,CAAC,2BAA2B,CACpC,oBAAE,CAAC,OAAO,CAAC,oBAAoB,CAC7B,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,EACnC,SAAS,EACT,CAAC,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CACvC,EACD,SAAS,EACT,oBAAE,CAAC,OAAO,CAAC,oBAAoB,CAC7B,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAC1C,SAAS,EACT,CAAC,oBAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CACvC,EACD,SAAS,EACT,oBAAE,CAAC,OAAO,CAAC,UAAU,EAAE,CACxB,CACF;SACF,CAAC;IACJ,CAAC,CAAC;IAEW,+BAAK,GAAG,CAAC,KAAuB,EAAqB,EAAE;QAClE,MAAM,OAAO,GAAuB,IAAI,uCAAkB,CACxD,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CACvB,CAAC;QACF,MAAM,MAAM,GAAkC,0BAAA,SAAS,iCAClD,KAAK,KACR,OAAO,IACP,CAAC;QACH,OAAO,qCAAiB,CAAC,eAAe,CAAC;YACvC,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,OAAO;YACP,MAAM;SACP,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,EA7FgB,yBAAyB,yCAAzB,yBAAyB,QA6FzC"}
|
|
@@ -16,7 +16,7 @@ var JsonValidateStringifyProgrammer;
|
|
|
16
16
|
(function (JsonValidateStringifyProgrammer) {
|
|
17
17
|
JsonValidateStringifyProgrammer.decompose = (props) => {
|
|
18
18
|
var _a;
|
|
19
|
-
const validate = ValidateProgrammer_1.ValidateProgrammer.decompose(Object.assign(Object.assign({}, props), { context: Object.assign(Object.assign({}, props.context), { options: Object.assign(Object.assign({}, props.context.options), { functional: false,
|
|
19
|
+
const validate = ValidateProgrammer_1.ValidateProgrammer.decompose(Object.assign(Object.assign({}, props), { context: Object.assign(Object.assign({}, props.context), { options: Object.assign(Object.assign({}, props.context.options), { functional: false, finite: true }) }), config: {
|
|
20
20
|
equals: false,
|
|
21
21
|
} }));
|
|
22
22
|
const stringify = JsonStringifyProgrammer_1.JsonStringifyProgrammer.decompose(Object.assign(Object.assign({}, props), { validated: true }));
|