@keetanetwork/anchor 0.0.21 → 0.0.22
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/config.d.ts +1 -1
- package/config.d.ts.map +1 -1
- package/config.js +1 -1
- package/config.js.map +1 -1
- package/lib/error.d.ts +2 -0
- package/lib/error.d.ts.map +1 -1
- package/lib/error.js +6 -3
- package/lib/error.js.map +1 -1
- package/lib/http-server.d.ts +3 -1
- package/lib/http-server.d.ts.map +1 -1
- package/lib/http-server.js +38 -6
- package/lib/http-server.js.map +1 -1
- package/lib/utils/asn1.js +738 -263
- package/lib/utils/asn1.js.map +1 -1
- package/npm-shrinkwrap.json +5 -5
- package/package.json +2 -2
- package/services/fx/common.d.ts +13 -0
- package/services/fx/common.d.ts.map +1 -1
- package/services/fx/common.js +29 -0
- package/services/fx/common.js.map +1 -1
- package/services/fx/server.d.ts +11 -1
- package/services/fx/server.d.ts.map +1 -1
- package/services/fx/server.js +8 -1
- package/services/fx/server.js.map +1 -1
- package/services/kyc/common.d.ts +1 -0
- package/services/kyc/common.d.ts.map +1 -1
- package/services/kyc/common.js +1 -0
- package/services/kyc/common.js.map +1 -1
package/lib/utils/asn1.js
CHANGED
|
@@ -37,7 +37,30 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
37
37
|
if (array.every(value => true === pred[0](value)))
|
|
38
38
|
return pred[1](array);
|
|
39
39
|
return false;
|
|
40
|
-
}; const
|
|
40
|
+
}; const _ip1 = input => {
|
|
41
|
+
const array = input;
|
|
42
|
+
const top = input[0];
|
|
43
|
+
if (0 === input.length)
|
|
44
|
+
return true;
|
|
45
|
+
const arrayPredicators = [
|
|
46
|
+
[
|
|
47
|
+
top => "string" === typeof top,
|
|
48
|
+
entire => entire.every(elem => "string" === typeof elem)
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
top => "string" === typeof top,
|
|
52
|
+
entire => entire.every(elem => "string" === typeof elem)
|
|
53
|
+
]
|
|
54
|
+
];
|
|
55
|
+
const passed = arrayPredicators.filter(pred => pred[0](top));
|
|
56
|
+
if (1 === passed.length)
|
|
57
|
+
return passed[0][1](array);
|
|
58
|
+
else if (1 < passed.length)
|
|
59
|
+
for (const pred of passed)
|
|
60
|
+
if (array.every(value => true === pred[0](value)))
|
|
61
|
+
return pred[1](array);
|
|
62
|
+
return false;
|
|
63
|
+
}; const _ap2 = (input, _path, _exceptionable = true) => {
|
|
41
64
|
const array = input;
|
|
42
65
|
const top = input[0];
|
|
43
66
|
if (0 === input.length)
|
|
@@ -50,30 +73,30 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
50
73
|
expected: "readonly [Schema, ...Schema[]]",
|
|
51
74
|
value: top
|
|
52
75
|
}, _errorFactory)) || "object" === typeof top && null !== top && _au0(top, _path, false && _exceptionable))),
|
|
53
|
-
entire => entire.every((elem,
|
|
76
|
+
entire => entire.every((elem, _index16) => (null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
54
77
|
method: "createAssert",
|
|
55
|
-
path: _path + "[" +
|
|
56
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
78
|
+
path: _path + "[" + _index16 + "]",
|
|
79
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
57
80
|
value: elem
|
|
58
81
|
}, _errorFactory)) && (undefined !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
59
82
|
method: "createAssert",
|
|
60
|
-
path: _path + "[" +
|
|
61
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
83
|
+
path: _path + "[" + _index16 + "]",
|
|
84
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
62
85
|
value: elem
|
|
63
|
-
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" +
|
|
86
|
+
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" + _index16 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
64
87
|
method: "createAssert",
|
|
65
|
-
path: _path + "[" +
|
|
88
|
+
path: _path + "[" + _index16 + "]",
|
|
66
89
|
expected: "readonly [Schema, ...Schema[]]",
|
|
67
90
|
value: elem
|
|
68
|
-
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" +
|
|
91
|
+
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" + _index16 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
69
92
|
method: "createAssert",
|
|
70
|
-
path: _path + "[" +
|
|
71
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
93
|
+
path: _path + "[" + _index16 + "]",
|
|
94
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
72
95
|
value: elem
|
|
73
96
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
74
97
|
method: "createAssert",
|
|
75
|
-
path: _path + "[" +
|
|
76
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
98
|
+
path: _path + "[" + _index16 + "]",
|
|
99
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
77
100
|
value: elem
|
|
78
101
|
}, _errorFactory)))
|
|
79
102
|
],
|
|
@@ -84,30 +107,30 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
84
107
|
expected: "readonly [Schema, ...Schema[]]",
|
|
85
108
|
value: top
|
|
86
109
|
}, _errorFactory)) || "object" === typeof top && null !== top && _au0(top, _path, false && _exceptionable))),
|
|
87
|
-
entire => entire.every((elem,
|
|
110
|
+
entire => entire.every((elem, _index17) => (null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
88
111
|
method: "createAssert",
|
|
89
|
-
path: _path + "[" +
|
|
90
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
112
|
+
path: _path + "[" + _index17 + "]",
|
|
113
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
91
114
|
value: elem
|
|
92
115
|
}, _errorFactory)) && (undefined !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
93
116
|
method: "createAssert",
|
|
94
|
-
path: _path + "[" +
|
|
95
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
117
|
+
path: _path + "[" + _index17 + "]",
|
|
118
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
96
119
|
value: elem
|
|
97
|
-
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" +
|
|
120
|
+
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" + _index17 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
98
121
|
method: "createAssert",
|
|
99
|
-
path: _path + "[" +
|
|
122
|
+
path: _path + "[" + _index17 + "]",
|
|
100
123
|
expected: "readonly [Schema, ...Schema[]]",
|
|
101
124
|
value: elem
|
|
102
|
-
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" +
|
|
125
|
+
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" + _index17 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
103
126
|
method: "createAssert",
|
|
104
|
-
path: _path + "[" +
|
|
105
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
127
|
+
path: _path + "[" + _index17 + "]",
|
|
128
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
106
129
|
value: elem
|
|
107
130
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
108
131
|
method: "createAssert",
|
|
109
|
-
path: _path + "[" +
|
|
110
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
132
|
+
path: _path + "[" + _index17 + "]",
|
|
133
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
111
134
|
value: elem
|
|
112
135
|
}, _errorFactory)))
|
|
113
136
|
]
|
|
@@ -125,70 +148,139 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
125
148
|
expected: "(Array<ValidateASN1.Schema> | ReadonlyArray<ValidateASN1.Schema>)",
|
|
126
149
|
value: input
|
|
127
150
|
}, _errorFactory);
|
|
151
|
+
}; const _ap3 = (input, _path, _exceptionable = true) => {
|
|
152
|
+
const array = input;
|
|
153
|
+
const top = input[0];
|
|
154
|
+
if (0 === input.length)
|
|
155
|
+
return true;
|
|
156
|
+
const arrayPredicators = [
|
|
157
|
+
[
|
|
158
|
+
top => "string" === typeof top,
|
|
159
|
+
entire => entire.every((elem, _index20) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
160
|
+
method: "createAssert",
|
|
161
|
+
path: _path + "[" + _index20 + "]",
|
|
162
|
+
expected: "string",
|
|
163
|
+
value: elem
|
|
164
|
+
}, _errorFactory))
|
|
165
|
+
],
|
|
166
|
+
[
|
|
167
|
+
top => "string" === typeof top,
|
|
168
|
+
entire => entire.every((elem, _index21) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
169
|
+
method: "createAssert",
|
|
170
|
+
path: _path + "[" + _index21 + "]",
|
|
171
|
+
expected: "string",
|
|
172
|
+
value: elem
|
|
173
|
+
}, _errorFactory))
|
|
174
|
+
]
|
|
175
|
+
];
|
|
176
|
+
const passed = arrayPredicators.filter(pred => pred[0](top));
|
|
177
|
+
if (1 === passed.length)
|
|
178
|
+
return passed[0][1](array);
|
|
179
|
+
else if (1 < passed.length)
|
|
180
|
+
for (const pred of passed)
|
|
181
|
+
if (array.every(value => true === pred[0](value)))
|
|
182
|
+
return pred[1](array);
|
|
183
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
184
|
+
method: "createAssert",
|
|
185
|
+
path: _path,
|
|
186
|
+
expected: "(ReadonlyArray<string> | Array<string>)",
|
|
187
|
+
value: input
|
|
188
|
+
}, _errorFactory);
|
|
128
189
|
}; const _io0 = input => Object.keys(input).every(key => {
|
|
129
190
|
const value = input[key];
|
|
130
191
|
if (undefined === value)
|
|
131
192
|
return true;
|
|
132
193
|
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu1(value)));
|
|
133
|
-
}); const _io1 = input => Array.isArray(input.choice) && (_ip0(input.choice) || false); const _io2 = input =>
|
|
194
|
+
}); const _io1 = input => Array.isArray(input.choice) && (_ip0(input.choice) || false); const _io2 = input => "object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) && _iu2(input.choice); const _io3 = input => Object.keys(input).every(key => {
|
|
195
|
+
const value = input[key];
|
|
196
|
+
if (undefined === value)
|
|
197
|
+
return true;
|
|
198
|
+
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
199
|
+
}); const _io4 = input => null !== input.sequenceOf && undefined !== input.sequenceOf && ("function" === typeof input.sequenceOf || "bigint" === typeof input.sequenceOf || (Array.isArray(input.sequenceOf) && (_it0(input.sequenceOf) || false) || "object" === typeof input.sequenceOf && null !== input.sequenceOf && _iu0(input.sequenceOf))); const _io5 = input => null !== input.optional && undefined !== input.optional && ("function" === typeof input.optional || "bigint" === typeof input.optional || (Array.isArray(input.optional) && (_it0(input.optional) || false) || "object" === typeof input.optional && null !== input.optional && _iu0(input.optional))); const _io6 = input => "context" === input.type && ("explicit" === input.kind || "implicit" === input.kind) && (null !== input.contains && undefined !== input.contains && ("function" === typeof input.contains || "bigint" === typeof input.contains || (Array.isArray(input.contains) && (_it0(input.contains) || false) || "object" === typeof input.contains && null !== input.contains && _iu0(input.contains)))) && "number" === typeof input.value; const _io7 = input => "oid" === input.type && "string" === typeof input.oid; const _io8 = input => "string" === input.type && "printable" === input.kind; const _io9 = input => "string" === input.type && "ia5" === input.kind; const _io10 = input => "string" === input.type && "utf8" === input.kind; const _io11 = input => "date" === input.type && "utc" === input.kind; const _io12 = input => "date" === input.type && "general" === input.kind; const _io13 = input => "struct" === input.type && (Array.isArray(input.fieldNames) && (_ip1(input.fieldNames) || false)) && ("object" === typeof input.contains && null !== input.contains && false === Array.isArray(input.contains) && _iu3(input.contains)); const _io14 = input => Object.keys(input).every(key => {
|
|
200
|
+
const value = input[key];
|
|
201
|
+
if (undefined === value)
|
|
202
|
+
return true;
|
|
203
|
+
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
204
|
+
}); const _io15 = input => Object.keys(input).every(key => {
|
|
134
205
|
const value = input[key];
|
|
135
206
|
if (undefined === value)
|
|
136
207
|
return true;
|
|
137
208
|
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
138
|
-
}); const
|
|
139
|
-
|
|
209
|
+
}); const _io16 = input => Object.keys(input).every(key => {
|
|
210
|
+
const value = input[key];
|
|
211
|
+
if (undefined === value)
|
|
212
|
+
return true;
|
|
213
|
+
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
214
|
+
}); const _io17 = input => null !== input.optional && undefined !== input.optional && ("function" === typeof input.optional || "bigint" === typeof input.optional || (Array.isArray(input.optional) && (_it0(input.optional) || false) || "object" === typeof input.optional && null !== input.optional && _iu0(input.optional))); const _iu0 = input => (() => {
|
|
215
|
+
if ("object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) && _iu2(input.choice))
|
|
216
|
+
return _io2(input);
|
|
217
|
+
else if (Array.isArray(input.choice) && (_ip0(input.choice) || false))
|
|
140
218
|
return _io1(input);
|
|
141
219
|
else if (undefined !== input.sequenceOf)
|
|
142
|
-
return
|
|
220
|
+
return _io4(input);
|
|
143
221
|
else if (undefined !== input.optional)
|
|
144
|
-
return
|
|
222
|
+
return _io5(input);
|
|
145
223
|
else if ("context" === input.type)
|
|
146
|
-
return
|
|
224
|
+
return _io6(input);
|
|
147
225
|
else if ("oid" === input.type)
|
|
148
|
-
return
|
|
226
|
+
return _io7(input);
|
|
149
227
|
else if ("general" === input.kind)
|
|
150
|
-
return
|
|
228
|
+
return _io12(input);
|
|
151
229
|
else if ("utc" === input.kind)
|
|
152
|
-
return
|
|
230
|
+
return _io11(input);
|
|
153
231
|
else if ("utf8" === input.kind)
|
|
154
|
-
return
|
|
232
|
+
return _io10(input);
|
|
155
233
|
else if ("ia5" === input.kind)
|
|
156
|
-
return
|
|
234
|
+
return _io9(input);
|
|
157
235
|
else if ("printable" === input.kind)
|
|
158
|
-
return
|
|
236
|
+
return _io8(input);
|
|
159
237
|
else if ("struct" === input.type)
|
|
160
|
-
return
|
|
238
|
+
return _io13(input);
|
|
161
239
|
else
|
|
162
240
|
return false;
|
|
163
241
|
})(); const _iu1 = input => (() => {
|
|
164
|
-
if (
|
|
242
|
+
if ("object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) && _iu2(input.choice))
|
|
243
|
+
return _io2(input);
|
|
244
|
+
else if (Array.isArray(input.choice) && (_ip0(input.choice) || false))
|
|
165
245
|
return _io1(input);
|
|
166
246
|
else if (undefined !== input.sequenceOf)
|
|
167
|
-
return _io2(input);
|
|
168
|
-
else if ("context" === input.type)
|
|
169
247
|
return _io4(input);
|
|
248
|
+
else if ("context" === input.type)
|
|
249
|
+
return _io6(input);
|
|
170
250
|
else if ("oid" === input.type)
|
|
171
|
-
return
|
|
251
|
+
return _io7(input);
|
|
172
252
|
else if ("general" === input.kind)
|
|
173
|
-
return
|
|
253
|
+
return _io12(input);
|
|
174
254
|
else if ("utc" === input.kind)
|
|
175
|
-
return
|
|
255
|
+
return _io11(input);
|
|
176
256
|
else if ("utf8" === input.kind)
|
|
177
|
-
return
|
|
257
|
+
return _io10(input);
|
|
178
258
|
else if ("ia5" === input.kind)
|
|
179
|
-
return
|
|
259
|
+
return _io9(input);
|
|
180
260
|
else if ("printable" === input.kind)
|
|
181
|
-
return
|
|
261
|
+
return _io8(input);
|
|
182
262
|
else if ("struct" === input.type)
|
|
183
|
-
return
|
|
263
|
+
return _io13(input);
|
|
184
264
|
else
|
|
185
265
|
return (() => {
|
|
186
|
-
if (
|
|
187
|
-
return
|
|
188
|
-
if (
|
|
189
|
-
return
|
|
266
|
+
if (_io5(input))
|
|
267
|
+
return _io5(input);
|
|
268
|
+
if (_io17(input))
|
|
269
|
+
return _io17(input);
|
|
190
270
|
return false;
|
|
191
271
|
})();
|
|
272
|
+
})(); const _iu2 = input => (() => {
|
|
273
|
+
if (_io16(input))
|
|
274
|
+
return _io16(input);
|
|
275
|
+
if (_io3(input))
|
|
276
|
+
return _io3(input);
|
|
277
|
+
return false;
|
|
278
|
+
})(); const _iu3 = input => (() => {
|
|
279
|
+
if (_io15(input))
|
|
280
|
+
return _io15(input);
|
|
281
|
+
if (_io14(input))
|
|
282
|
+
return _io14(input);
|
|
283
|
+
return false;
|
|
192
284
|
})(); const _it0 = input => null !== input[0] && undefined !== input[0] && ("function" === typeof input[0] || "bigint" === typeof input[0] || (Array.isArray(input[0]) && (_it0(input[0]) || false) || "object" === typeof input[0] && null !== input[0] && _iu0(input[0]))) && (Array.isArray(input.slice(1)) && input.slice(1).every(elem => null !== elem && undefined !== elem && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_it0(elem) || false) || "object" === typeof elem && null !== elem && _iu0(elem))))); const _ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
193
285
|
const value = input[key];
|
|
194
286
|
if (undefined === value)
|
|
@@ -196,12 +288,12 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
196
288
|
return (null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
197
289
|
method: "createAssert",
|
|
198
290
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
199
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.o12 | __type.
|
|
291
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o16 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
200
292
|
value: value
|
|
201
293
|
}, _errorFactory)) && (undefined !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
202
294
|
method: "createAssert",
|
|
203
295
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
204
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.o12 | __type.
|
|
296
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o16 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
205
297
|
value: value
|
|
206
298
|
}, _errorFactory)) && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_at0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
207
299
|
method: "createAssert",
|
|
@@ -211,12 +303,12 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
211
303
|
}, _errorFactory)) || "object" === typeof value && null !== value && _au1(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
212
304
|
method: "createAssert",
|
|
213
305
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
214
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.o12 | __type.
|
|
306
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o16 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
215
307
|
value: value
|
|
216
308
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
217
309
|
method: "createAssert",
|
|
218
310
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
219
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.o12 | __type.
|
|
311
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o16 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
220
312
|
value: value
|
|
221
313
|
}, _errorFactory));
|
|
222
314
|
}); const _ao1 = (input, _path, _exceptionable = true) => (Array.isArray(input.choice) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
@@ -224,7 +316,7 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
224
316
|
path: _path + ".choice",
|
|
225
317
|
expected: "(Array<ValidateASN1.Schema> | ReadonlyArray<ValidateASN1.Schema>)",
|
|
226
318
|
value: input.choice
|
|
227
|
-
}, _errorFactory)) && (
|
|
319
|
+
}, _errorFactory)) && (_ap2(input.choice, _path + ".choice", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
228
320
|
method: "createAssert",
|
|
229
321
|
path: _path + ".choice",
|
|
230
322
|
expected: "Array<ValidateASN1.Schema> | ReadonlyArray<ValidateASN1.Schema>",
|
|
@@ -234,15 +326,55 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
234
326
|
path: _path + ".choice",
|
|
235
327
|
expected: "(Array<ValidateASN1.Schema> | ReadonlyArray<ValidateASN1.Schema>)",
|
|
236
328
|
value: input.choice
|
|
237
|
-
}, _errorFactory); const _ao2 = (input, _path, _exceptionable = true) => (null !== input.
|
|
329
|
+
}, _errorFactory); const _ao2 = (input, _path, _exceptionable = true) => ("object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
330
|
+
method: "createAssert",
|
|
331
|
+
path: _path + ".choice",
|
|
332
|
+
expected: "(__type.o15 | __type.o2)",
|
|
333
|
+
value: input.choice
|
|
334
|
+
}, _errorFactory)) && _au2(input.choice, _path + ".choice", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
335
|
+
method: "createAssert",
|
|
336
|
+
path: _path + ".choice",
|
|
337
|
+
expected: "(__type.o15 | __type.o2)",
|
|
338
|
+
value: input.choice
|
|
339
|
+
}, _errorFactory); const _ao3 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
340
|
+
const value = input[key];
|
|
341
|
+
if (undefined === value)
|
|
342
|
+
return true;
|
|
343
|
+
return (null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
344
|
+
method: "createAssert",
|
|
345
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
346
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
347
|
+
value: value
|
|
348
|
+
}, _errorFactory)) && (undefined !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
349
|
+
method: "createAssert",
|
|
350
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
351
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
352
|
+
value: value
|
|
353
|
+
}, _errorFactory)) && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_at0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
354
|
+
method: "createAssert",
|
|
355
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
356
|
+
expected: "readonly [Schema, ...Schema[]]",
|
|
357
|
+
value: value
|
|
358
|
+
}, _errorFactory)) || "object" === typeof value && null !== value && _au0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
359
|
+
method: "createAssert",
|
|
360
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
361
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
362
|
+
value: value
|
|
363
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
364
|
+
method: "createAssert",
|
|
365
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
366
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
367
|
+
value: value
|
|
368
|
+
}, _errorFactory));
|
|
369
|
+
}); const _ao4 = (input, _path, _exceptionable = true) => (null !== input.sequenceOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
238
370
|
method: "createAssert",
|
|
239
371
|
path: _path + ".sequenceOf",
|
|
240
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
372
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
241
373
|
value: input.sequenceOf
|
|
242
374
|
}, _errorFactory)) && (undefined !== input.sequenceOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
243
375
|
method: "createAssert",
|
|
244
376
|
path: _path + ".sequenceOf",
|
|
245
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
377
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
246
378
|
value: input.sequenceOf
|
|
247
379
|
}, _errorFactory)) && ("function" === typeof input.sequenceOf || "bigint" === typeof input.sequenceOf || (Array.isArray(input.sequenceOf) && (_at0(input.sequenceOf, _path + ".sequenceOf", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
248
380
|
method: "createAssert",
|
|
@@ -252,22 +384,22 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
252
384
|
}, _errorFactory)) || "object" === typeof input.sequenceOf && null !== input.sequenceOf && _au0(input.sequenceOf, _path + ".sequenceOf", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
253
385
|
method: "createAssert",
|
|
254
386
|
path: _path + ".sequenceOf",
|
|
255
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
387
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
256
388
|
value: input.sequenceOf
|
|
257
389
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
258
390
|
method: "createAssert",
|
|
259
391
|
path: _path + ".sequenceOf",
|
|
260
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
392
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
261
393
|
value: input.sequenceOf
|
|
262
|
-
}, _errorFactory)); const
|
|
394
|
+
}, _errorFactory)); const _ao5 = (input, _path, _exceptionable = true) => (null !== input.optional || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
263
395
|
method: "createAssert",
|
|
264
396
|
path: _path + ".optional",
|
|
265
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
397
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
266
398
|
value: input.optional
|
|
267
399
|
}, _errorFactory)) && (undefined !== input.optional || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
268
400
|
method: "createAssert",
|
|
269
401
|
path: _path + ".optional",
|
|
270
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
402
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
271
403
|
value: input.optional
|
|
272
404
|
}, _errorFactory)) && ("function" === typeof input.optional || "bigint" === typeof input.optional || (Array.isArray(input.optional) && (_at0(input.optional, _path + ".optional", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
273
405
|
method: "createAssert",
|
|
@@ -277,14 +409,14 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
277
409
|
}, _errorFactory)) || "object" === typeof input.optional && null !== input.optional && _au0(input.optional, _path + ".optional", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
278
410
|
method: "createAssert",
|
|
279
411
|
path: _path + ".optional",
|
|
280
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
412
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
281
413
|
value: input.optional
|
|
282
414
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
283
415
|
method: "createAssert",
|
|
284
416
|
path: _path + ".optional",
|
|
285
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
417
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
286
418
|
value: input.optional
|
|
287
|
-
}, _errorFactory)); const
|
|
419
|
+
}, _errorFactory)); const _ao6 = (input, _path, _exceptionable = true) => ("context" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
288
420
|
method: "createAssert",
|
|
289
421
|
path: _path + ".type",
|
|
290
422
|
expected: "\"context\"",
|
|
@@ -297,12 +429,12 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
297
429
|
}, _errorFactory)) && ((null !== input.contains || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
298
430
|
method: "createAssert",
|
|
299
431
|
path: _path + ".contains",
|
|
300
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
432
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
301
433
|
value: input.contains
|
|
302
434
|
}, _errorFactory)) && (undefined !== input.contains || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
303
435
|
method: "createAssert",
|
|
304
436
|
path: _path + ".contains",
|
|
305
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
437
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
306
438
|
value: input.contains
|
|
307
439
|
}, _errorFactory)) && ("function" === typeof input.contains || "bigint" === typeof input.contains || (Array.isArray(input.contains) && (_at0(input.contains, _path + ".contains", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
308
440
|
method: "createAssert",
|
|
@@ -312,19 +444,19 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
312
444
|
}, _errorFactory)) || "object" === typeof input.contains && null !== input.contains && _au0(input.contains, _path + ".contains", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
313
445
|
method: "createAssert",
|
|
314
446
|
path: _path + ".contains",
|
|
315
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
447
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
316
448
|
value: input.contains
|
|
317
449
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
318
450
|
method: "createAssert",
|
|
319
451
|
path: _path + ".contains",
|
|
320
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
452
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
321
453
|
value: input.contains
|
|
322
454
|
}, _errorFactory))) && ("number" === typeof input.value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
323
455
|
method: "createAssert",
|
|
324
456
|
path: _path + ".value",
|
|
325
457
|
expected: "number",
|
|
326
458
|
value: input.value
|
|
327
|
-
}, _errorFactory)); const
|
|
459
|
+
}, _errorFactory)); const _ao7 = (input, _path, _exceptionable = true) => ("oid" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
328
460
|
method: "createAssert",
|
|
329
461
|
path: _path + ".type",
|
|
330
462
|
expected: "\"oid\"",
|
|
@@ -334,7 +466,7 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
334
466
|
path: _path + ".oid",
|
|
335
467
|
expected: "string",
|
|
336
468
|
value: input.oid
|
|
337
|
-
}, _errorFactory)); const
|
|
469
|
+
}, _errorFactory)); const _ao8 = (input, _path, _exceptionable = true) => ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
338
470
|
method: "createAssert",
|
|
339
471
|
path: _path + ".type",
|
|
340
472
|
expected: "\"string\"",
|
|
@@ -344,7 +476,7 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
344
476
|
path: _path + ".kind",
|
|
345
477
|
expected: "\"printable\"",
|
|
346
478
|
value: input.kind
|
|
347
|
-
}, _errorFactory)); const
|
|
479
|
+
}, _errorFactory)); const _ao9 = (input, _path, _exceptionable = true) => ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
348
480
|
method: "createAssert",
|
|
349
481
|
path: _path + ".type",
|
|
350
482
|
expected: "\"string\"",
|
|
@@ -354,7 +486,7 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
354
486
|
path: _path + ".kind",
|
|
355
487
|
expected: "\"ia5\"",
|
|
356
488
|
value: input.kind
|
|
357
|
-
}, _errorFactory)); const
|
|
489
|
+
}, _errorFactory)); const _ao10 = (input, _path, _exceptionable = true) => ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
358
490
|
method: "createAssert",
|
|
359
491
|
path: _path + ".type",
|
|
360
492
|
expected: "\"string\"",
|
|
@@ -364,7 +496,7 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
364
496
|
path: _path + ".kind",
|
|
365
497
|
expected: "\"utf8\"",
|
|
366
498
|
value: input.kind
|
|
367
|
-
}, _errorFactory)); const
|
|
499
|
+
}, _errorFactory)); const _ao11 = (input, _path, _exceptionable = true) => ("date" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
368
500
|
method: "createAssert",
|
|
369
501
|
path: _path + ".type",
|
|
370
502
|
expected: "\"date\"",
|
|
@@ -374,7 +506,7 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
374
506
|
path: _path + ".kind",
|
|
375
507
|
expected: "\"utc\"",
|
|
376
508
|
value: input.kind
|
|
377
|
-
}, _errorFactory)); const
|
|
509
|
+
}, _errorFactory)); const _ao12 = (input, _path, _exceptionable = true) => ("date" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
378
510
|
method: "createAssert",
|
|
379
511
|
path: _path + ".type",
|
|
380
512
|
expected: "\"date\"",
|
|
@@ -384,7 +516,7 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
384
516
|
path: _path + ".kind",
|
|
385
517
|
expected: "\"general\"",
|
|
386
518
|
value: input.kind
|
|
387
|
-
}, _errorFactory)); const
|
|
519
|
+
}, _errorFactory)); const _ao13 = (input, _path, _exceptionable = true) => ("struct" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
388
520
|
method: "createAssert",
|
|
389
521
|
path: _path + ".type",
|
|
390
522
|
expected: "\"struct\"",
|
|
@@ -392,41 +524,101 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
392
524
|
}, _errorFactory)) && ((Array.isArray(input.fieldNames) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
393
525
|
method: "createAssert",
|
|
394
526
|
path: _path + ".fieldNames",
|
|
395
|
-
expected: "Array<string>",
|
|
527
|
+
expected: "(Array<string> | ReadonlyArray<string>)",
|
|
396
528
|
value: input.fieldNames
|
|
397
|
-
}, _errorFactory)) && input.fieldNames
|
|
529
|
+
}, _errorFactory)) && (_ap3(input.fieldNames, _path + ".fieldNames", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
398
530
|
method: "createAssert",
|
|
399
|
-
path: _path + ".fieldNames
|
|
400
|
-
expected: "string",
|
|
401
|
-
value:
|
|
531
|
+
path: _path + ".fieldNames",
|
|
532
|
+
expected: "ReadonlyArray<string> | Array<string>",
|
|
533
|
+
value: input.fieldNames
|
|
402
534
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
403
535
|
method: "createAssert",
|
|
404
536
|
path: _path + ".fieldNames",
|
|
405
|
-
expected: "Array<string>",
|
|
537
|
+
expected: "(Array<string> | ReadonlyArray<string>)",
|
|
406
538
|
value: input.fieldNames
|
|
407
539
|
}, _errorFactory)) && (("object" === typeof input.contains && null !== input.contains && false === Array.isArray(input.contains) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
408
540
|
method: "createAssert",
|
|
409
541
|
path: _path + ".contains",
|
|
410
|
-
expected: "__type.
|
|
542
|
+
expected: "(__type.o13 | __type.o14)",
|
|
411
543
|
value: input.contains
|
|
412
|
-
}, _errorFactory)) &&
|
|
544
|
+
}, _errorFactory)) && _au3(input.contains, _path + ".contains", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
413
545
|
method: "createAssert",
|
|
414
546
|
path: _path + ".contains",
|
|
415
|
-
expected: "__type.
|
|
547
|
+
expected: "(__type.o13 | __type.o14)",
|
|
416
548
|
value: input.contains
|
|
417
|
-
}, _errorFactory)); const
|
|
549
|
+
}, _errorFactory)); const _ao14 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
550
|
+
const value = input[key];
|
|
551
|
+
if (undefined === value)
|
|
552
|
+
return true;
|
|
553
|
+
return (null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
554
|
+
method: "createAssert",
|
|
555
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
556
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
557
|
+
value: value
|
|
558
|
+
}, _errorFactory)) && (undefined !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
559
|
+
method: "createAssert",
|
|
560
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
561
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
562
|
+
value: value
|
|
563
|
+
}, _errorFactory)) && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_at0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
564
|
+
method: "createAssert",
|
|
565
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
566
|
+
expected: "readonly [Schema, ...Schema[]]",
|
|
567
|
+
value: value
|
|
568
|
+
}, _errorFactory)) || "object" === typeof value && null !== value && _au0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
569
|
+
method: "createAssert",
|
|
570
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
571
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
572
|
+
value: value
|
|
573
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
574
|
+
method: "createAssert",
|
|
575
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
576
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
577
|
+
value: value
|
|
578
|
+
}, _errorFactory));
|
|
579
|
+
}); const _ao15 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
580
|
+
const value = input[key];
|
|
581
|
+
if (undefined === value)
|
|
582
|
+
return true;
|
|
583
|
+
return (null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
584
|
+
method: "createAssert",
|
|
585
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
586
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
587
|
+
value: value
|
|
588
|
+
}, _errorFactory)) && (undefined !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
589
|
+
method: "createAssert",
|
|
590
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
591
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
592
|
+
value: value
|
|
593
|
+
}, _errorFactory)) && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_at0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
594
|
+
method: "createAssert",
|
|
595
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
596
|
+
expected: "readonly [Schema, ...Schema[]]",
|
|
597
|
+
value: value
|
|
598
|
+
}, _errorFactory)) || "object" === typeof value && null !== value && _au0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
599
|
+
method: "createAssert",
|
|
600
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
601
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
602
|
+
value: value
|
|
603
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
604
|
+
method: "createAssert",
|
|
605
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
606
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
607
|
+
value: value
|
|
608
|
+
}, _errorFactory));
|
|
609
|
+
}); const _ao16 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
418
610
|
const value = input[key];
|
|
419
611
|
if (undefined === value)
|
|
420
612
|
return true;
|
|
421
613
|
return (null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
422
614
|
method: "createAssert",
|
|
423
615
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
424
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
616
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
425
617
|
value: value
|
|
426
618
|
}, _errorFactory)) && (undefined !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
427
619
|
method: "createAssert",
|
|
428
620
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
429
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
621
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
430
622
|
value: value
|
|
431
623
|
}, _errorFactory)) && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_at0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
432
624
|
method: "createAssert",
|
|
@@ -436,23 +628,23 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
436
628
|
}, _errorFactory)) || "object" === typeof value && null !== value && _au0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
437
629
|
method: "createAssert",
|
|
438
630
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
439
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
631
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
440
632
|
value: value
|
|
441
633
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
442
634
|
method: "createAssert",
|
|
443
635
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
444
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
636
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
445
637
|
value: value
|
|
446
638
|
}, _errorFactory));
|
|
447
|
-
}); const
|
|
639
|
+
}); const _ao17 = (input, _path, _exceptionable = true) => (null !== input.optional || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
448
640
|
method: "createAssert",
|
|
449
641
|
path: _path + ".optional",
|
|
450
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
642
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
451
643
|
value: input.optional
|
|
452
644
|
}, _errorFactory)) && (undefined !== input.optional || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
453
645
|
method: "createAssert",
|
|
454
646
|
path: _path + ".optional",
|
|
455
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
647
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
456
648
|
value: input.optional
|
|
457
649
|
}, _errorFactory)) && ("function" === typeof input.optional || "bigint" === typeof input.optional || (Array.isArray(input.optional) && (_at0(input.optional, _path + ".optional", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
458
650
|
method: "createAssert",
|
|
@@ -462,80 +654,104 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
462
654
|
}, _errorFactory)) || "object" === typeof input.optional && null !== input.optional && _au0(input.optional, _path + ".optional", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
463
655
|
method: "createAssert",
|
|
464
656
|
path: _path + ".optional",
|
|
465
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
657
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
466
658
|
value: input.optional
|
|
467
659
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
468
660
|
method: "createAssert",
|
|
469
661
|
path: _path + ".optional",
|
|
470
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
662
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
471
663
|
value: input.optional
|
|
472
664
|
}, _errorFactory)); const _au0 = (input, _path, _exceptionable = true) => (() => {
|
|
473
|
-
if (
|
|
665
|
+
if ("object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) && _au2(input.choice, _path + ".choice", false && _exceptionable))
|
|
666
|
+
return _ao2(input, _path, true && _exceptionable);
|
|
667
|
+
else if (Array.isArray(input.choice) && (_ap2(input.choice, _path + ".choice", false && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
668
|
+
method: "createAssert",
|
|
669
|
+
path: _path + ".choice",
|
|
670
|
+
expected: "Array<ValidateASN1.Schema> | ReadonlyArray<ValidateASN1.Schema>",
|
|
671
|
+
value: input.choice
|
|
672
|
+
}, _errorFactory)))
|
|
474
673
|
return _ao1(input, _path, true && _exceptionable);
|
|
475
674
|
else if (undefined !== input.sequenceOf)
|
|
476
|
-
return
|
|
675
|
+
return _ao4(input, _path, true && _exceptionable);
|
|
477
676
|
else if (undefined !== input.optional)
|
|
478
|
-
return
|
|
677
|
+
return _ao5(input, _path, true && _exceptionable);
|
|
479
678
|
else if ("context" === input.type)
|
|
480
|
-
return
|
|
679
|
+
return _ao6(input, _path, true && _exceptionable);
|
|
481
680
|
else if ("oid" === input.type)
|
|
482
|
-
return
|
|
681
|
+
return _ao7(input, _path, true && _exceptionable);
|
|
483
682
|
else if ("general" === input.kind)
|
|
484
|
-
return
|
|
683
|
+
return _ao12(input, _path, true && _exceptionable);
|
|
485
684
|
else if ("utc" === input.kind)
|
|
486
|
-
return
|
|
685
|
+
return _ao11(input, _path, true && _exceptionable);
|
|
487
686
|
else if ("utf8" === input.kind)
|
|
488
|
-
return
|
|
687
|
+
return _ao10(input, _path, true && _exceptionable);
|
|
489
688
|
else if ("ia5" === input.kind)
|
|
490
|
-
return
|
|
689
|
+
return _ao9(input, _path, true && _exceptionable);
|
|
491
690
|
else if ("printable" === input.kind)
|
|
492
|
-
return
|
|
691
|
+
return _ao8(input, _path, true && _exceptionable);
|
|
493
692
|
else if ("struct" === input.type)
|
|
494
|
-
return
|
|
693
|
+
return _ao13(input, _path, true && _exceptionable);
|
|
495
694
|
else
|
|
496
695
|
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
497
696
|
method: "createAssert",
|
|
498
697
|
path: _path,
|
|
499
|
-
expected: "(__type | __type.
|
|
698
|
+
expected: "(__type.o1 | __type | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o11 | __type.o10 | __type.o9 | __type.o8 | __type.o7 | __type.o12)",
|
|
500
699
|
value: input
|
|
501
700
|
}, _errorFactory);
|
|
502
701
|
})(); const _au1 = (input, _path, _exceptionable = true) => (() => {
|
|
503
|
-
if (
|
|
702
|
+
if ("object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) && _au2(input.choice, _path + ".choice", false && _exceptionable))
|
|
703
|
+
return _ao2(input, _path, true && _exceptionable);
|
|
704
|
+
else if (Array.isArray(input.choice) && (_ap2(input.choice, _path + ".choice", false && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
705
|
+
method: "createAssert",
|
|
706
|
+
path: _path + ".choice",
|
|
707
|
+
expected: "Array<ValidateASN1.Schema> | ReadonlyArray<ValidateASN1.Schema>",
|
|
708
|
+
value: input.choice
|
|
709
|
+
}, _errorFactory)))
|
|
504
710
|
return _ao1(input, _path, true && _exceptionable);
|
|
505
711
|
else if (undefined !== input.sequenceOf)
|
|
506
|
-
return _ao2(input, _path, true && _exceptionable);
|
|
507
|
-
else if ("context" === input.type)
|
|
508
712
|
return _ao4(input, _path, true && _exceptionable);
|
|
713
|
+
else if ("context" === input.type)
|
|
714
|
+
return _ao6(input, _path, true && _exceptionable);
|
|
509
715
|
else if ("oid" === input.type)
|
|
510
|
-
return
|
|
716
|
+
return _ao7(input, _path, true && _exceptionable);
|
|
511
717
|
else if ("general" === input.kind)
|
|
512
|
-
return
|
|
718
|
+
return _ao12(input, _path, true && _exceptionable);
|
|
513
719
|
else if ("utc" === input.kind)
|
|
514
|
-
return
|
|
720
|
+
return _ao11(input, _path, true && _exceptionable);
|
|
515
721
|
else if ("utf8" === input.kind)
|
|
516
|
-
return
|
|
722
|
+
return _ao10(input, _path, true && _exceptionable);
|
|
517
723
|
else if ("ia5" === input.kind)
|
|
518
|
-
return
|
|
724
|
+
return _ao9(input, _path, true && _exceptionable);
|
|
519
725
|
else if ("printable" === input.kind)
|
|
520
|
-
return
|
|
726
|
+
return _ao8(input, _path, true && _exceptionable);
|
|
521
727
|
else if ("struct" === input.type)
|
|
522
|
-
return
|
|
728
|
+
return _ao13(input, _path, true && _exceptionable);
|
|
523
729
|
else
|
|
524
|
-
return
|
|
730
|
+
return _ao5(input, _path, false && _exceptionable) || _ao17(input, _path, false && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
525
731
|
method: "createAssert",
|
|
526
732
|
path: _path,
|
|
527
|
-
expected: "(__type.
|
|
733
|
+
expected: "(__type.o4 | __type.o16)",
|
|
528
734
|
value: input
|
|
529
735
|
}, _errorFactory);
|
|
530
|
-
})(); const
|
|
736
|
+
})(); const _au2 = (input, _path, _exceptionable = true) => _ao16(input, _path, false && _exceptionable) || _ao3(input, _path, false && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
737
|
+
method: "createAssert",
|
|
738
|
+
path: _path,
|
|
739
|
+
expected: "(__type.o15 | __type.o2)",
|
|
740
|
+
value: input
|
|
741
|
+
}, _errorFactory); const _au3 = (input, _path, _exceptionable = true) => _ao15(input, _path, false && _exceptionable) || _ao14(input, _path, false && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
742
|
+
method: "createAssert",
|
|
743
|
+
path: _path,
|
|
744
|
+
expected: "(__type.o14 | __type.o13)",
|
|
745
|
+
value: input
|
|
746
|
+
}, _errorFactory); const _at0 = (input, _path, _exceptionable = true) => (null !== input[0] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
531
747
|
method: "createAssert",
|
|
532
748
|
path: _path + "[0]",
|
|
533
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
749
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
534
750
|
value: input[0]
|
|
535
751
|
}, _errorFactory)) && (undefined !== input[0] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
536
752
|
method: "createAssert",
|
|
537
753
|
path: _path + "[0]",
|
|
538
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
754
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
539
755
|
value: input[0]
|
|
540
756
|
}, _errorFactory)) && ("function" === typeof input[0] || "bigint" === typeof input[0] || (Array.isArray(input[0]) && (_at0(input[0], _path + "[0]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
541
757
|
method: "createAssert",
|
|
@@ -545,47 +761,47 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
545
761
|
}, _errorFactory)) || "object" === typeof input[0] && null !== input[0] && _au0(input[0], _path + "[0]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
546
762
|
method: "createAssert",
|
|
547
763
|
path: _path + "[0]",
|
|
548
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
764
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
549
765
|
value: input[0]
|
|
550
766
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
551
767
|
method: "createAssert",
|
|
552
768
|
path: _path + "[0]",
|
|
553
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
769
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
554
770
|
value: input[0]
|
|
555
771
|
}, _errorFactory)) && ((Array.isArray(input.slice(1)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
556
772
|
method: "createAssert",
|
|
557
773
|
path: _path,
|
|
558
|
-
expected: "...(__type | __type.o1 | __type.o10 | __type.
|
|
774
|
+
expected: "...(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
559
775
|
value: input.slice(1)
|
|
560
|
-
}, _errorFactory)) && input.slice(1).every((elem,
|
|
776
|
+
}, _errorFactory)) && input.slice(1).every((elem, _index26) => (null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
561
777
|
method: "createAssert",
|
|
562
|
-
path: _path + "[" + (1 +
|
|
563
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
778
|
+
path: _path + "[" + (1 + _index26) + "]",
|
|
779
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
564
780
|
value: elem
|
|
565
781
|
}, _errorFactory)) && (undefined !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
566
782
|
method: "createAssert",
|
|
567
|
-
path: _path + "[" + (1 +
|
|
568
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
783
|
+
path: _path + "[" + (1 + _index26) + "]",
|
|
784
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
569
785
|
value: elem
|
|
570
|
-
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" + (1 +
|
|
786
|
+
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" + (1 + _index26) + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
571
787
|
method: "createAssert",
|
|
572
|
-
path: _path + "[" + (1 +
|
|
788
|
+
path: _path + "[" + (1 + _index26) + "]",
|
|
573
789
|
expected: "readonly [Schema, ...Schema[]]",
|
|
574
790
|
value: elem
|
|
575
|
-
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" + (1 +
|
|
791
|
+
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" + (1 + _index26) + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
576
792
|
method: "createAssert",
|
|
577
|
-
path: _path + "[" + (1 +
|
|
578
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
793
|
+
path: _path + "[" + (1 + _index26) + "]",
|
|
794
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
579
795
|
value: elem
|
|
580
796
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
581
797
|
method: "createAssert",
|
|
582
|
-
path: _path + "[" + (1 +
|
|
583
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
798
|
+
path: _path + "[" + (1 + _index26) + "]",
|
|
799
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
584
800
|
value: elem
|
|
585
801
|
}, _errorFactory))) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
586
802
|
method: "createAssert",
|
|
587
803
|
path: _path,
|
|
588
|
-
expected: "...(__type | __type.o1 | __type.o10 | __type.
|
|
804
|
+
expected: "...(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
589
805
|
value: input.slice(1)
|
|
590
806
|
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
591
807
|
if (false === __is(input)) {
|
|
@@ -605,6 +821,29 @@ const assertStructFieldSchemaMap = (() => { const _ip0 = input => {
|
|
|
605
821
|
return input;
|
|
606
822
|
}; })();
|
|
607
823
|
const structSchemaGuard = (() => { const _ip0 = input => {
|
|
824
|
+
const array = input;
|
|
825
|
+
const top = input[0];
|
|
826
|
+
if (0 === input.length)
|
|
827
|
+
return true;
|
|
828
|
+
const arrayPredicators = [
|
|
829
|
+
[
|
|
830
|
+
top => "string" === typeof top,
|
|
831
|
+
entire => entire.every(elem => "string" === typeof elem)
|
|
832
|
+
],
|
|
833
|
+
[
|
|
834
|
+
top => "string" === typeof top,
|
|
835
|
+
entire => entire.every(elem => "string" === typeof elem)
|
|
836
|
+
]
|
|
837
|
+
];
|
|
838
|
+
const passed = arrayPredicators.filter(pred => pred[0](top));
|
|
839
|
+
if (1 === passed.length)
|
|
840
|
+
return passed[0][1](array);
|
|
841
|
+
else if (1 < passed.length)
|
|
842
|
+
for (const pred of passed)
|
|
843
|
+
if (array.every(value => true === pred[0](value)))
|
|
844
|
+
return pred[1](array);
|
|
845
|
+
return false;
|
|
846
|
+
}; const _ip1 = input => {
|
|
608
847
|
const array = input;
|
|
609
848
|
const top = input[0];
|
|
610
849
|
if (0 === input.length)
|
|
@@ -627,36 +866,65 @@ const structSchemaGuard = (() => { const _ip0 = input => {
|
|
|
627
866
|
if (array.every(value => true === pred[0](value)))
|
|
628
867
|
return pred[1](array);
|
|
629
868
|
return false;
|
|
630
|
-
}; const _io0 = input => "struct" === input.type && (Array.isArray(input.fieldNames) && input.fieldNames
|
|
869
|
+
}; const _io0 = input => "struct" === input.type && (Array.isArray(input.fieldNames) && (_ip0(input.fieldNames) || false)) && ("object" === typeof input.contains && null !== input.contains && false === Array.isArray(input.contains) && _iu1(input.contains)); const _io1 = input => Object.keys(input).every(key => {
|
|
631
870
|
const value = input[key];
|
|
632
871
|
if (undefined === value)
|
|
633
872
|
return true;
|
|
634
873
|
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
635
|
-
}); const _io2 = input => Array.isArray(input.choice) && (
|
|
636
|
-
|
|
874
|
+
}); const _io2 = input => Array.isArray(input.choice) && (_ip1(input.choice) || false); const _io3 = input => "object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) && _iu2(input.choice); const _io4 = input => Object.keys(input).every(key => {
|
|
875
|
+
const value = input[key];
|
|
876
|
+
if (undefined === value)
|
|
877
|
+
return true;
|
|
878
|
+
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
879
|
+
}); const _io5 = input => null !== input.sequenceOf && undefined !== input.sequenceOf && ("function" === typeof input.sequenceOf || "bigint" === typeof input.sequenceOf || (Array.isArray(input.sequenceOf) && (_it0(input.sequenceOf) || false) || "object" === typeof input.sequenceOf && null !== input.sequenceOf && _iu0(input.sequenceOf))); const _io6 = input => null !== input.optional && undefined !== input.optional && ("function" === typeof input.optional || "bigint" === typeof input.optional || (Array.isArray(input.optional) && (_it0(input.optional) || false) || "object" === typeof input.optional && null !== input.optional && _iu0(input.optional))); const _io7 = input => "context" === input.type && ("explicit" === input.kind || "implicit" === input.kind) && (null !== input.contains && undefined !== input.contains && ("function" === typeof input.contains || "bigint" === typeof input.contains || (Array.isArray(input.contains) && (_it0(input.contains) || false) || "object" === typeof input.contains && null !== input.contains && _iu0(input.contains)))) && "number" === typeof input.value; const _io8 = input => "oid" === input.type && "string" === typeof input.oid; const _io9 = input => "string" === input.type && "printable" === input.kind; const _io10 = input => "string" === input.type && "ia5" === input.kind; const _io11 = input => "string" === input.type && "utf8" === input.kind; const _io12 = input => "date" === input.type && "utc" === input.kind; const _io13 = input => "date" === input.type && "general" === input.kind; const _io14 = input => Object.keys(input).every(key => {
|
|
880
|
+
const value = input[key];
|
|
881
|
+
if (undefined === value)
|
|
882
|
+
return true;
|
|
883
|
+
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
884
|
+
}); const _io15 = input => Object.keys(input).every(key => {
|
|
885
|
+
const value = input[key];
|
|
886
|
+
if (undefined === value)
|
|
887
|
+
return true;
|
|
888
|
+
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
889
|
+
}); const _iu0 = input => (() => {
|
|
890
|
+
if ("object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) && _iu2(input.choice))
|
|
891
|
+
return _io3(input);
|
|
892
|
+
else if (Array.isArray(input.choice) && (_ip1(input.choice) || false))
|
|
637
893
|
return _io2(input);
|
|
638
894
|
else if (undefined !== input.sequenceOf)
|
|
639
|
-
return
|
|
895
|
+
return _io5(input);
|
|
640
896
|
else if (undefined !== input.optional)
|
|
641
|
-
return
|
|
897
|
+
return _io6(input);
|
|
642
898
|
else if ("context" === input.type)
|
|
643
|
-
return
|
|
899
|
+
return _io7(input);
|
|
644
900
|
else if ("oid" === input.type)
|
|
645
|
-
return
|
|
901
|
+
return _io8(input);
|
|
646
902
|
else if ("general" === input.kind)
|
|
647
|
-
return
|
|
903
|
+
return _io13(input);
|
|
648
904
|
else if ("utc" === input.kind)
|
|
649
|
-
return
|
|
905
|
+
return _io12(input);
|
|
650
906
|
else if ("utf8" === input.kind)
|
|
651
|
-
return
|
|
907
|
+
return _io11(input);
|
|
652
908
|
else if ("ia5" === input.kind)
|
|
653
|
-
return
|
|
909
|
+
return _io10(input);
|
|
654
910
|
else if ("printable" === input.kind)
|
|
655
|
-
return
|
|
911
|
+
return _io9(input);
|
|
656
912
|
else if ("struct" === input.type)
|
|
657
913
|
return _io0(input);
|
|
658
914
|
else
|
|
659
915
|
return false;
|
|
916
|
+
})(); const _iu1 = input => (() => {
|
|
917
|
+
if (_io15(input))
|
|
918
|
+
return _io15(input);
|
|
919
|
+
if (_io1(input))
|
|
920
|
+
return _io1(input);
|
|
921
|
+
return false;
|
|
922
|
+
})(); const _iu2 = input => (() => {
|
|
923
|
+
if (_io14(input))
|
|
924
|
+
return _io14(input);
|
|
925
|
+
if (_io4(input))
|
|
926
|
+
return _io4(input);
|
|
927
|
+
return false;
|
|
660
928
|
})(); const _it0 = input => null !== input[0] && undefined !== input[0] && ("function" === typeof input[0] || "bigint" === typeof input[0] || (Array.isArray(input[0]) && (_it0(input[0]) || false) || "object" === typeof input[0] && null !== input[0] && _iu0(input[0]))) && (Array.isArray(input.slice(1)) && input.slice(1).every(elem => null !== elem && undefined !== elem && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_it0(elem) || false) || "object" === typeof elem && null !== elem && _iu0(elem))))); return input => "object" === typeof input && null !== input && _io0(input); })();
|
|
661
929
|
const structSchemaCache = new WeakMap();
|
|
662
930
|
function defaultPrintValue(value) {
|
|
@@ -842,7 +1110,30 @@ function prepareValueForSchema(schema, value) {
|
|
|
842
1110
|
if (array.every(value => true === pred[0](value)))
|
|
843
1111
|
return pred[1](array);
|
|
844
1112
|
return false;
|
|
845
|
-
}; const
|
|
1113
|
+
}; const _ip1 = input => {
|
|
1114
|
+
const array = input;
|
|
1115
|
+
const top = input[0];
|
|
1116
|
+
if (0 === input.length)
|
|
1117
|
+
return true;
|
|
1118
|
+
const arrayPredicators = [
|
|
1119
|
+
[
|
|
1120
|
+
top => "string" === typeof top,
|
|
1121
|
+
entire => entire.every(elem => "string" === typeof elem)
|
|
1122
|
+
],
|
|
1123
|
+
[
|
|
1124
|
+
top => "string" === typeof top,
|
|
1125
|
+
entire => entire.every(elem => "string" === typeof elem)
|
|
1126
|
+
]
|
|
1127
|
+
];
|
|
1128
|
+
const passed = arrayPredicators.filter(pred => pred[0](top));
|
|
1129
|
+
if (1 === passed.length)
|
|
1130
|
+
return passed[0][1](array);
|
|
1131
|
+
else if (1 < passed.length)
|
|
1132
|
+
for (const pred of passed)
|
|
1133
|
+
if (array.every(value => true === pred[0](value)))
|
|
1134
|
+
return pred[1](array);
|
|
1135
|
+
return false;
|
|
1136
|
+
}; const _ap2 = (input, _path, _exceptionable = true) => {
|
|
846
1137
|
const array = input;
|
|
847
1138
|
const top = input[0];
|
|
848
1139
|
if (0 === input.length)
|
|
@@ -855,30 +1146,30 @@ function prepareValueForSchema(schema, value) {
|
|
|
855
1146
|
expected: "readonly [Schema, ...Schema[]]",
|
|
856
1147
|
value: top
|
|
857
1148
|
}, _errorFactory)) || "object" === typeof top && null !== top && _au0(top, _path, false && _exceptionable))),
|
|
858
|
-
entire => entire.every((elem,
|
|
1149
|
+
entire => entire.every((elem, _index14) => (null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
859
1150
|
method: "assert",
|
|
860
|
-
path: _path + "[" +
|
|
861
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1151
|
+
path: _path + "[" + _index14 + "]",
|
|
1152
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
862
1153
|
value: elem
|
|
863
1154
|
}, _errorFactory)) && (undefined !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
864
1155
|
method: "assert",
|
|
865
|
-
path: _path + "[" +
|
|
866
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1156
|
+
path: _path + "[" + _index14 + "]",
|
|
1157
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
867
1158
|
value: elem
|
|
868
|
-
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" +
|
|
1159
|
+
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" + _index14 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
869
1160
|
method: "assert",
|
|
870
|
-
path: _path + "[" +
|
|
1161
|
+
path: _path + "[" + _index14 + "]",
|
|
871
1162
|
expected: "readonly [Schema, ...Schema[]]",
|
|
872
1163
|
value: elem
|
|
873
|
-
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" +
|
|
1164
|
+
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" + _index14 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
874
1165
|
method: "assert",
|
|
875
|
-
path: _path + "[" +
|
|
876
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1166
|
+
path: _path + "[" + _index14 + "]",
|
|
1167
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
877
1168
|
value: elem
|
|
878
1169
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
879
1170
|
method: "assert",
|
|
880
|
-
path: _path + "[" +
|
|
881
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1171
|
+
path: _path + "[" + _index14 + "]",
|
|
1172
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
882
1173
|
value: elem
|
|
883
1174
|
}, _errorFactory)))
|
|
884
1175
|
],
|
|
@@ -889,30 +1180,30 @@ function prepareValueForSchema(schema, value) {
|
|
|
889
1180
|
expected: "readonly [Schema, ...Schema[]]",
|
|
890
1181
|
value: top
|
|
891
1182
|
}, _errorFactory)) || "object" === typeof top && null !== top && _au0(top, _path, false && _exceptionable))),
|
|
892
|
-
entire => entire.every((elem,
|
|
1183
|
+
entire => entire.every((elem, _index15) => (null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
893
1184
|
method: "assert",
|
|
894
|
-
path: _path + "[" +
|
|
895
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1185
|
+
path: _path + "[" + _index15 + "]",
|
|
1186
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
896
1187
|
value: elem
|
|
897
1188
|
}, _errorFactory)) && (undefined !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
898
1189
|
method: "assert",
|
|
899
|
-
path: _path + "[" +
|
|
900
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1190
|
+
path: _path + "[" + _index15 + "]",
|
|
1191
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
901
1192
|
value: elem
|
|
902
|
-
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" +
|
|
1193
|
+
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" + _index15 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
903
1194
|
method: "assert",
|
|
904
|
-
path: _path + "[" +
|
|
1195
|
+
path: _path + "[" + _index15 + "]",
|
|
905
1196
|
expected: "readonly [Schema, ...Schema[]]",
|
|
906
1197
|
value: elem
|
|
907
|
-
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" +
|
|
1198
|
+
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" + _index15 + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
908
1199
|
method: "assert",
|
|
909
|
-
path: _path + "[" +
|
|
910
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1200
|
+
path: _path + "[" + _index15 + "]",
|
|
1201
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
911
1202
|
value: elem
|
|
912
1203
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
913
1204
|
method: "assert",
|
|
914
|
-
path: _path + "[" +
|
|
915
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1205
|
+
path: _path + "[" + _index15 + "]",
|
|
1206
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
916
1207
|
value: elem
|
|
917
1208
|
}, _errorFactory)))
|
|
918
1209
|
]
|
|
@@ -930,42 +1221,109 @@ function prepareValueForSchema(schema, value) {
|
|
|
930
1221
|
expected: "(Array<ValidateASN1.Schema> | ReadonlyArray<ValidateASN1.Schema>)",
|
|
931
1222
|
value: input
|
|
932
1223
|
}, _errorFactory);
|
|
933
|
-
}; const
|
|
1224
|
+
}; const _ap3 = (input, _path, _exceptionable = true) => {
|
|
1225
|
+
const array = input;
|
|
1226
|
+
const top = input[0];
|
|
1227
|
+
if (0 === input.length)
|
|
1228
|
+
return true;
|
|
1229
|
+
const arrayPredicators = [
|
|
1230
|
+
[
|
|
1231
|
+
top => "string" === typeof top,
|
|
1232
|
+
entire => entire.every((elem, _index18) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1233
|
+
method: "assert",
|
|
1234
|
+
path: _path + "[" + _index18 + "]",
|
|
1235
|
+
expected: "string",
|
|
1236
|
+
value: elem
|
|
1237
|
+
}, _errorFactory))
|
|
1238
|
+
],
|
|
1239
|
+
[
|
|
1240
|
+
top => "string" === typeof top,
|
|
1241
|
+
entire => entire.every((elem, _index19) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1242
|
+
method: "assert",
|
|
1243
|
+
path: _path + "[" + _index19 + "]",
|
|
1244
|
+
expected: "string",
|
|
1245
|
+
value: elem
|
|
1246
|
+
}, _errorFactory))
|
|
1247
|
+
]
|
|
1248
|
+
];
|
|
1249
|
+
const passed = arrayPredicators.filter(pred => pred[0](top));
|
|
1250
|
+
if (1 === passed.length)
|
|
1251
|
+
return passed[0][1](array);
|
|
1252
|
+
else if (1 < passed.length)
|
|
1253
|
+
for (const pred of passed)
|
|
1254
|
+
if (array.every(value => true === pred[0](value)))
|
|
1255
|
+
return pred[1](array);
|
|
1256
|
+
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1257
|
+
method: "assert",
|
|
1258
|
+
path: _path,
|
|
1259
|
+
expected: "(ReadonlyArray<string> | Array<string>)",
|
|
1260
|
+
value: input
|
|
1261
|
+
}, _errorFactory);
|
|
1262
|
+
}; const _io0 = input => Array.isArray(input.choice) && (_ip0(input.choice) || false); const _io1 = input => "object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) && _iu1(input.choice); const _io2 = input => Object.keys(input).every(key => {
|
|
1263
|
+
const value = input[key];
|
|
1264
|
+
if (undefined === value)
|
|
1265
|
+
return true;
|
|
1266
|
+
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
1267
|
+
}); const _io3 = input => null !== input.sequenceOf && undefined !== input.sequenceOf && ("function" === typeof input.sequenceOf || "bigint" === typeof input.sequenceOf || (Array.isArray(input.sequenceOf) && (_it0(input.sequenceOf) || false) || "object" === typeof input.sequenceOf && null !== input.sequenceOf && _iu0(input.sequenceOf))); const _io4 = input => null !== input.optional && undefined !== input.optional && ("function" === typeof input.optional || "bigint" === typeof input.optional || (Array.isArray(input.optional) && (_it0(input.optional) || false) || "object" === typeof input.optional && null !== input.optional && _iu0(input.optional))); const _io5 = input => "context" === input.type && ("explicit" === input.kind || "implicit" === input.kind) && (null !== input.contains && undefined !== input.contains && ("function" === typeof input.contains || "bigint" === typeof input.contains || (Array.isArray(input.contains) && (_it0(input.contains) || false) || "object" === typeof input.contains && null !== input.contains && _iu0(input.contains)))) && "number" === typeof input.value; const _io6 = input => "oid" === input.type && "string" === typeof input.oid; const _io7 = input => "string" === input.type && "printable" === input.kind; const _io8 = input => "string" === input.type && "ia5" === input.kind; const _io9 = input => "string" === input.type && "utf8" === input.kind; const _io10 = input => "date" === input.type && "utc" === input.kind; const _io11 = input => "date" === input.type && "general" === input.kind; const _io12 = input => "struct" === input.type && (Array.isArray(input.fieldNames) && (_ip1(input.fieldNames) || false)) && ("object" === typeof input.contains && null !== input.contains && false === Array.isArray(input.contains) && _iu2(input.contains)); const _io13 = input => Object.keys(input).every(key => {
|
|
1268
|
+
const value = input[key];
|
|
1269
|
+
if (undefined === value)
|
|
1270
|
+
return true;
|
|
1271
|
+
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
1272
|
+
}); const _io14 = input => Object.keys(input).every(key => {
|
|
1273
|
+
const value = input[key];
|
|
1274
|
+
if (undefined === value)
|
|
1275
|
+
return true;
|
|
1276
|
+
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
1277
|
+
}); const _io15 = input => Object.keys(input).every(key => {
|
|
934
1278
|
const value = input[key];
|
|
935
1279
|
if (undefined === value)
|
|
936
1280
|
return true;
|
|
937
1281
|
return null !== value && undefined !== value && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_it0(value) || false) || "object" === typeof value && null !== value && _iu0(value)));
|
|
938
1282
|
}); const _iu0 = input => (() => {
|
|
939
|
-
if (
|
|
1283
|
+
if ("object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) && _iu1(input.choice))
|
|
1284
|
+
return _io1(input);
|
|
1285
|
+
else if (Array.isArray(input.choice) && (_ip0(input.choice) || false))
|
|
940
1286
|
return _io0(input);
|
|
941
1287
|
else if (undefined !== input.sequenceOf)
|
|
942
|
-
return
|
|
1288
|
+
return _io3(input);
|
|
943
1289
|
else if (undefined !== input.optional)
|
|
944
|
-
return
|
|
1290
|
+
return _io4(input);
|
|
945
1291
|
else if ("context" === input.type)
|
|
946
|
-
return
|
|
1292
|
+
return _io5(input);
|
|
947
1293
|
else if ("oid" === input.type)
|
|
948
|
-
return
|
|
1294
|
+
return _io6(input);
|
|
949
1295
|
else if ("general" === input.kind)
|
|
950
|
-
return
|
|
1296
|
+
return _io11(input);
|
|
951
1297
|
else if ("utc" === input.kind)
|
|
952
|
-
return
|
|
1298
|
+
return _io10(input);
|
|
953
1299
|
else if ("utf8" === input.kind)
|
|
954
|
-
return
|
|
1300
|
+
return _io9(input);
|
|
955
1301
|
else if ("ia5" === input.kind)
|
|
956
|
-
return
|
|
1302
|
+
return _io8(input);
|
|
957
1303
|
else if ("printable" === input.kind)
|
|
958
|
-
return
|
|
1304
|
+
return _io7(input);
|
|
959
1305
|
else if ("struct" === input.type)
|
|
960
|
-
return
|
|
1306
|
+
return _io12(input);
|
|
961
1307
|
else
|
|
962
1308
|
return false;
|
|
1309
|
+
})(); const _iu1 = input => (() => {
|
|
1310
|
+
if (_io15(input))
|
|
1311
|
+
return _io15(input);
|
|
1312
|
+
if (_io2(input))
|
|
1313
|
+
return _io2(input);
|
|
1314
|
+
return false;
|
|
1315
|
+
})(); const _iu2 = input => (() => {
|
|
1316
|
+
if (_io14(input))
|
|
1317
|
+
return _io14(input);
|
|
1318
|
+
if (_io13(input))
|
|
1319
|
+
return _io13(input);
|
|
1320
|
+
return false;
|
|
963
1321
|
})(); const _it0 = input => null !== input[0] && undefined !== input[0] && ("function" === typeof input[0] || "bigint" === typeof input[0] || (Array.isArray(input[0]) && (_it0(input[0]) || false) || "object" === typeof input[0] && null !== input[0] && _iu0(input[0]))) && (Array.isArray(input.slice(1)) && input.slice(1).every(elem => null !== elem && undefined !== elem && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_it0(elem) || false) || "object" === typeof elem && null !== elem && _iu0(elem))))); const _ao0 = (input, _path, _exceptionable = true) => (Array.isArray(input.choice) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
964
1322
|
method: "assert",
|
|
965
1323
|
path: _path + ".choice",
|
|
966
1324
|
expected: "(Array<ValidateASN1.Schema> | ReadonlyArray<ValidateASN1.Schema>)",
|
|
967
1325
|
value: input.choice
|
|
968
|
-
}, _errorFactory)) && (
|
|
1326
|
+
}, _errorFactory)) && (_ap2(input.choice, _path + ".choice", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
969
1327
|
method: "assert",
|
|
970
1328
|
path: _path + ".choice",
|
|
971
1329
|
expected: "Array<ValidateASN1.Schema> | ReadonlyArray<ValidateASN1.Schema>",
|
|
@@ -975,15 +1333,55 @@ function prepareValueForSchema(schema, value) {
|
|
|
975
1333
|
path: _path + ".choice",
|
|
976
1334
|
expected: "(Array<ValidateASN1.Schema> | ReadonlyArray<ValidateASN1.Schema>)",
|
|
977
1335
|
value: input.choice
|
|
978
|
-
}, _errorFactory); const _ao1 = (input, _path, _exceptionable = true) => (null !== input.
|
|
1336
|
+
}, _errorFactory); const _ao1 = (input, _path, _exceptionable = true) => ("object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1337
|
+
method: "assert",
|
|
1338
|
+
path: _path + ".choice",
|
|
1339
|
+
expected: "(__type.o15 | __type.o2)",
|
|
1340
|
+
value: input.choice
|
|
1341
|
+
}, _errorFactory)) && _au1(input.choice, _path + ".choice", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1342
|
+
method: "assert",
|
|
1343
|
+
path: _path + ".choice",
|
|
1344
|
+
expected: "(__type.o15 | __type.o2)",
|
|
1345
|
+
value: input.choice
|
|
1346
|
+
}, _errorFactory); const _ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1347
|
+
const value = input[key];
|
|
1348
|
+
if (undefined === value)
|
|
1349
|
+
return true;
|
|
1350
|
+
return (null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1351
|
+
method: "assert",
|
|
1352
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1353
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1354
|
+
value: value
|
|
1355
|
+
}, _errorFactory)) && (undefined !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1356
|
+
method: "assert",
|
|
1357
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1358
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1359
|
+
value: value
|
|
1360
|
+
}, _errorFactory)) && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_at0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1361
|
+
method: "assert",
|
|
1362
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1363
|
+
expected: "readonly [Schema, ...Schema[]]",
|
|
1364
|
+
value: value
|
|
1365
|
+
}, _errorFactory)) || "object" === typeof value && null !== value && _au0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1366
|
+
method: "assert",
|
|
1367
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1368
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1369
|
+
value: value
|
|
1370
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1371
|
+
method: "assert",
|
|
1372
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1373
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1374
|
+
value: value
|
|
1375
|
+
}, _errorFactory));
|
|
1376
|
+
}); const _ao3 = (input, _path, _exceptionable = true) => (null !== input.sequenceOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
979
1377
|
method: "assert",
|
|
980
1378
|
path: _path + ".sequenceOf",
|
|
981
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1379
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
982
1380
|
value: input.sequenceOf
|
|
983
1381
|
}, _errorFactory)) && (undefined !== input.sequenceOf || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
984
1382
|
method: "assert",
|
|
985
1383
|
path: _path + ".sequenceOf",
|
|
986
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1384
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
987
1385
|
value: input.sequenceOf
|
|
988
1386
|
}, _errorFactory)) && ("function" === typeof input.sequenceOf || "bigint" === typeof input.sequenceOf || (Array.isArray(input.sequenceOf) && (_at0(input.sequenceOf, _path + ".sequenceOf", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
989
1387
|
method: "assert",
|
|
@@ -993,22 +1391,22 @@ function prepareValueForSchema(schema, value) {
|
|
|
993
1391
|
}, _errorFactory)) || "object" === typeof input.sequenceOf && null !== input.sequenceOf && _au0(input.sequenceOf, _path + ".sequenceOf", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
994
1392
|
method: "assert",
|
|
995
1393
|
path: _path + ".sequenceOf",
|
|
996
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1394
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
997
1395
|
value: input.sequenceOf
|
|
998
1396
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
999
1397
|
method: "assert",
|
|
1000
1398
|
path: _path + ".sequenceOf",
|
|
1001
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1399
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1002
1400
|
value: input.sequenceOf
|
|
1003
|
-
}, _errorFactory)); const
|
|
1401
|
+
}, _errorFactory)); const _ao4 = (input, _path, _exceptionable = true) => (null !== input.optional || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1004
1402
|
method: "assert",
|
|
1005
1403
|
path: _path + ".optional",
|
|
1006
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1404
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1007
1405
|
value: input.optional
|
|
1008
1406
|
}, _errorFactory)) && (undefined !== input.optional || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1009
1407
|
method: "assert",
|
|
1010
1408
|
path: _path + ".optional",
|
|
1011
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1409
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1012
1410
|
value: input.optional
|
|
1013
1411
|
}, _errorFactory)) && ("function" === typeof input.optional || "bigint" === typeof input.optional || (Array.isArray(input.optional) && (_at0(input.optional, _path + ".optional", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1014
1412
|
method: "assert",
|
|
@@ -1018,14 +1416,14 @@ function prepareValueForSchema(schema, value) {
|
|
|
1018
1416
|
}, _errorFactory)) || "object" === typeof input.optional && null !== input.optional && _au0(input.optional, _path + ".optional", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1019
1417
|
method: "assert",
|
|
1020
1418
|
path: _path + ".optional",
|
|
1021
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1419
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1022
1420
|
value: input.optional
|
|
1023
1421
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1024
1422
|
method: "assert",
|
|
1025
1423
|
path: _path + ".optional",
|
|
1026
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1424
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1027
1425
|
value: input.optional
|
|
1028
|
-
}, _errorFactory)); const
|
|
1426
|
+
}, _errorFactory)); const _ao5 = (input, _path, _exceptionable = true) => ("context" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1029
1427
|
method: "assert",
|
|
1030
1428
|
path: _path + ".type",
|
|
1031
1429
|
expected: "\"context\"",
|
|
@@ -1038,12 +1436,12 @@ function prepareValueForSchema(schema, value) {
|
|
|
1038
1436
|
}, _errorFactory)) && ((null !== input.contains || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1039
1437
|
method: "assert",
|
|
1040
1438
|
path: _path + ".contains",
|
|
1041
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1439
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1042
1440
|
value: input.contains
|
|
1043
1441
|
}, _errorFactory)) && (undefined !== input.contains || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1044
1442
|
method: "assert",
|
|
1045
1443
|
path: _path + ".contains",
|
|
1046
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1444
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1047
1445
|
value: input.contains
|
|
1048
1446
|
}, _errorFactory)) && ("function" === typeof input.contains || "bigint" === typeof input.contains || (Array.isArray(input.contains) && (_at0(input.contains, _path + ".contains", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1049
1447
|
method: "assert",
|
|
@@ -1053,19 +1451,19 @@ function prepareValueForSchema(schema, value) {
|
|
|
1053
1451
|
}, _errorFactory)) || "object" === typeof input.contains && null !== input.contains && _au0(input.contains, _path + ".contains", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1054
1452
|
method: "assert",
|
|
1055
1453
|
path: _path + ".contains",
|
|
1056
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1454
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1057
1455
|
value: input.contains
|
|
1058
1456
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1059
1457
|
method: "assert",
|
|
1060
1458
|
path: _path + ".contains",
|
|
1061
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1459
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1062
1460
|
value: input.contains
|
|
1063
1461
|
}, _errorFactory))) && ("number" === typeof input.value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1064
1462
|
method: "assert",
|
|
1065
1463
|
path: _path + ".value",
|
|
1066
1464
|
expected: "number",
|
|
1067
1465
|
value: input.value
|
|
1068
|
-
}, _errorFactory)); const
|
|
1466
|
+
}, _errorFactory)); const _ao6 = (input, _path, _exceptionable = true) => ("oid" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1069
1467
|
method: "assert",
|
|
1070
1468
|
path: _path + ".type",
|
|
1071
1469
|
expected: "\"oid\"",
|
|
@@ -1075,7 +1473,7 @@ function prepareValueForSchema(schema, value) {
|
|
|
1075
1473
|
path: _path + ".oid",
|
|
1076
1474
|
expected: "string",
|
|
1077
1475
|
value: input.oid
|
|
1078
|
-
}, _errorFactory)); const
|
|
1476
|
+
}, _errorFactory)); const _ao7 = (input, _path, _exceptionable = true) => ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1079
1477
|
method: "assert",
|
|
1080
1478
|
path: _path + ".type",
|
|
1081
1479
|
expected: "\"string\"",
|
|
@@ -1085,7 +1483,7 @@ function prepareValueForSchema(schema, value) {
|
|
|
1085
1483
|
path: _path + ".kind",
|
|
1086
1484
|
expected: "\"printable\"",
|
|
1087
1485
|
value: input.kind
|
|
1088
|
-
}, _errorFactory)); const
|
|
1486
|
+
}, _errorFactory)); const _ao8 = (input, _path, _exceptionable = true) => ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1089
1487
|
method: "assert",
|
|
1090
1488
|
path: _path + ".type",
|
|
1091
1489
|
expected: "\"string\"",
|
|
@@ -1095,7 +1493,7 @@ function prepareValueForSchema(schema, value) {
|
|
|
1095
1493
|
path: _path + ".kind",
|
|
1096
1494
|
expected: "\"ia5\"",
|
|
1097
1495
|
value: input.kind
|
|
1098
|
-
}, _errorFactory)); const
|
|
1496
|
+
}, _errorFactory)); const _ao9 = (input, _path, _exceptionable = true) => ("string" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1099
1497
|
method: "assert",
|
|
1100
1498
|
path: _path + ".type",
|
|
1101
1499
|
expected: "\"string\"",
|
|
@@ -1105,7 +1503,7 @@ function prepareValueForSchema(schema, value) {
|
|
|
1105
1503
|
path: _path + ".kind",
|
|
1106
1504
|
expected: "\"utf8\"",
|
|
1107
1505
|
value: input.kind
|
|
1108
|
-
}, _errorFactory)); const
|
|
1506
|
+
}, _errorFactory)); const _ao10 = (input, _path, _exceptionable = true) => ("date" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1109
1507
|
method: "assert",
|
|
1110
1508
|
path: _path + ".type",
|
|
1111
1509
|
expected: "\"date\"",
|
|
@@ -1115,7 +1513,7 @@ function prepareValueForSchema(schema, value) {
|
|
|
1115
1513
|
path: _path + ".kind",
|
|
1116
1514
|
expected: "\"utc\"",
|
|
1117
1515
|
value: input.kind
|
|
1118
|
-
}, _errorFactory)); const
|
|
1516
|
+
}, _errorFactory)); const _ao11 = (input, _path, _exceptionable = true) => ("date" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1119
1517
|
method: "assert",
|
|
1120
1518
|
path: _path + ".type",
|
|
1121
1519
|
expected: "\"date\"",
|
|
@@ -1125,7 +1523,7 @@ function prepareValueForSchema(schema, value) {
|
|
|
1125
1523
|
path: _path + ".kind",
|
|
1126
1524
|
expected: "\"general\"",
|
|
1127
1525
|
value: input.kind
|
|
1128
|
-
}, _errorFactory)); const
|
|
1526
|
+
}, _errorFactory)); const _ao12 = (input, _path, _exceptionable = true) => ("struct" === input.type || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1129
1527
|
method: "assert",
|
|
1130
1528
|
path: _path + ".type",
|
|
1131
1529
|
expected: "\"struct\"",
|
|
@@ -1133,41 +1531,101 @@ function prepareValueForSchema(schema, value) {
|
|
|
1133
1531
|
}, _errorFactory)) && ((Array.isArray(input.fieldNames) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1134
1532
|
method: "assert",
|
|
1135
1533
|
path: _path + ".fieldNames",
|
|
1136
|
-
expected: "Array<string>",
|
|
1534
|
+
expected: "(Array<string> | ReadonlyArray<string>)",
|
|
1137
1535
|
value: input.fieldNames
|
|
1138
|
-
}, _errorFactory)) && input.fieldNames
|
|
1536
|
+
}, _errorFactory)) && (_ap3(input.fieldNames, _path + ".fieldNames", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1139
1537
|
method: "assert",
|
|
1140
|
-
path: _path + ".fieldNames
|
|
1141
|
-
expected: "string",
|
|
1142
|
-
value:
|
|
1538
|
+
path: _path + ".fieldNames",
|
|
1539
|
+
expected: "ReadonlyArray<string> | Array<string>",
|
|
1540
|
+
value: input.fieldNames
|
|
1143
1541
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1144
1542
|
method: "assert",
|
|
1145
1543
|
path: _path + ".fieldNames",
|
|
1146
|
-
expected: "Array<string>",
|
|
1544
|
+
expected: "(Array<string> | ReadonlyArray<string>)",
|
|
1147
1545
|
value: input.fieldNames
|
|
1148
1546
|
}, _errorFactory)) && (("object" === typeof input.contains && null !== input.contains && false === Array.isArray(input.contains) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1149
1547
|
method: "assert",
|
|
1150
1548
|
path: _path + ".contains",
|
|
1151
|
-
expected: "__type.
|
|
1549
|
+
expected: "(__type.o13 | __type.o14)",
|
|
1152
1550
|
value: input.contains
|
|
1153
|
-
}, _errorFactory)) &&
|
|
1551
|
+
}, _errorFactory)) && _au2(input.contains, _path + ".contains", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1154
1552
|
method: "assert",
|
|
1155
1553
|
path: _path + ".contains",
|
|
1156
|
-
expected: "__type.
|
|
1554
|
+
expected: "(__type.o13 | __type.o14)",
|
|
1157
1555
|
value: input.contains
|
|
1158
|
-
}, _errorFactory)); const
|
|
1556
|
+
}, _errorFactory)); const _ao13 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1557
|
+
const value = input[key];
|
|
1558
|
+
if (undefined === value)
|
|
1559
|
+
return true;
|
|
1560
|
+
return (null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1561
|
+
method: "assert",
|
|
1562
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1563
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1564
|
+
value: value
|
|
1565
|
+
}, _errorFactory)) && (undefined !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1566
|
+
method: "assert",
|
|
1567
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1568
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1569
|
+
value: value
|
|
1570
|
+
}, _errorFactory)) && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_at0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1571
|
+
method: "assert",
|
|
1572
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1573
|
+
expected: "readonly [Schema, ...Schema[]]",
|
|
1574
|
+
value: value
|
|
1575
|
+
}, _errorFactory)) || "object" === typeof value && null !== value && _au0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1576
|
+
method: "assert",
|
|
1577
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1578
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1579
|
+
value: value
|
|
1580
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1581
|
+
method: "assert",
|
|
1582
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1583
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1584
|
+
value: value
|
|
1585
|
+
}, _errorFactory));
|
|
1586
|
+
}); const _ao14 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1587
|
+
const value = input[key];
|
|
1588
|
+
if (undefined === value)
|
|
1589
|
+
return true;
|
|
1590
|
+
return (null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1591
|
+
method: "assert",
|
|
1592
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1593
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1594
|
+
value: value
|
|
1595
|
+
}, _errorFactory)) && (undefined !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1596
|
+
method: "assert",
|
|
1597
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1598
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1599
|
+
value: value
|
|
1600
|
+
}, _errorFactory)) && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_at0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1601
|
+
method: "assert",
|
|
1602
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1603
|
+
expected: "readonly [Schema, ...Schema[]]",
|
|
1604
|
+
value: value
|
|
1605
|
+
}, _errorFactory)) || "object" === typeof value && null !== value && _au0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1606
|
+
method: "assert",
|
|
1607
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1608
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1609
|
+
value: value
|
|
1610
|
+
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1611
|
+
method: "assert",
|
|
1612
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1613
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1614
|
+
value: value
|
|
1615
|
+
}, _errorFactory));
|
|
1616
|
+
}); const _ao15 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
|
1159
1617
|
const value = input[key];
|
|
1160
1618
|
if (undefined === value)
|
|
1161
1619
|
return true;
|
|
1162
1620
|
return (null !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1163
1621
|
method: "assert",
|
|
1164
1622
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1165
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1623
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1166
1624
|
value: value
|
|
1167
1625
|
}, _errorFactory)) && (undefined !== value || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1168
1626
|
method: "assert",
|
|
1169
1627
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1170
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1628
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1171
1629
|
value: value
|
|
1172
1630
|
}, _errorFactory)) && ("function" === typeof value || "bigint" === typeof value || (Array.isArray(value) && (_at0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1173
1631
|
method: "assert",
|
|
@@ -1177,53 +1635,70 @@ function prepareValueForSchema(schema, value) {
|
|
|
1177
1635
|
}, _errorFactory)) || "object" === typeof value && null !== value && _au0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1178
1636
|
method: "assert",
|
|
1179
1637
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1180
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1638
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1181
1639
|
value: value
|
|
1182
1640
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1183
1641
|
method: "assert",
|
|
1184
1642
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1185
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1643
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1186
1644
|
value: value
|
|
1187
1645
|
}, _errorFactory));
|
|
1188
1646
|
}); const _au0 = (input, _path, _exceptionable = true) => (() => {
|
|
1189
|
-
if (
|
|
1647
|
+
if ("object" === typeof input.choice && null !== input.choice && false === Array.isArray(input.choice) && _au1(input.choice, _path + ".choice", false && _exceptionable))
|
|
1648
|
+
return _ao1(input, _path, true && _exceptionable);
|
|
1649
|
+
else if (Array.isArray(input.choice) && (_ap2(input.choice, _path + ".choice", false && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1650
|
+
method: "assert",
|
|
1651
|
+
path: _path + ".choice",
|
|
1652
|
+
expected: "Array<ValidateASN1.Schema> | ReadonlyArray<ValidateASN1.Schema>",
|
|
1653
|
+
value: input.choice
|
|
1654
|
+
}, _errorFactory)))
|
|
1190
1655
|
return _ao0(input, _path, true && _exceptionable);
|
|
1191
1656
|
else if (undefined !== input.sequenceOf)
|
|
1192
|
-
return
|
|
1657
|
+
return _ao3(input, _path, true && _exceptionable);
|
|
1193
1658
|
else if (undefined !== input.optional)
|
|
1194
|
-
return
|
|
1659
|
+
return _ao4(input, _path, true && _exceptionable);
|
|
1195
1660
|
else if ("context" === input.type)
|
|
1196
|
-
return
|
|
1661
|
+
return _ao5(input, _path, true && _exceptionable);
|
|
1197
1662
|
else if ("oid" === input.type)
|
|
1198
|
-
return
|
|
1663
|
+
return _ao6(input, _path, true && _exceptionable);
|
|
1199
1664
|
else if ("general" === input.kind)
|
|
1200
|
-
return
|
|
1665
|
+
return _ao11(input, _path, true && _exceptionable);
|
|
1201
1666
|
else if ("utc" === input.kind)
|
|
1202
|
-
return
|
|
1667
|
+
return _ao10(input, _path, true && _exceptionable);
|
|
1203
1668
|
else if ("utf8" === input.kind)
|
|
1204
|
-
return
|
|
1669
|
+
return _ao9(input, _path, true && _exceptionable);
|
|
1205
1670
|
else if ("ia5" === input.kind)
|
|
1206
|
-
return
|
|
1671
|
+
return _ao8(input, _path, true && _exceptionable);
|
|
1207
1672
|
else if ("printable" === input.kind)
|
|
1208
|
-
return
|
|
1673
|
+
return _ao7(input, _path, true && _exceptionable);
|
|
1209
1674
|
else if ("struct" === input.type)
|
|
1210
|
-
return
|
|
1675
|
+
return _ao12(input, _path, true && _exceptionable);
|
|
1211
1676
|
else
|
|
1212
1677
|
return __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1213
1678
|
method: "assert",
|
|
1214
1679
|
path: _path,
|
|
1215
|
-
expected: "(__type | __type.
|
|
1680
|
+
expected: "(__type.o1 | __type | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o11 | __type.o10 | __type.o9 | __type.o8 | __type.o7 | __type.o12)",
|
|
1216
1681
|
value: input
|
|
1217
1682
|
}, _errorFactory);
|
|
1218
|
-
})(); const
|
|
1683
|
+
})(); const _au1 = (input, _path, _exceptionable = true) => _ao15(input, _path, false && _exceptionable) || _ao2(input, _path, false && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1684
|
+
method: "assert",
|
|
1685
|
+
path: _path,
|
|
1686
|
+
expected: "(__type.o15 | __type.o2)",
|
|
1687
|
+
value: input
|
|
1688
|
+
}, _errorFactory); const _au2 = (input, _path, _exceptionable = true) => _ao14(input, _path, false && _exceptionable) || _ao13(input, _path, false && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1689
|
+
method: "assert",
|
|
1690
|
+
path: _path,
|
|
1691
|
+
expected: "(__type.o14 | __type.o13)",
|
|
1692
|
+
value: input
|
|
1693
|
+
}, _errorFactory); const _at0 = (input, _path, _exceptionable = true) => (null !== input[0] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1219
1694
|
method: "assert",
|
|
1220
1695
|
path: _path + "[0]",
|
|
1221
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1696
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1222
1697
|
value: input[0]
|
|
1223
1698
|
}, _errorFactory)) && (undefined !== input[0] || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1224
1699
|
method: "assert",
|
|
1225
1700
|
path: _path + "[0]",
|
|
1226
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1701
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1227
1702
|
value: input[0]
|
|
1228
1703
|
}, _errorFactory)) && ("function" === typeof input[0] || "bigint" === typeof input[0] || (Array.isArray(input[0]) && (_at0(input[0], _path + "[0]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1229
1704
|
method: "assert",
|
|
@@ -1233,47 +1708,47 @@ function prepareValueForSchema(schema, value) {
|
|
|
1233
1708
|
}, _errorFactory)) || "object" === typeof input[0] && null !== input[0] && _au0(input[0], _path + "[0]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1234
1709
|
method: "assert",
|
|
1235
1710
|
path: _path + "[0]",
|
|
1236
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1711
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1237
1712
|
value: input[0]
|
|
1238
1713
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1239
1714
|
method: "assert",
|
|
1240
1715
|
path: _path + "[0]",
|
|
1241
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1716
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1242
1717
|
value: input[0]
|
|
1243
1718
|
}, _errorFactory)) && ((Array.isArray(input.slice(1)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1244
1719
|
method: "assert",
|
|
1245
1720
|
path: _path,
|
|
1246
|
-
expected: "...(__type | __type.o1 | __type.o10 | __type.
|
|
1721
|
+
expected: "...(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1247
1722
|
value: input.slice(1)
|
|
1248
|
-
}, _errorFactory)) && input.slice(1).every((elem,
|
|
1723
|
+
}, _errorFactory)) && input.slice(1).every((elem, _index22) => (null !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1249
1724
|
method: "assert",
|
|
1250
|
-
path: _path + "[" + (1 +
|
|
1251
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1725
|
+
path: _path + "[" + (1 + _index22) + "]",
|
|
1726
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1252
1727
|
value: elem
|
|
1253
1728
|
}, _errorFactory)) && (undefined !== elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1254
1729
|
method: "assert",
|
|
1255
|
-
path: _path + "[" + (1 +
|
|
1256
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1730
|
+
path: _path + "[" + (1 + _index22) + "]",
|
|
1731
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1257
1732
|
value: elem
|
|
1258
|
-
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" + (1 +
|
|
1733
|
+
}, _errorFactory)) && ("function" === typeof elem || "bigint" === typeof elem || (Array.isArray(elem) && (_at0(elem, _path + "[" + (1 + _index22) + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1259
1734
|
method: "assert",
|
|
1260
|
-
path: _path + "[" + (1 +
|
|
1735
|
+
path: _path + "[" + (1 + _index22) + "]",
|
|
1261
1736
|
expected: "readonly [Schema, ...Schema[]]",
|
|
1262
1737
|
value: elem
|
|
1263
|
-
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" + (1 +
|
|
1738
|
+
}, _errorFactory)) || "object" === typeof elem && null !== elem && _au0(elem, _path + "[" + (1 + _index22) + "]", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1264
1739
|
method: "assert",
|
|
1265
|
-
path: _path + "[" + (1 +
|
|
1266
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1740
|
+
path: _path + "[" + (1 + _index22) + "]",
|
|
1741
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1267
1742
|
value: elem
|
|
1268
1743
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1269
1744
|
method: "assert",
|
|
1270
|
-
path: _path + "[" + (1 +
|
|
1271
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1745
|
+
path: _path + "[" + (1 + _index22) + "]",
|
|
1746
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1272
1747
|
value: elem
|
|
1273
1748
|
}, _errorFactory))) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1274
1749
|
method: "assert",
|
|
1275
1750
|
path: _path,
|
|
1276
|
-
expected: "...(__type | __type.o1 | __type.o10 | __type.
|
|
1751
|
+
expected: "...(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1277
1752
|
value: input.slice(1)
|
|
1278
1753
|
}, _errorFactory)); const __is = input => null !== input && undefined !== input && ("function" === typeof input || "bigint" === typeof input || (Array.isArray(input) && (_it0(input) || false) || "object" === typeof input && null !== input && _iu0(input))); let _errorFactory; return (input, errorFactory) => {
|
|
1279
1754
|
if (false === __is(input)) {
|
|
@@ -1281,12 +1756,12 @@ function prepareValueForSchema(schema, value) {
|
|
|
1281
1756
|
((input, _path, _exceptionable = true) => (null !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
1282
1757
|
method: "assert",
|
|
1283
1758
|
path: _path + "",
|
|
1284
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1759
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1285
1760
|
value: input
|
|
1286
1761
|
}, _errorFactory)) && (undefined !== input || __typia_transform__assertGuard._assertGuard(true, {
|
|
1287
1762
|
method: "assert",
|
|
1288
1763
|
path: _path + "",
|
|
1289
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1764
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1290
1765
|
value: input
|
|
1291
1766
|
}, _errorFactory)) && ("function" === typeof input || "bigint" === typeof input || (Array.isArray(input) && (_at0(input, _path + "", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
1292
1767
|
method: "assert",
|
|
@@ -1296,12 +1771,12 @@ function prepareValueForSchema(schema, value) {
|
|
|
1296
1771
|
}, _errorFactory)) || "object" === typeof input && null !== input && _au0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
|
|
1297
1772
|
method: "assert",
|
|
1298
1773
|
path: _path + "",
|
|
1299
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1774
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1300
1775
|
value: input
|
|
1301
1776
|
}, _errorFactory)) || __typia_transform__assertGuard._assertGuard(true, {
|
|
1302
1777
|
method: "assert",
|
|
1303
1778
|
path: _path + "",
|
|
1304
|
-
expected: "(__type | __type.o1 | __type.o10 | __type.
|
|
1779
|
+
expected: "(__type | __type.o1 | __type.o10 | __type.o11 | __type.o12 | __type.o3 | __type.o4 | __type.o5 | __type.o6 | __type.o7 | __type.o8 | __type.o9 | bigint | readonly [Schema, ...Schema[]])",
|
|
1305
1780
|
value: input
|
|
1306
1781
|
}, _errorFactory)))(input, "$input", true);
|
|
1307
1782
|
}
|
|
@@ -1326,7 +1801,7 @@ function prepareValueForSchema(schema, value) {
|
|
|
1326
1801
|
if ('choice' in resolved) {
|
|
1327
1802
|
const choices = Array.isArray(resolved.choice)
|
|
1328
1803
|
? resolved.choice
|
|
1329
|
-
:
|
|
1804
|
+
: Object.values(resolved.choice);
|
|
1330
1805
|
for (const choiceSchema of choices) {
|
|
1331
1806
|
const preparedChoice = prepareValueForSchema(choiceSchema, value);
|
|
1332
1807
|
if (preparedChoice !== value) {
|