@nestia/migrate 0.8.2-dev.20240218-3 → 0.9.0-dev.20240222

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.
@@ -14,7 +14,11 @@ const MigrateE2eProgrammer_1 = require("./programmers/MigrateE2eProgrammer");
14
14
  const MigrateNestProgrammer_1 = require("./programmers/MigrateNestProgrammer");
15
15
  class MigrateApplication {
16
16
  constructor(swagger) {
17
- this.swagger = (input => {
17
+ this.swagger = swagger;
18
+ }
19
+ static create(swagger) {
20
+ const result = (input => {
21
+ const errors = [];
18
22
  const __is = input => {
19
23
  const $io0 = input => "string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) && ("object" === typeof input.info && null !== input.info && $io1(input.info)) && (Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && $io5(input.components)) && ("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io30(input.paths)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io43(elem)));
20
24
  const $io1 = input => "string" === typeof input.title && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && (/\/|:/.test(input.termsOfService) && /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i.test(input.termsOfService))) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && $io2(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io3(input.license)) && "string" === typeof input.version;
@@ -137,1325 +141,1338 @@ class MigrateApplication {
137
141
  })();
138
142
  return "object" === typeof input && null !== input && $io0(input);
139
143
  };
140
- if (false === __is(input))
144
+ if (false === __is(input)) {
145
+ const $report = typia_1.default.validate.report(errors);
141
146
  ((input, _path, _exceptionable = true) => {
142
- const $guard = typia_1.default.assert.guard;
143
- const $join = typia_1.default.assert.join;
144
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) || $guard(_exceptionable, {
145
- path: _path + ".openapi",
146
- expected: "`3.0.${number}`",
147
- value: input.openapi
148
- })) && (("object" === typeof input.info && null !== input.info || $guard(_exceptionable, {
149
- path: _path + ".info",
150
- expected: "ISwaggerInfo",
151
- value: input.info
152
- })) && $ao1(input.info, _path + ".info", true && _exceptionable) || $guard(_exceptionable, {
153
- path: _path + ".info",
154
- expected: "ISwaggerInfo",
155
- value: input.info
156
- })) && ((Array.isArray(input.servers) || $guard(_exceptionable, {
157
- path: _path + ".servers",
158
- expected: "Array<ISwagger.IServer>",
159
- value: input.servers
160
- })) && input.servers.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
161
- path: _path + ".servers[" + _index1 + "]",
162
- expected: "ISwagger.IServer",
163
- value: elem
164
- })) && $ao4(elem, _path + ".servers[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
165
- path: _path + ".servers[" + _index1 + "]",
166
- expected: "ISwagger.IServer",
167
- value: elem
168
- })) || $guard(_exceptionable, {
169
- path: _path + ".servers",
170
- expected: "Array<ISwagger.IServer>",
171
- value: input.servers
172
- })) && (("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) || $guard(_exceptionable, {
173
- path: _path + ".components",
174
- expected: "ISwaggerComponents",
175
- value: input.components
176
- })) && $ao5(input.components, _path + ".components", true && _exceptionable) || $guard(_exceptionable, {
177
- path: _path + ".components",
178
- expected: "ISwaggerComponents",
179
- value: input.components
180
- })) && (("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) || $guard(_exceptionable, {
181
- path: _path + ".paths",
182
- expected: "Record<string, ISwagger.IPath>",
183
- value: input.paths
184
- })) && $ao30(input.paths, _path + ".paths", true && _exceptionable) || $guard(_exceptionable, {
185
- path: _path + ".paths",
186
- expected: "Record<string, ISwagger.IPath>",
187
- value: input.paths
188
- })) && (undefined === input.security || (Array.isArray(input.security) || $guard(_exceptionable, {
189
- path: _path + ".security",
190
- expected: "(Array<Record<string, Array<string>>> | undefined)",
191
- value: input.security
192
- })) && input.security.every((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
193
- path: _path + ".security[" + _index2 + "]",
194
- expected: "Record<string, Array<string>>",
195
- value: elem
196
- })) && $ao43(elem, _path + ".security[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
197
- path: _path + ".security[" + _index2 + "]",
198
- expected: "Record<string, Array<string>>",
199
- value: elem
200
- })) || $guard(_exceptionable, {
201
- path: _path + ".security",
202
- expected: "(Array<Record<string, Array<string>>> | undefined)",
203
- value: input.security
204
- }));
205
- const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.title || $guard(_exceptionable, {
206
- path: _path + ".title",
207
- expected: "string",
208
- value: input.title
209
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
210
- path: _path + ".description",
211
- expected: "(string | undefined)",
212
- value: input.description
213
- })) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && (/\/|:/.test(input.termsOfService) && /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i.test(input.termsOfService) || $guard(_exceptionable, {
214
- path: _path + ".termsOfService",
215
- expected: "string & Format<\"uri\">",
216
- value: input.termsOfService
217
- })) || $guard(_exceptionable, {
218
- path: _path + ".termsOfService",
219
- expected: "((string & Format<\"uri\">) | undefined)",
220
- value: input.termsOfService
221
- })) && (undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || $guard(_exceptionable, {
222
- path: _path + ".contact",
223
- expected: "(ISwaggerInfo.IContact | undefined)",
224
- value: input.contact
225
- })) && $ao2(input.contact, _path + ".contact", true && _exceptionable) || $guard(_exceptionable, {
226
- path: _path + ".contact",
227
- expected: "(ISwaggerInfo.IContact | undefined)",
228
- value: input.contact
229
- })) && (undefined === input.license || ("object" === typeof input.license && null !== input.license || $guard(_exceptionable, {
230
- path: _path + ".license",
231
- expected: "(ISwaggerInfo.ILicense | undefined)",
232
- value: input.license
233
- })) && $ao3(input.license, _path + ".license", true && _exceptionable) || $guard(_exceptionable, {
234
- path: _path + ".license",
235
- expected: "(ISwaggerInfo.ILicense | undefined)",
236
- value: input.license
237
- })) && ("string" === typeof input.version || $guard(_exceptionable, {
238
- path: _path + ".version",
239
- expected: "string",
240
- value: input.version
241
- }));
242
- const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
243
- path: _path + ".name",
244
- expected: "(string | undefined)",
245
- value: input.name
246
- })) && (undefined === input.url || "string" === typeof input.url && (/\/|:/.test(input.url) && /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i.test(input.url) || $guard(_exceptionable, {
247
- path: _path + ".url",
248
- expected: "string & Format<\"uri\">",
249
- value: input.url
250
- })) || $guard(_exceptionable, {
251
- path: _path + ".url",
252
- expected: "((string & Format<\"uri\">) | undefined)",
253
- value: input.url
254
- })) && (undefined === input.email || "string" === typeof input.email && (/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email) || $guard(_exceptionable, {
255
- path: _path + ".email",
256
- expected: "string & Format<\"email\">",
257
- value: input.email
258
- })) || $guard(_exceptionable, {
259
- path: _path + ".email",
260
- expected: "((string & Format<\"email\">) | undefined)",
261
- value: input.email
262
- }));
263
- const $ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
264
- path: _path + ".name",
265
- expected: "string",
266
- value: input.name
267
- })) && (undefined === input.url || "string" === typeof input.url && (/\/|:/.test(input.url) && /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i.test(input.url) || $guard(_exceptionable, {
268
- path: _path + ".url",
269
- expected: "string & Format<\"uri\">",
270
- value: input.url
271
- })) || $guard(_exceptionable, {
272
- path: _path + ".url",
273
- expected: "((string & Format<\"uri\">) | undefined)",
274
- value: input.url
275
- }));
276
- const $ao4 = (input, _path, _exceptionable = true) => ("string" === typeof input.url || $guard(_exceptionable, {
277
- path: _path + ".url",
278
- expected: "string",
279
- value: input.url
280
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
281
- path: _path + ".description",
282
- expected: "(string | undefined)",
283
- value: input.description
284
- }));
285
- const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.schemas || ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || $guard(_exceptionable, {
286
- path: _path + ".schemas",
287
- expected: "(Record<string, ISwaggerSchema> | undefined)",
288
- value: input.schemas
289
- })) && $ao6(input.schemas, _path + ".schemas", true && _exceptionable) || $guard(_exceptionable, {
290
- path: _path + ".schemas",
291
- expected: "(Record<string, ISwaggerSchema> | undefined)",
292
- value: input.schemas
293
- })) && (undefined === input.securitySchemes || ("object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) || $guard(_exceptionable, {
294
- path: _path + ".securitySchemes",
295
- expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
296
- value: input.securitySchemes
297
- })) && $ao19(input.securitySchemes, _path + ".securitySchemes", true && _exceptionable) || $guard(_exceptionable, {
298
- path: _path + ".securitySchemes",
299
- expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
300
- value: input.securitySchemes
301
- }));
302
- const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
303
- const value = input[key];
304
- if (undefined === value)
305
- return true;
306
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
307
- path: _path + $join(key),
147
+ const $join = typia_1.default.validate.join;
148
+ const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) || $report(_exceptionable, {
149
+ path: _path + ".openapi",
150
+ expected: "`3.0.${number}`",
151
+ value: input.openapi
152
+ }), ("object" === typeof input.info && null !== input.info || $report(_exceptionable, {
153
+ path: _path + ".info",
154
+ expected: "ISwaggerInfo",
155
+ value: input.info
156
+ })) && $vo1(input.info, _path + ".info", true && _exceptionable) || $report(_exceptionable, {
157
+ path: _path + ".info",
158
+ expected: "ISwaggerInfo",
159
+ value: input.info
160
+ }), (Array.isArray(input.servers) || $report(_exceptionable, {
161
+ path: _path + ".servers",
162
+ expected: "Array<ISwagger.IServer>",
163
+ value: input.servers
164
+ })) && input.servers.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
165
+ path: _path + ".servers[" + _index1 + "]",
166
+ expected: "ISwagger.IServer",
167
+ value: elem
168
+ })) && $vo4(elem, _path + ".servers[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
169
+ path: _path + ".servers[" + _index1 + "]",
170
+ expected: "ISwagger.IServer",
171
+ value: elem
172
+ })).every(flag => flag) || $report(_exceptionable, {
173
+ path: _path + ".servers",
174
+ expected: "Array<ISwagger.IServer>",
175
+ value: input.servers
176
+ }), ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) || $report(_exceptionable, {
177
+ path: _path + ".components",
178
+ expected: "ISwaggerComponents",
179
+ value: input.components
180
+ })) && $vo5(input.components, _path + ".components", true && _exceptionable) || $report(_exceptionable, {
181
+ path: _path + ".components",
182
+ expected: "ISwaggerComponents",
183
+ value: input.components
184
+ }), ("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) || $report(_exceptionable, {
185
+ path: _path + ".paths",
186
+ expected: "Record<string, ISwagger.IPath>",
187
+ value: input.paths
188
+ })) && $vo30(input.paths, _path + ".paths", true && _exceptionable) || $report(_exceptionable, {
189
+ path: _path + ".paths",
190
+ expected: "Record<string, ISwagger.IPath>",
191
+ value: input.paths
192
+ }), undefined === input.security || (Array.isArray(input.security) || $report(_exceptionable, {
193
+ path: _path + ".security",
194
+ expected: "(Array<Record<string, Array<string>>> | undefined)",
195
+ value: input.security
196
+ })) && input.security.map((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
197
+ path: _path + ".security[" + _index2 + "]",
198
+ expected: "Record<string, Array<string>>",
199
+ value: elem
200
+ })) && $vo43(elem, _path + ".security[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
201
+ path: _path + ".security[" + _index2 + "]",
202
+ expected: "Record<string, Array<string>>",
203
+ value: elem
204
+ })).every(flag => flag) || $report(_exceptionable, {
205
+ path: _path + ".security",
206
+ expected: "(Array<Record<string, Array<string>>> | undefined)",
207
+ value: input.security
208
+ })].every(flag => flag);
209
+ const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.title || $report(_exceptionable, {
210
+ path: _path + ".title",
211
+ expected: "string",
212
+ value: input.title
213
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
214
+ path: _path + ".description",
215
+ expected: "(string | undefined)",
216
+ value: input.description
217
+ }), undefined === input.termsOfService || "string" === typeof input.termsOfService && (/\/|:/.test(input.termsOfService) && /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i.test(input.termsOfService) || $report(_exceptionable, {
218
+ path: _path + ".termsOfService",
219
+ expected: "string & Format<\"uri\">",
220
+ value: input.termsOfService
221
+ })) || $report(_exceptionable, {
222
+ path: _path + ".termsOfService",
223
+ expected: "((string & Format<\"uri\">) | undefined)",
224
+ value: input.termsOfService
225
+ }), undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || $report(_exceptionable, {
226
+ path: _path + ".contact",
227
+ expected: "(ISwaggerInfo.IContact | undefined)",
228
+ value: input.contact
229
+ })) && $vo2(input.contact, _path + ".contact", true && _exceptionable) || $report(_exceptionable, {
230
+ path: _path + ".contact",
231
+ expected: "(ISwaggerInfo.IContact | undefined)",
232
+ value: input.contact
233
+ }), undefined === input.license || ("object" === typeof input.license && null !== input.license || $report(_exceptionable, {
234
+ path: _path + ".license",
235
+ expected: "(ISwaggerInfo.ILicense | undefined)",
236
+ value: input.license
237
+ })) && $vo3(input.license, _path + ".license", true && _exceptionable) || $report(_exceptionable, {
238
+ path: _path + ".license",
239
+ expected: "(ISwaggerInfo.ILicense | undefined)",
240
+ value: input.license
241
+ }), "string" === typeof input.version || $report(_exceptionable, {
242
+ path: _path + ".version",
243
+ expected: "string",
244
+ value: input.version
245
+ })].every(flag => flag);
246
+ const $vo2 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
247
+ path: _path + ".name",
248
+ expected: "(string | undefined)",
249
+ value: input.name
250
+ }), undefined === input.url || "string" === typeof input.url && (/\/|:/.test(input.url) && /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i.test(input.url) || $report(_exceptionable, {
251
+ path: _path + ".url",
252
+ expected: "string & Format<\"uri\">",
253
+ value: input.url
254
+ })) || $report(_exceptionable, {
255
+ path: _path + ".url",
256
+ expected: "((string & Format<\"uri\">) | undefined)",
257
+ value: input.url
258
+ }), undefined === input.email || "string" === typeof input.email && (/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email) || $report(_exceptionable, {
259
+ path: _path + ".email",
260
+ expected: "string & Format<\"email\">",
261
+ value: input.email
262
+ })) || $report(_exceptionable, {
263
+ path: _path + ".email",
264
+ expected: "((string & Format<\"email\">) | undefined)",
265
+ value: input.email
266
+ })].every(flag => flag);
267
+ const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
268
+ path: _path + ".name",
269
+ expected: "string",
270
+ value: input.name
271
+ }), undefined === input.url || "string" === typeof input.url && (/\/|:/.test(input.url) && /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i.test(input.url) || $report(_exceptionable, {
272
+ path: _path + ".url",
273
+ expected: "string & Format<\"uri\">",
274
+ value: input.url
275
+ })) || $report(_exceptionable, {
276
+ path: _path + ".url",
277
+ expected: "((string & Format<\"uri\">) | undefined)",
278
+ value: input.url
279
+ })].every(flag => flag);
280
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || $report(_exceptionable, {
281
+ path: _path + ".url",
282
+ expected: "string",
283
+ value: input.url
284
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
285
+ path: _path + ".description",
286
+ expected: "(string | undefined)",
287
+ value: input.description
288
+ })].every(flag => flag);
289
+ const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.schemas || ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || $report(_exceptionable, {
290
+ path: _path + ".schemas",
291
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
292
+ value: input.schemas
293
+ })) && $vo6(input.schemas, _path + ".schemas", true && _exceptionable) || $report(_exceptionable, {
294
+ path: _path + ".schemas",
295
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
296
+ value: input.schemas
297
+ }), undefined === input.securitySchemes || ("object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) || $report(_exceptionable, {
298
+ path: _path + ".securitySchemes",
299
+ expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
300
+ value: input.securitySchemes
301
+ })) && $vo19(input.securitySchemes, _path + ".securitySchemes", true && _exceptionable) || $report(_exceptionable, {
302
+ path: _path + ".securitySchemes",
303
+ expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
304
+ value: input.securitySchemes
305
+ })].every(flag => flag);
306
+ const $vo6 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
307
+ const value = input[key];
308
+ if (undefined === value)
309
+ return true;
310
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
311
+ path: _path + $join(key),
312
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
313
+ value: value
314
+ })) && $vu0(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
315
+ path: _path + $join(key),
316
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
317
+ value: value
318
+ });
319
+ }).every(flag => flag)].every(flag => flag);
320
+ const $vo7 = (input, _path, _exceptionable = true) => [(null !== input.type || $report(_exceptionable, {
321
+ path: _path + ".type",
322
+ expected: "undefined",
323
+ value: input.type
324
+ })) && (undefined === input.type || $report(_exceptionable, {
325
+ path: _path + ".type",
326
+ expected: "undefined",
327
+ value: input.type
328
+ })), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
329
+ path: _path + ".title",
330
+ expected: "(string | undefined)",
331
+ value: input.title
332
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
333
+ path: _path + ".description",
334
+ expected: "(string | undefined)",
335
+ value: input.description
336
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
337
+ path: _path + ".deprecated",
338
+ expected: "(boolean | undefined)",
339
+ value: input.deprecated
340
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
341
+ path: _path + "[\"x-typia-optional\"]",
342
+ expected: "(boolean | undefined)",
343
+ value: input["x-typia-optional"]
344
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
345
+ path: _path + "[\"x-typia-rest\"]",
346
+ expected: "(boolean | undefined)",
347
+ value: input["x-typia-rest"]
348
+ })].every(flag => flag);
349
+ const $vo8 = (input, _path, _exceptionable = true) => ["null" === input.type || $report(_exceptionable, {
350
+ path: _path + ".type",
351
+ expected: "\"null\"",
352
+ value: input.type
353
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
354
+ path: _path + ".title",
355
+ expected: "(string | undefined)",
356
+ value: input.title
357
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
358
+ path: _path + ".description",
359
+ expected: "(string | undefined)",
360
+ value: input.description
361
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
362
+ path: _path + ".deprecated",
363
+ expected: "(boolean | undefined)",
364
+ value: input.deprecated
365
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
366
+ path: _path + "[\"x-typia-optional\"]",
367
+ expected: "(boolean | undefined)",
368
+ value: input["x-typia-optional"]
369
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
370
+ path: _path + "[\"x-typia-rest\"]",
371
+ expected: "(boolean | undefined)",
372
+ value: input["x-typia-rest"]
373
+ })].every(flag => flag);
374
+ const $vo9 = (input, _path, _exceptionable = true) => [(Array.isArray(input.anyOf) || $report(_exceptionable, {
375
+ path: _path + ".anyOf",
376
+ expected: "Array<ISwaggerSchema>",
377
+ value: input.anyOf
378
+ })) && input.anyOf.map((elem, _index3) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
379
+ path: _path + ".anyOf[" + _index3 + "]",
308
380
  expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
309
- value: value
310
- })) && $au0(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
311
- path: _path + $join(key),
381
+ value: elem
382
+ })) && $vu0(elem, _path + ".anyOf[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
383
+ path: _path + ".anyOf[" + _index3 + "]",
312
384
  expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
313
- value: value
314
- });
315
- });
316
- const $ao7 = (input, _path, _exceptionable = true) => (null !== input.type || $guard(_exceptionable, {
317
- path: _path + ".type",
318
- expected: "undefined",
319
- value: input.type
320
- })) && (undefined === input.type || $guard(_exceptionable, {
321
- path: _path + ".type",
322
- expected: "undefined",
323
- value: input.type
324
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
325
- path: _path + ".title",
326
- expected: "(string | undefined)",
327
- value: input.title
328
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
329
- path: _path + ".description",
330
- expected: "(string | undefined)",
331
- value: input.description
332
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
333
- path: _path + ".deprecated",
334
- expected: "(boolean | undefined)",
335
- value: input.deprecated
336
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
337
- path: _path + "[\"x-typia-optional\"]",
338
- expected: "(boolean | undefined)",
339
- value: input["x-typia-optional"]
340
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
341
- path: _path + "[\"x-typia-rest\"]",
342
- expected: "(boolean | undefined)",
343
- value: input["x-typia-rest"]
344
- }));
345
- const $ao8 = (input, _path, _exceptionable = true) => ("null" === input.type || $guard(_exceptionable, {
346
- path: _path + ".type",
347
- expected: "\"null\"",
348
- value: input.type
349
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
350
- path: _path + ".title",
351
- expected: "(string | undefined)",
352
- value: input.title
353
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
354
- path: _path + ".description",
355
- expected: "(string | undefined)",
356
- value: input.description
357
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
358
- path: _path + ".deprecated",
359
- expected: "(boolean | undefined)",
360
- value: input.deprecated
361
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
362
- path: _path + "[\"x-typia-optional\"]",
363
- expected: "(boolean | undefined)",
364
- value: input["x-typia-optional"]
365
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
366
- path: _path + "[\"x-typia-rest\"]",
367
- expected: "(boolean | undefined)",
368
- value: input["x-typia-rest"]
369
- }));
370
- const $ao9 = (input, _path, _exceptionable = true) => ((Array.isArray(input.anyOf) || $guard(_exceptionable, {
371
- path: _path + ".anyOf",
372
- expected: "Array<ISwaggerSchema>",
373
- value: input.anyOf
374
- })) && input.anyOf.every((elem, _index3) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
375
- path: _path + ".anyOf[" + _index3 + "]",
376
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
377
- value: elem
378
- })) && $au0(elem, _path + ".anyOf[" + _index3 + "]", true && _exceptionable) || $guard(_exceptionable, {
379
- path: _path + ".anyOf[" + _index3 + "]",
380
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
381
- value: elem
382
- })) || $guard(_exceptionable, {
383
- path: _path + ".anyOf",
384
- expected: "Array<ISwaggerSchema>",
385
- value: input.anyOf
386
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
387
- path: _path + ".title",
388
- expected: "(string | undefined)",
389
- value: input.title
390
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
391
- path: _path + ".description",
392
- expected: "(string | undefined)",
393
- value: input.description
394
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
395
- path: _path + ".deprecated",
396
- expected: "(boolean | undefined)",
397
- value: input.deprecated
398
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
399
- path: _path + "[\"x-typia-optional\"]",
400
- expected: "(boolean | undefined)",
401
- value: input["x-typia-optional"]
402
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
403
- path: _path + "[\"x-typia-rest\"]",
404
- expected: "(boolean | undefined)",
405
- value: input["x-typia-rest"]
406
- }));
407
- const $ao10 = (input, _path, _exceptionable = true) => ((Array.isArray(input.oneOf) || $guard(_exceptionable, {
408
- path: _path + ".oneOf",
409
- expected: "Array<ISwaggerSchema>",
410
- value: input.oneOf
411
- })) && input.oneOf.every((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
412
- path: _path + ".oneOf[" + _index4 + "]",
413
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
414
- value: elem
415
- })) && $au0(elem, _path + ".oneOf[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
416
- path: _path + ".oneOf[" + _index4 + "]",
417
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
418
- value: elem
419
- })) || $guard(_exceptionable, {
420
- path: _path + ".oneOf",
421
- expected: "Array<ISwaggerSchema>",
422
- value: input.oneOf
423
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
424
- path: _path + ".title",
425
- expected: "(string | undefined)",
426
- value: input.title
427
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
428
- path: _path + ".description",
429
- expected: "(string | undefined)",
430
- value: input.description
431
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
432
- path: _path + ".deprecated",
433
- expected: "(boolean | undefined)",
434
- value: input.deprecated
435
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
436
- path: _path + "[\"x-typia-optional\"]",
437
- expected: "(boolean | undefined)",
438
- value: input["x-typia-optional"]
439
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
440
- path: _path + "[\"x-typia-rest\"]",
441
- expected: "(boolean | undefined)",
442
- value: input["x-typia-rest"]
443
- }));
444
- const $ao11 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "boolean" === typeof input["default"] || $guard(_exceptionable, {
445
- path: _path + "[\"default\"]",
446
- expected: "(boolean | undefined)",
447
- value: input["default"]
448
- })) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || $guard(_exceptionable, {
449
- path: _path + "[\"enum\"]",
450
- expected: "(Array<boolean> | undefined)",
451
- value: input["enum"]
452
- })) && input["enum"].every((elem, _index5) => "boolean" === typeof elem || $guard(_exceptionable, {
453
- path: _path + "[\"enum\"][" + _index5 + "]",
454
- expected: "boolean",
455
- value: elem
456
- })) || $guard(_exceptionable, {
457
- path: _path + "[\"enum\"]",
458
- expected: "(Array<boolean> | undefined)",
459
- value: input["enum"]
460
- })) && ("boolean" === input.type || $guard(_exceptionable, {
461
- path: _path + ".type",
462
- expected: "\"boolean\"",
463
- value: input.type
464
- })) && (undefined === input.nullable || "boolean" === typeof input.nullable || $guard(_exceptionable, {
465
- path: _path + ".nullable",
466
- expected: "(boolean | undefined)",
467
- value: input.nullable
468
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
469
- path: _path + ".title",
470
- expected: "(string | undefined)",
471
- value: input.title
472
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
473
- path: _path + ".description",
474
- expected: "(string | undefined)",
475
- value: input.description
476
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
477
- path: _path + ".deprecated",
478
- expected: "(boolean | undefined)",
479
- value: input.deprecated
480
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
481
- path: _path + "[\"x-typia-optional\"]",
482
- expected: "(boolean | undefined)",
483
- value: input["x-typia-optional"]
484
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
485
- path: _path + "[\"x-typia-rest\"]",
486
- expected: "(boolean | undefined)",
487
- value: input["x-typia-rest"]
488
- }));
489
- const $ao12 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647 || $guard(_exceptionable, {
490
- path: _path + "[\"default\"]",
491
- expected: "number & Type<\"int32\">",
492
- value: input["default"]
493
- })) || $guard(_exceptionable, {
494
- path: _path + "[\"default\"]",
495
- expected: "((number & Type<\"int32\">) | undefined)",
496
- value: input["default"]
497
- })) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || $guard(_exceptionable, {
498
- path: _path + "[\"enum\"]",
499
- expected: "(Array<number> | undefined)",
500
- value: input["enum"]
501
- })) && input["enum"].every((elem, _index6) => "number" === typeof elem || $guard(_exceptionable, {
502
- path: _path + "[\"enum\"][" + _index6 + "]",
503
- expected: "number",
504
- value: elem
505
- })) || $guard(_exceptionable, {
506
- path: _path + "[\"enum\"]",
507
- expected: "(Array<number> | undefined)",
508
- value: input["enum"]
509
- })) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647 || $guard(_exceptionable, {
510
- path: _path + ".minimum",
511
- expected: "number & Type<\"int32\">",
512
- value: input.minimum
513
- })) || $guard(_exceptionable, {
514
- path: _path + ".minimum",
515
- expected: "((number & Type<\"int32\">) | undefined)",
516
- value: input.minimum
517
- })) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647 || $guard(_exceptionable, {
518
- path: _path + ".maximum",
519
- expected: "number & Type<\"int32\">",
520
- value: input.maximum
521
- })) || $guard(_exceptionable, {
522
- path: _path + ".maximum",
523
- expected: "((number & Type<\"int32\">) | undefined)",
524
- value: input.maximum
525
- })) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || $guard(_exceptionable, {
526
- path: _path + ".exclusiveMinimum",
527
- expected: "(boolean | undefined)",
528
- value: input.exclusiveMinimum
529
- })) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || $guard(_exceptionable, {
530
- path: _path + ".exclusiveMaximum",
531
- expected: "(boolean | undefined)",
532
- value: input.exclusiveMaximum
533
- })) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295 || $guard(_exceptionable, {
534
- path: _path + ".multipleOf",
535
- expected: "number & Type<\"uint32\">",
536
- value: input.multipleOf
537
- })) || $guard(_exceptionable, {
538
- path: _path + ".multipleOf",
539
- expected: "((number & Type<\"uint32\">) | undefined)",
540
- value: input.multipleOf
541
- })) && ("integer" === input.type || $guard(_exceptionable, {
542
- path: _path + ".type",
543
- expected: "\"integer\"",
544
- value: input.type
545
- })) && (undefined === input.nullable || "boolean" === typeof input.nullable || $guard(_exceptionable, {
546
- path: _path + ".nullable",
547
- expected: "(boolean | undefined)",
548
- value: input.nullable
549
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
550
- path: _path + ".title",
551
- expected: "(string | undefined)",
552
- value: input.title
553
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
554
- path: _path + ".description",
555
- expected: "(string | undefined)",
556
- value: input.description
557
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
558
- path: _path + ".deprecated",
559
- expected: "(boolean | undefined)",
560
- value: input.deprecated
561
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
562
- path: _path + "[\"x-typia-optional\"]",
563
- expected: "(boolean | undefined)",
564
- value: input["x-typia-optional"]
565
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
566
- path: _path + "[\"x-typia-rest\"]",
567
- expected: "(boolean | undefined)",
568
- value: input["x-typia-rest"]
569
- }));
570
- const $ao13 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "number" === typeof input["default"] || $guard(_exceptionable, {
571
- path: _path + "[\"default\"]",
572
- expected: "(number | undefined)",
573
- value: input["default"]
574
- })) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || $guard(_exceptionable, {
575
- path: _path + "[\"enum\"]",
576
- expected: "(Array<number> | undefined)",
577
- value: input["enum"]
578
- })) && input["enum"].every((elem, _index7) => "number" === typeof elem || $guard(_exceptionable, {
579
- path: _path + "[\"enum\"][" + _index7 + "]",
580
- expected: "number",
581
- value: elem
582
- })) || $guard(_exceptionable, {
583
- path: _path + "[\"enum\"]",
584
- expected: "(Array<number> | undefined)",
585
- value: input["enum"]
586
- })) && (undefined === input.minimum || "number" === typeof input.minimum || $guard(_exceptionable, {
587
- path: _path + ".minimum",
588
- expected: "(number | undefined)",
589
- value: input.minimum
590
- })) && (undefined === input.maximum || "number" === typeof input.maximum || $guard(_exceptionable, {
591
- path: _path + ".maximum",
592
- expected: "(number | undefined)",
593
- value: input.maximum
594
- })) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || $guard(_exceptionable, {
595
- path: _path + ".exclusiveMinimum",
596
- expected: "(boolean | undefined)",
597
- value: input.exclusiveMinimum
598
- })) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || $guard(_exceptionable, {
599
- path: _path + ".exclusiveMaximum",
600
- expected: "(boolean | undefined)",
601
- value: input.exclusiveMaximum
602
- })) && (undefined === input.multipleOf || "number" === typeof input.multipleOf || $guard(_exceptionable, {
603
- path: _path + ".multipleOf",
604
- expected: "(number | undefined)",
605
- value: input.multipleOf
606
- })) && ("number" === input.type || $guard(_exceptionable, {
607
- path: _path + ".type",
608
- expected: "\"number\"",
609
- value: input.type
610
- })) && (undefined === input.nullable || "boolean" === typeof input.nullable || $guard(_exceptionable, {
611
- path: _path + ".nullable",
612
- expected: "(boolean | undefined)",
613
- value: input.nullable
614
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
615
- path: _path + ".title",
616
- expected: "(string | undefined)",
617
- value: input.title
618
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
619
- path: _path + ".description",
620
- expected: "(string | undefined)",
621
- value: input.description
622
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
623
- path: _path + ".deprecated",
624
- expected: "(boolean | undefined)",
625
- value: input.deprecated
626
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
627
- path: _path + "[\"x-typia-optional\"]",
628
- expected: "(boolean | undefined)",
629
- value: input["x-typia-optional"]
630
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
631
- path: _path + "[\"x-typia-rest\"]",
632
- expected: "(boolean | undefined)",
633
- value: input["x-typia-rest"]
634
- }));
635
- const $ao14 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "string" === typeof input["default"] || $guard(_exceptionable, {
636
- path: _path + "[\"default\"]",
637
- expected: "(string | undefined)",
638
- value: input["default"]
639
- })) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || $guard(_exceptionable, {
640
- path: _path + "[\"enum\"]",
641
- expected: "(Array<string> | undefined)",
642
- value: input["enum"]
643
- })) && input["enum"].every((elem, _index8) => "string" === typeof elem || $guard(_exceptionable, {
644
- path: _path + "[\"enum\"][" + _index8 + "]",
645
- expected: "string",
646
- value: elem
647
- })) || $guard(_exceptionable, {
648
- path: _path + "[\"enum\"]",
649
- expected: "(Array<string> | undefined)",
650
- value: input["enum"]
651
- })) && (undefined === input.format || "string" === typeof input.format || $guard(_exceptionable, {
652
- path: _path + ".format",
653
- expected: "(string | undefined)",
654
- value: input.format
655
- })) && (undefined === input.pattern || "string" === typeof input.pattern || $guard(_exceptionable, {
656
- path: _path + ".pattern",
657
- expected: "(string | undefined)",
658
- value: input.pattern
659
- })) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295 || $guard(_exceptionable, {
660
- path: _path + ".minLength",
661
- expected: "number & Type<\"uint32\">",
662
- value: input.minLength
663
- })) || $guard(_exceptionable, {
664
- path: _path + ".minLength",
665
- expected: "((number & Type<\"uint32\">) | undefined)",
666
- value: input.minLength
667
- })) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295 || $guard(_exceptionable, {
668
- path: _path + ".maxLength",
669
- expected: "number & Type<\"uint32\">",
670
- value: input.maxLength
671
- })) || $guard(_exceptionable, {
672
- path: _path + ".maxLength",
673
- expected: "((number & Type<\"uint32\">) | undefined)",
674
- value: input.maxLength
675
- })) && ("string" === input.type || $guard(_exceptionable, {
676
- path: _path + ".type",
677
- expected: "\"string\"",
678
- value: input.type
679
- })) && (undefined === input.nullable || "boolean" === typeof input.nullable || $guard(_exceptionable, {
680
- path: _path + ".nullable",
681
- expected: "(boolean | undefined)",
682
- value: input.nullable
683
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
684
- path: _path + ".title",
685
- expected: "(string | undefined)",
686
- value: input.title
687
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
688
- path: _path + ".description",
689
- expected: "(string | undefined)",
690
- value: input.description
691
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
692
- path: _path + ".deprecated",
693
- expected: "(boolean | undefined)",
694
- value: input.deprecated
695
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
696
- path: _path + "[\"x-typia-optional\"]",
697
- expected: "(boolean | undefined)",
698
- value: input["x-typia-optional"]
699
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
700
- path: _path + "[\"x-typia-rest\"]",
701
- expected: "(boolean | undefined)",
702
- value: input["x-typia-rest"]
703
- }));
704
- const $ao15 = (input, _path, _exceptionable = true) => (("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $guard(_exceptionable, {
705
- path: _path + ".items",
706
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
707
- value: input.items
708
- })) && $au0(input.items, _path + ".items", true && _exceptionable) || $guard(_exceptionable, {
709
- path: _path + ".items",
710
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
711
- value: input.items
712
- })) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 4294967295 || $guard(_exceptionable, {
713
- path: _path + ".minItems",
714
- expected: "number & Type<\"uint32\">",
715
- value: input.minItems
716
- })) || $guard(_exceptionable, {
717
- path: _path + ".minItems",
718
- expected: "((number & Type<\"uint32\">) | undefined)",
719
- value: input.minItems
720
- })) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295 || $guard(_exceptionable, {
721
- path: _path + ".maxItems",
722
- expected: "number & Type<\"uint32\">",
723
- value: input.maxItems
724
- })) || $guard(_exceptionable, {
725
- path: _path + ".maxItems",
726
- expected: "((number & Type<\"uint32\">) | undefined)",
727
- value: input.maxItems
728
- })) && (undefined === input["x-typia-tuple"] || ("object" === typeof input["x-typia-tuple"] && null !== input["x-typia-tuple"] || $guard(_exceptionable, {
729
- path: _path + "[\"x-typia-tuple\"]",
730
- expected: "(ISwaggerSchema.ITuple | undefined)",
731
- value: input["x-typia-tuple"]
732
- })) && $ao18(input["x-typia-tuple"], _path + "[\"x-typia-tuple\"]", true && _exceptionable) || $guard(_exceptionable, {
733
- path: _path + "[\"x-typia-tuple\"]",
734
- expected: "(ISwaggerSchema.ITuple | undefined)",
735
- value: input["x-typia-tuple"]
736
- })) && ("array" === input.type || $guard(_exceptionable, {
737
- path: _path + ".type",
738
- expected: "\"array\"",
739
- value: input.type
740
- })) && (undefined === input.nullable || "boolean" === typeof input.nullable || $guard(_exceptionable, {
741
- path: _path + ".nullable",
742
- expected: "(boolean | undefined)",
743
- value: input.nullable
744
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
745
- path: _path + ".title",
746
- expected: "(string | undefined)",
747
- value: input.title
748
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
749
- path: _path + ".description",
750
- expected: "(string | undefined)",
751
- value: input.description
752
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
753
- path: _path + ".deprecated",
754
- expected: "(boolean | undefined)",
755
- value: input.deprecated
756
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
757
- path: _path + "[\"x-typia-optional\"]",
758
- expected: "(boolean | undefined)",
759
- value: input["x-typia-optional"]
760
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
761
- path: _path + "[\"x-typia-rest\"]",
762
- expected: "(boolean | undefined)",
763
- value: input["x-typia-rest"]
764
- }));
765
- const $ao16 = (input, _path, _exceptionable = true) => (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
766
- path: _path + ".properties",
767
- expected: "(Record<string, ISwaggerSchema> | undefined)",
768
- value: input.properties
769
- })) && $ao6(input.properties, _path + ".properties", true && _exceptionable) || $guard(_exceptionable, {
770
- path: _path + ".properties",
771
- expected: "(Record<string, ISwaggerSchema> | undefined)",
772
- value: input.properties
773
- })) && (undefined === input.required || (Array.isArray(input.required) || $guard(_exceptionable, {
774
- path: _path + ".required",
775
- expected: "(Array<string> | undefined)",
776
- value: input.required
777
- })) && input.required.every((elem, _index9) => "string" === typeof elem || $guard(_exceptionable, {
778
- path: _path + ".required[" + _index9 + "]",
779
- expected: "string",
780
- value: elem
781
- })) || $guard(_exceptionable, {
782
- path: _path + ".required",
783
- expected: "(Array<string> | undefined)",
784
- value: input.required
785
- })) && ((null !== input.additionalProperties || $guard(_exceptionable, {
786
- path: _path + ".additionalProperties",
787
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | boolean | undefined)",
788
- value: input.additionalProperties
789
- })) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || $guard(_exceptionable, {
790
- path: _path + ".additionalProperties",
791
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | boolean | undefined)",
792
- value: input.additionalProperties
793
- })) && $au0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || $guard(_exceptionable, {
794
- path: _path + ".additionalProperties",
795
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | boolean | undefined)",
796
- value: input.additionalProperties
797
- }))) && (undefined === input["x-typia-patternProperties"] || ("object" === typeof input["x-typia-patternProperties"] && null !== input["x-typia-patternProperties"] && false === Array.isArray(input["x-typia-patternProperties"]) || $guard(_exceptionable, {
798
- path: _path + "[\"x-typia-patternProperties\"]",
799
- expected: "(Record<string, ISwaggerSchema> | undefined)",
800
- value: input["x-typia-patternProperties"]
801
- })) && $ao6(input["x-typia-patternProperties"], _path + "[\"x-typia-patternProperties\"]", true && _exceptionable) || $guard(_exceptionable, {
802
- path: _path + "[\"x-typia-patternProperties\"]",
803
- expected: "(Record<string, ISwaggerSchema> | undefined)",
804
- value: input["x-typia-patternProperties"]
805
- })) && ("object" === input.type || $guard(_exceptionable, {
806
- path: _path + ".type",
807
- expected: "\"object\"",
808
- value: input.type
809
- })) && (undefined === input.nullable || "boolean" === typeof input.nullable || $guard(_exceptionable, {
810
- path: _path + ".nullable",
811
- expected: "(boolean | undefined)",
812
- value: input.nullable
813
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
814
- path: _path + ".title",
815
- expected: "(string | undefined)",
816
- value: input.title
817
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
818
- path: _path + ".description",
819
- expected: "(string | undefined)",
820
- value: input.description
821
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
822
- path: _path + ".deprecated",
823
- expected: "(boolean | undefined)",
824
- value: input.deprecated
825
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
826
- path: _path + "[\"x-typia-optional\"]",
827
- expected: "(boolean | undefined)",
828
- value: input["x-typia-optional"]
829
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
830
- path: _path + "[\"x-typia-rest\"]",
831
- expected: "(boolean | undefined)",
832
- value: input["x-typia-rest"]
833
- }));
834
- const $ao17 = (input, _path, _exceptionable = true) => ("string" === typeof input.$ref || $guard(_exceptionable, {
835
- path: _path + ".$ref",
836
- expected: "string",
837
- value: input.$ref
838
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
839
- path: _path + ".title",
840
- expected: "(string | undefined)",
841
- value: input.title
842
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
843
- path: _path + ".description",
844
- expected: "(string | undefined)",
845
- value: input.description
846
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
847
- path: _path + ".deprecated",
848
- expected: "(boolean | undefined)",
849
- value: input.deprecated
850
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
851
- path: _path + "[\"x-typia-optional\"]",
852
- expected: "(boolean | undefined)",
853
- value: input["x-typia-optional"]
854
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
855
- path: _path + "[\"x-typia-rest\"]",
856
- expected: "(boolean | undefined)",
857
- value: input["x-typia-rest"]
858
- }));
859
- const $ao18 = (input, _path, _exceptionable = true) => ((Array.isArray(input.items) || $guard(_exceptionable, {
860
- path: _path + ".items",
861
- expected: "Array<ISwaggerSchema>",
862
- value: input.items
863
- })) && input.items.every((elem, _index10) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
864
- path: _path + ".items[" + _index10 + "]",
865
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
866
- value: elem
867
- })) && $au0(elem, _path + ".items[" + _index10 + "]", true && _exceptionable) || $guard(_exceptionable, {
868
- path: _path + ".items[" + _index10 + "]",
869
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
870
- value: elem
871
- })) || $guard(_exceptionable, {
872
- path: _path + ".items",
873
- expected: "Array<ISwaggerSchema>",
874
- value: input.items
875
- })) && ("array" === input.type || $guard(_exceptionable, {
876
- path: _path + ".type",
877
- expected: "\"array\"",
878
- value: input.type
879
- })) && (undefined === input.nullable || "boolean" === typeof input.nullable || $guard(_exceptionable, {
880
- path: _path + ".nullable",
881
- expected: "(boolean | undefined)",
882
- value: input.nullable
883
- })) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
884
- path: _path + ".title",
885
- expected: "(string | undefined)",
886
- value: input.title
887
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
888
- path: _path + ".description",
889
- expected: "(string | undefined)",
890
- value: input.description
891
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
892
- path: _path + ".deprecated",
893
- expected: "(boolean | undefined)",
894
- value: input.deprecated
895
- })) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
896
- path: _path + "[\"x-typia-optional\"]",
897
- expected: "(boolean | undefined)",
898
- value: input["x-typia-optional"]
899
- })) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
900
- path: _path + "[\"x-typia-rest\"]",
901
- expected: "(boolean | undefined)",
902
- value: input["x-typia-rest"]
903
- }));
904
- const $ao19 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
905
- const value = input[key];
906
- if (undefined === value)
907
- return true;
908
- return ("object" === typeof value && null !== value || $guard(_exceptionable, {
909
- path: _path + $join(key),
910
- expected: "(ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IOAuth2 | ISwaggerSecurityScheme.IOpenId)",
911
- value: value
912
- })) && $au1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
913
- path: _path + $join(key),
914
- expected: "(ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IOAuth2 | ISwaggerSecurityScheme.IOpenId)",
915
- value: value
916
- });
917
- });
918
- const $ao20 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
919
- path: _path + ".type",
920
- expected: "\"http\"",
921
- value: input.type
922
- })) && ("basic" === input.scheme || $guard(_exceptionable, {
923
- path: _path + ".scheme",
924
- expected: "\"basic\"",
925
- value: input.scheme
926
- }));
927
- const $ao21 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
928
- path: _path + ".type",
929
- expected: "\"http\"",
930
- value: input.type
931
- })) && ("bearer" === input.scheme || $guard(_exceptionable, {
932
- path: _path + ".scheme",
933
- expected: "\"bearer\"",
934
- value: input.scheme
935
- })) && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat || $guard(_exceptionable, {
936
- path: _path + ".bearerFormat",
937
- expected: "(string | undefined)",
938
- value: input.bearerFormat
939
- }));
940
- const $ao22 = (input, _path, _exceptionable = true) => ("apiKey" === input.type || $guard(_exceptionable, {
941
- path: _path + ".type",
942
- expected: "\"apiKey\"",
943
- value: input.type
944
- })) && (undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || $guard(_exceptionable, {
945
- path: _path + "[\"in\"]",
946
- expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
947
- value: input["in"]
948
- })) && (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
949
- path: _path + ".name",
950
- expected: "(string | undefined)",
951
- value: input.name
952
- }));
953
- const $ao23 = (input, _path, _exceptionable = true) => ("openIdConnect" === input.type || $guard(_exceptionable, {
954
- path: _path + ".type",
955
- expected: "\"openIdConnect\"",
956
- value: input.type
957
- })) && ("string" === typeof input.openIdConnectUrl || $guard(_exceptionable, {
958
- path: _path + ".openIdConnectUrl",
959
- expected: "string",
960
- value: input.openIdConnectUrl
961
- }));
962
- const $ao24 = (input, _path, _exceptionable = true) => ("oauth2" === input.type || $guard(_exceptionable, {
963
- path: _path + ".type",
964
- expected: "\"oauth2\"",
965
- value: input.type
966
- })) && (("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) || $guard(_exceptionable, {
967
- path: _path + ".flows",
968
- expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
969
- value: input.flows
970
- })) && $ao25(input.flows, _path + ".flows", true && _exceptionable) || $guard(_exceptionable, {
971
- path: _path + ".flows",
972
- expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
973
- value: input.flows
974
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
975
- path: _path + ".description",
976
- expected: "(string | undefined)",
977
- value: input.description
978
- }));
979
- const $ao25 = (input, _path, _exceptionable = true) => (undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode || $guard(_exceptionable, {
980
- path: _path + ".authorizationCode",
981
- expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
982
- value: input.authorizationCode
983
- })) && $ao26(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $guard(_exceptionable, {
984
- path: _path + ".authorizationCode",
985
- expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
986
- value: input.authorizationCode
987
- })) && (undefined === input.implicit || ("object" === typeof input.implicit && null !== input.implicit || $guard(_exceptionable, {
988
- path: _path + ".implicit",
989
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
990
- value: input.implicit
991
- })) && $ao28(input.implicit, _path + ".implicit", true && _exceptionable) || $guard(_exceptionable, {
992
- path: _path + ".implicit",
993
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
994
- value: input.implicit
995
- })) && (undefined === input.password || ("object" === typeof input.password && null !== input.password || $guard(_exceptionable, {
996
- path: _path + ".password",
997
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
998
- value: input.password
999
- })) && $ao29(input.password, _path + ".password", true && _exceptionable) || $guard(_exceptionable, {
1000
- path: _path + ".password",
1001
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1002
- value: input.password
1003
- })) && (undefined === input.clientCredentials || ("object" === typeof input.clientCredentials && null !== input.clientCredentials || $guard(_exceptionable, {
1004
- path: _path + ".clientCredentials",
1005
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1006
- value: input.clientCredentials
1007
- })) && $ao29(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $guard(_exceptionable, {
1008
- path: _path + ".clientCredentials",
1009
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1010
- value: input.clientCredentials
1011
- }));
1012
- const $ao26 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
1013
- path: _path + ".authorizationUrl",
1014
- expected: "string",
1015
- value: input.authorizationUrl
1016
- })) && ("string" === typeof input.tokenUrl || $guard(_exceptionable, {
1017
- path: _path + ".tokenUrl",
1018
- expected: "string",
1019
- value: input.tokenUrl
1020
- })) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
1021
- path: _path + ".refreshUrl",
1022
- expected: "string",
1023
- value: input.refreshUrl
1024
- })) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
1025
- path: _path + ".scopes",
1026
- expected: "(Record<string, string> | undefined)",
1027
- value: input.scopes
1028
- })) && $ao27(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
1029
- path: _path + ".scopes",
1030
- expected: "(Record<string, string> | undefined)",
1031
- value: input.scopes
1032
- }));
1033
- const $ao27 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1034
- const value = input[key];
1035
- if (undefined === value)
1036
- return true;
1037
- return "string" === typeof value || $guard(_exceptionable, {
1038
- path: _path + $join(key),
385
+ value: elem
386
+ })).every(flag => flag) || $report(_exceptionable, {
387
+ path: _path + ".anyOf",
388
+ expected: "Array<ISwaggerSchema>",
389
+ value: input.anyOf
390
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
391
+ path: _path + ".title",
392
+ expected: "(string | undefined)",
393
+ value: input.title
394
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
395
+ path: _path + ".description",
396
+ expected: "(string | undefined)",
397
+ value: input.description
398
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
399
+ path: _path + ".deprecated",
400
+ expected: "(boolean | undefined)",
401
+ value: input.deprecated
402
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
403
+ path: _path + "[\"x-typia-optional\"]",
404
+ expected: "(boolean | undefined)",
405
+ value: input["x-typia-optional"]
406
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
407
+ path: _path + "[\"x-typia-rest\"]",
408
+ expected: "(boolean | undefined)",
409
+ value: input["x-typia-rest"]
410
+ })].every(flag => flag);
411
+ const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.oneOf) || $report(_exceptionable, {
412
+ path: _path + ".oneOf",
413
+ expected: "Array<ISwaggerSchema>",
414
+ value: input.oneOf
415
+ })) && input.oneOf.map((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
416
+ path: _path + ".oneOf[" + _index4 + "]",
417
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
418
+ value: elem
419
+ })) && $vu0(elem, _path + ".oneOf[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
420
+ path: _path + ".oneOf[" + _index4 + "]",
421
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
422
+ value: elem
423
+ })).every(flag => flag) || $report(_exceptionable, {
424
+ path: _path + ".oneOf",
425
+ expected: "Array<ISwaggerSchema>",
426
+ value: input.oneOf
427
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
428
+ path: _path + ".title",
429
+ expected: "(string | undefined)",
430
+ value: input.title
431
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
432
+ path: _path + ".description",
433
+ expected: "(string | undefined)",
434
+ value: input.description
435
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
436
+ path: _path + ".deprecated",
437
+ expected: "(boolean | undefined)",
438
+ value: input.deprecated
439
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
440
+ path: _path + "[\"x-typia-optional\"]",
441
+ expected: "(boolean | undefined)",
442
+ value: input["x-typia-optional"]
443
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
444
+ path: _path + "[\"x-typia-rest\"]",
445
+ expected: "(boolean | undefined)",
446
+ value: input["x-typia-rest"]
447
+ })].every(flag => flag);
448
+ const $vo11 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "boolean" === typeof input["default"] || $report(_exceptionable, {
449
+ path: _path + "[\"default\"]",
450
+ expected: "(boolean | undefined)",
451
+ value: input["default"]
452
+ }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
453
+ path: _path + "[\"enum\"]",
454
+ expected: "(Array<boolean> | undefined)",
455
+ value: input["enum"]
456
+ })) && input["enum"].map((elem, _index5) => "boolean" === typeof elem || $report(_exceptionable, {
457
+ path: _path + "[\"enum\"][" + _index5 + "]",
458
+ expected: "boolean",
459
+ value: elem
460
+ })).every(flag => flag) || $report(_exceptionable, {
461
+ path: _path + "[\"enum\"]",
462
+ expected: "(Array<boolean> | undefined)",
463
+ value: input["enum"]
464
+ }), "boolean" === input.type || $report(_exceptionable, {
465
+ path: _path + ".type",
466
+ expected: "\"boolean\"",
467
+ value: input.type
468
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
469
+ path: _path + ".nullable",
470
+ expected: "(boolean | undefined)",
471
+ value: input.nullable
472
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
473
+ path: _path + ".title",
474
+ expected: "(string | undefined)",
475
+ value: input.title
476
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
477
+ path: _path + ".description",
478
+ expected: "(string | undefined)",
479
+ value: input.description
480
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
481
+ path: _path + ".deprecated",
482
+ expected: "(boolean | undefined)",
483
+ value: input.deprecated
484
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
485
+ path: _path + "[\"x-typia-optional\"]",
486
+ expected: "(boolean | undefined)",
487
+ value: input["x-typia-optional"]
488
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
489
+ path: _path + "[\"x-typia-rest\"]",
490
+ expected: "(boolean | undefined)",
491
+ value: input["x-typia-rest"]
492
+ })].every(flag => flag);
493
+ const $vo12 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647 || $report(_exceptionable, {
494
+ path: _path + "[\"default\"]",
495
+ expected: "number & Type<\"int32\">",
496
+ value: input["default"]
497
+ })) || $report(_exceptionable, {
498
+ path: _path + "[\"default\"]",
499
+ expected: "((number & Type<\"int32\">) | undefined)",
500
+ value: input["default"]
501
+ }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
502
+ path: _path + "[\"enum\"]",
503
+ expected: "(Array<number> | undefined)",
504
+ value: input["enum"]
505
+ })) && input["enum"].map((elem, _index6) => "number" === typeof elem || $report(_exceptionable, {
506
+ path: _path + "[\"enum\"][" + _index6 + "]",
507
+ expected: "number",
508
+ value: elem
509
+ })).every(flag => flag) || $report(_exceptionable, {
510
+ path: _path + "[\"enum\"]",
511
+ expected: "(Array<number> | undefined)",
512
+ value: input["enum"]
513
+ }), undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647 || $report(_exceptionable, {
514
+ path: _path + ".minimum",
515
+ expected: "number & Type<\"int32\">",
516
+ value: input.minimum
517
+ })) || $report(_exceptionable, {
518
+ path: _path + ".minimum",
519
+ expected: "((number & Type<\"int32\">) | undefined)",
520
+ value: input.minimum
521
+ }), undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647 || $report(_exceptionable, {
522
+ path: _path + ".maximum",
523
+ expected: "number & Type<\"int32\">",
524
+ value: input.maximum
525
+ })) || $report(_exceptionable, {
526
+ path: _path + ".maximum",
527
+ expected: "((number & Type<\"int32\">) | undefined)",
528
+ value: input.maximum
529
+ }), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || $report(_exceptionable, {
530
+ path: _path + ".exclusiveMinimum",
531
+ expected: "(boolean | undefined)",
532
+ value: input.exclusiveMinimum
533
+ }), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || $report(_exceptionable, {
534
+ path: _path + ".exclusiveMaximum",
535
+ expected: "(boolean | undefined)",
536
+ value: input.exclusiveMaximum
537
+ }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295 || $report(_exceptionable, {
538
+ path: _path + ".multipleOf",
539
+ expected: "number & Type<\"uint32\">",
540
+ value: input.multipleOf
541
+ })) || $report(_exceptionable, {
542
+ path: _path + ".multipleOf",
543
+ expected: "((number & Type<\"uint32\">) | undefined)",
544
+ value: input.multipleOf
545
+ }), "integer" === input.type || $report(_exceptionable, {
546
+ path: _path + ".type",
547
+ expected: "\"integer\"",
548
+ value: input.type
549
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
550
+ path: _path + ".nullable",
551
+ expected: "(boolean | undefined)",
552
+ value: input.nullable
553
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
554
+ path: _path + ".title",
555
+ expected: "(string | undefined)",
556
+ value: input.title
557
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
558
+ path: _path + ".description",
559
+ expected: "(string | undefined)",
560
+ value: input.description
561
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
562
+ path: _path + ".deprecated",
563
+ expected: "(boolean | undefined)",
564
+ value: input.deprecated
565
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
566
+ path: _path + "[\"x-typia-optional\"]",
567
+ expected: "(boolean | undefined)",
568
+ value: input["x-typia-optional"]
569
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
570
+ path: _path + "[\"x-typia-rest\"]",
571
+ expected: "(boolean | undefined)",
572
+ value: input["x-typia-rest"]
573
+ })].every(flag => flag);
574
+ const $vo13 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] || $report(_exceptionable, {
575
+ path: _path + "[\"default\"]",
576
+ expected: "(number | undefined)",
577
+ value: input["default"]
578
+ }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
579
+ path: _path + "[\"enum\"]",
580
+ expected: "(Array<number> | undefined)",
581
+ value: input["enum"]
582
+ })) && input["enum"].map((elem, _index7) => "number" === typeof elem || $report(_exceptionable, {
583
+ path: _path + "[\"enum\"][" + _index7 + "]",
584
+ expected: "number",
585
+ value: elem
586
+ })).every(flag => flag) || $report(_exceptionable, {
587
+ path: _path + "[\"enum\"]",
588
+ expected: "(Array<number> | undefined)",
589
+ value: input["enum"]
590
+ }), undefined === input.minimum || "number" === typeof input.minimum || $report(_exceptionable, {
591
+ path: _path + ".minimum",
592
+ expected: "(number | undefined)",
593
+ value: input.minimum
594
+ }), undefined === input.maximum || "number" === typeof input.maximum || $report(_exceptionable, {
595
+ path: _path + ".maximum",
596
+ expected: "(number | undefined)",
597
+ value: input.maximum
598
+ }), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || $report(_exceptionable, {
599
+ path: _path + ".exclusiveMinimum",
600
+ expected: "(boolean | undefined)",
601
+ value: input.exclusiveMinimum
602
+ }), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || $report(_exceptionable, {
603
+ path: _path + ".exclusiveMaximum",
604
+ expected: "(boolean | undefined)",
605
+ value: input.exclusiveMaximum
606
+ }), undefined === input.multipleOf || "number" === typeof input.multipleOf || $report(_exceptionable, {
607
+ path: _path + ".multipleOf",
608
+ expected: "(number | undefined)",
609
+ value: input.multipleOf
610
+ }), "number" === input.type || $report(_exceptionable, {
611
+ path: _path + ".type",
612
+ expected: "\"number\"",
613
+ value: input.type
614
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
615
+ path: _path + ".nullable",
616
+ expected: "(boolean | undefined)",
617
+ value: input.nullable
618
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
619
+ path: _path + ".title",
620
+ expected: "(string | undefined)",
621
+ value: input.title
622
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
623
+ path: _path + ".description",
624
+ expected: "(string | undefined)",
625
+ value: input.description
626
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
627
+ path: _path + ".deprecated",
628
+ expected: "(boolean | undefined)",
629
+ value: input.deprecated
630
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
631
+ path: _path + "[\"x-typia-optional\"]",
632
+ expected: "(boolean | undefined)",
633
+ value: input["x-typia-optional"]
634
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
635
+ path: _path + "[\"x-typia-rest\"]",
636
+ expected: "(boolean | undefined)",
637
+ value: input["x-typia-rest"]
638
+ })].every(flag => flag);
639
+ const $vo14 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "string" === typeof input["default"] || $report(_exceptionable, {
640
+ path: _path + "[\"default\"]",
641
+ expected: "(string | undefined)",
642
+ value: input["default"]
643
+ }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
644
+ path: _path + "[\"enum\"]",
645
+ expected: "(Array<string> | undefined)",
646
+ value: input["enum"]
647
+ })) && input["enum"].map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
648
+ path: _path + "[\"enum\"][" + _index8 + "]",
1039
649
  expected: "string",
1040
- value: value
1041
- });
1042
- });
1043
- const $ao28 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
1044
- path: _path + ".authorizationUrl",
1045
- expected: "string",
1046
- value: input.authorizationUrl
1047
- })) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
1048
- path: _path + ".refreshUrl",
1049
- expected: "string",
1050
- value: input.refreshUrl
1051
- })) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
1052
- path: _path + ".scopes",
1053
- expected: "(Record<string, string> | undefined)",
1054
- value: input.scopes
1055
- })) && $ao27(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
1056
- path: _path + ".scopes",
1057
- expected: "(Record<string, string> | undefined)",
1058
- value: input.scopes
1059
- }));
1060
- const $ao29 = (input, _path, _exceptionable = true) => ("string" === typeof input.tokenUrl || $guard(_exceptionable, {
1061
- path: _path + ".tokenUrl",
1062
- expected: "string",
1063
- value: input.tokenUrl
1064
- })) && ("string" === typeof input.refreshUrl || $guard(_exceptionable, {
1065
- path: _path + ".refreshUrl",
1066
- expected: "string",
1067
- value: input.refreshUrl
1068
- })) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
1069
- path: _path + ".scopes",
1070
- expected: "(Record<string, string> | undefined)",
1071
- value: input.scopes
1072
- })) && $ao27(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
1073
- path: _path + ".scopes",
1074
- expected: "(Record<string, string> | undefined)",
1075
- value: input.scopes
1076
- }));
1077
- const $ao30 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1078
- const value = input[key];
1079
- if (undefined === value)
1080
- return true;
1081
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1082
- path: _path + $join(key),
1083
- expected: "ISwagger.IPath",
1084
- value: value
1085
- })) && $ao31(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1086
- path: _path + $join(key),
1087
- expected: "ISwagger.IPath",
1088
- value: value
1089
- });
1090
- });
1091
- const $ao31 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1092
- const value = input[key];
1093
- if (undefined === value)
1094
- return true;
1095
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1096
- path: _path + $join(key),
1097
- expected: "ISwaggerRoute",
1098
- value: value
1099
- })) && $ao32(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1100
- path: _path + $join(key),
1101
- expected: "ISwaggerRoute",
1102
- value: value
1103
- });
1104
- });
1105
- const $ao32 = (input, _path, _exceptionable = true) => (undefined === input.parameters || (Array.isArray(input.parameters) || $guard(_exceptionable, {
1106
- path: _path + ".parameters",
1107
- expected: "(Array<ISwaggerRoute.IParameter> | undefined)",
1108
- value: input.parameters
1109
- })) && input.parameters.every((elem, _index11) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1110
- path: _path + ".parameters[" + _index11 + "]",
1111
- expected: "ISwaggerRoute.IParameter",
1112
- value: elem
1113
- })) && $ao33(elem, _path + ".parameters[" + _index11 + "]", true && _exceptionable) || $guard(_exceptionable, {
1114
- path: _path + ".parameters[" + _index11 + "]",
1115
- expected: "ISwaggerRoute.IParameter",
1116
- value: elem
1117
- })) || $guard(_exceptionable, {
1118
- path: _path + ".parameters",
1119
- expected: "(Array<ISwaggerRoute.IParameter> | undefined)",
1120
- value: input.parameters
1121
- })) && (undefined === input.requestBody || ("object" === typeof input.requestBody && null !== input.requestBody || $guard(_exceptionable, {
1122
- path: _path + ".requestBody",
1123
- expected: "(ISwaggerRoute.IRequestBody | undefined)",
1124
- value: input.requestBody
1125
- })) && $ao34(input.requestBody, _path + ".requestBody", true && _exceptionable) || $guard(_exceptionable, {
1126
- path: _path + ".requestBody",
1127
- expected: "(ISwaggerRoute.IRequestBody | undefined)",
1128
- value: input.requestBody
1129
- })) && (undefined === input.responses || ("object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) || $guard(_exceptionable, {
1130
- path: _path + ".responses",
1131
- expected: "(ISwaggerRoute.IResponseBody | undefined)",
1132
- value: input.responses
1133
- })) && $ao41(input.responses, _path + ".responses", true && _exceptionable) || $guard(_exceptionable, {
1134
- path: _path + ".responses",
1135
- expected: "(ISwaggerRoute.IResponseBody | undefined)",
1136
- value: input.responses
1137
- })) && (undefined === input.summary || "string" === typeof input.summary || $guard(_exceptionable, {
1138
- path: _path + ".summary",
1139
- expected: "(string | undefined)",
1140
- value: input.summary
1141
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
1142
- path: _path + ".description",
1143
- expected: "(string | undefined)",
1144
- value: input.description
1145
- })) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
1146
- path: _path + ".deprecated",
1147
- expected: "(boolean | undefined)",
1148
- value: input.deprecated
1149
- })) && (undefined === input.security || (Array.isArray(input.security) || $guard(_exceptionable, {
1150
- path: _path + ".security",
1151
- expected: "(Array<Record<string, Array<string>>> | undefined)",
1152
- value: input.security
1153
- })) && input.security.every((elem, _index12) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
1154
- path: _path + ".security[" + _index12 + "]",
1155
- expected: "Record<string, Array<string>>",
1156
- value: elem
1157
- })) && $ao43(elem, _path + ".security[" + _index12 + "]", true && _exceptionable) || $guard(_exceptionable, {
1158
- path: _path + ".security[" + _index12 + "]",
1159
- expected: "Record<string, Array<string>>",
1160
- value: elem
1161
- })) || $guard(_exceptionable, {
1162
- path: _path + ".security",
1163
- expected: "(Array<Record<string, Array<string>>> | undefined)",
1164
- value: input.security
1165
- })) && (undefined === input.tags || (Array.isArray(input.tags) || $guard(_exceptionable, {
1166
- path: _path + ".tags",
1167
- expected: "(Array<string> | undefined)",
1168
- value: input.tags
1169
- })) && input.tags.every((elem, _index13) => "string" === typeof elem || $guard(_exceptionable, {
1170
- path: _path + ".tags[" + _index13 + "]",
1171
- expected: "string",
1172
- value: elem
1173
- })) || $guard(_exceptionable, {
1174
- path: _path + ".tags",
1175
- expected: "(Array<string> | undefined)",
1176
- value: input.tags
1177
- })) && (undefined === input["x-nestia-jsDocTags"] || (Array.isArray(input["x-nestia-jsDocTags"]) || $guard(_exceptionable, {
1178
- path: _path + "[\"x-nestia-jsDocTags\"]",
1179
- expected: "(Array<IJsDocTagInfo> | undefined)",
1180
- value: input["x-nestia-jsDocTags"]
1181
- })) && input["x-nestia-jsDocTags"].every((elem, _index14) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1182
- path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
1183
- expected: "IJsDocTagInfo",
1184
- value: elem
1185
- })) && $ao44(elem, _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]", true && _exceptionable) || $guard(_exceptionable, {
1186
- path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
1187
- expected: "IJsDocTagInfo",
1188
- value: elem
1189
- })) || $guard(_exceptionable, {
1190
- path: _path + "[\"x-nestia-jsDocTags\"]",
1191
- expected: "(Array<IJsDocTagInfo> | undefined)",
1192
- value: input["x-nestia-jsDocTags"]
1193
- }));
1194
- const $ao33 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
1195
- path: _path + ".name",
1196
- expected: "(string | undefined)",
1197
- value: input.name
1198
- })) && ("header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || "path" === input["in"] || $guard(_exceptionable, {
1199
- path: _path + "[\"in\"]",
1200
- expected: "(\"cookie\" | \"header\" | \"path\" | \"query\")",
1201
- value: input["in"]
1202
- })) && (("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $guard(_exceptionable, {
1203
- path: _path + ".schema",
1204
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1205
- value: input.schema
1206
- })) && $au0(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1207
- path: _path + ".schema",
1208
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1209
- value: input.schema
1210
- })) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
1211
- path: _path + ".required",
1212
- expected: "(boolean | undefined)",
1213
- value: input.required
1214
- })) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
1215
- path: _path + ".description",
1216
- expected: "(string | undefined)",
1217
- value: input.description
1218
- }));
1219
- const $ao34 = (input, _path, _exceptionable = true) => (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
1220
- path: _path + ".description",
1221
- expected: "(string | undefined)",
1222
- value: input.description
1223
- })) && (("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $guard(_exceptionable, {
1224
- path: _path + ".content",
1225
- expected: "ISwaggerRoute.IContent",
1226
- value: input.content
1227
- })) && $ao35(input.content, _path + ".content", true && _exceptionable) || $guard(_exceptionable, {
1228
- path: _path + ".content",
1229
- expected: "ISwaggerRoute.IContent",
1230
- value: input.content
1231
- })) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
1232
- path: _path + ".required",
1233
- expected: "(boolean | undefined)",
1234
- value: input.required
1235
- })) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"] || $guard(_exceptionable, {
1236
- path: _path + "[\"x-nestia-encrypted\"]",
1237
- expected: "(boolean | undefined)",
1238
- value: input["x-nestia-encrypted"]
1239
- }));
1240
- const $ao35 = (input, _path, _exceptionable = true) => (undefined === input["text/plain"] || ("object" === typeof input["text/plain"] && null !== input["text/plain"] || $guard(_exceptionable, {
1241
- path: _path + "[\"text/plain\"]",
1242
- expected: "(__type | undefined)",
1243
- value: input["text/plain"]
1244
- })) && $ao36(input["text/plain"], _path + "[\"text/plain\"]", true && _exceptionable) || $guard(_exceptionable, {
1245
- path: _path + "[\"text/plain\"]",
1246
- expected: "(__type | undefined)",
1247
- value: input["text/plain"]
1248
- })) && (undefined === input["application/json"] || ("object" === typeof input["application/json"] && null !== input["application/json"] || $guard(_exceptionable, {
1249
- path: _path + "[\"application/json\"]",
1250
- expected: "(__type.o1 | undefined)",
1251
- value: input["application/json"]
1252
- })) && $ao37(input["application/json"], _path + "[\"application/json\"]", true && _exceptionable) || $guard(_exceptionable, {
1253
- path: _path + "[\"application/json\"]",
1254
- expected: "(__type.o1 | undefined)",
1255
- value: input["application/json"]
1256
- })) && (undefined === input["application/x-www-form-urlencoded"] || ("object" === typeof input["application/x-www-form-urlencoded"] && null !== input["application/x-www-form-urlencoded"] || $guard(_exceptionable, {
1257
- path: _path + "[\"application/x-www-form-urlencoded\"]",
1258
- expected: "(__type.o2 | undefined)",
1259
- value: input["application/x-www-form-urlencoded"]
1260
- })) && $ao38(input["application/x-www-form-urlencoded"], _path + "[\"application/x-www-form-urlencoded\"]", true && _exceptionable) || $guard(_exceptionable, {
1261
- path: _path + "[\"application/x-www-form-urlencoded\"]",
1262
- expected: "(__type.o2 | undefined)",
1263
- value: input["application/x-www-form-urlencoded"]
1264
- })) && (undefined === input["multipart/form-data"] || ("object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] || $guard(_exceptionable, {
1265
- path: _path + "[\"multipart/form-data\"]",
1266
- expected: "(__type.o3 | undefined)",
1267
- value: input["multipart/form-data"]
1268
- })) && $ao39(input["multipart/form-data"], _path + "[\"multipart/form-data\"]", true && _exceptionable) || $guard(_exceptionable, {
1269
- path: _path + "[\"multipart/form-data\"]",
1270
- expected: "(__type.o3 | undefined)",
1271
- value: input["multipart/form-data"]
1272
- })) && (undefined === input["*/*"] || ("object" === typeof input["*/*"] && null !== input["*/*"] || $guard(_exceptionable, {
1273
- path: _path + "[\"*/*\"]",
1274
- expected: "(__type.o4 | undefined)",
1275
- value: input["*/*"]
1276
- })) && $ao40(input["*/*"], _path + "[\"*/*\"]", true && _exceptionable) || $guard(_exceptionable, {
1277
- path: _path + "[\"*/*\"]",
1278
- expected: "(__type.o4 | undefined)",
1279
- value: input["*/*"]
1280
- }));
1281
- const $ao36 = (input, _path, _exceptionable = true) => ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $guard(_exceptionable, {
1282
- path: _path + ".schema",
1283
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1284
- value: input.schema
1285
- })) && $au0(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1286
- path: _path + ".schema",
1287
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1288
- value: input.schema
1289
- });
1290
- const $ao37 = (input, _path, _exceptionable = true) => ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $guard(_exceptionable, {
1291
- path: _path + ".schema",
1292
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1293
- value: input.schema
1294
- })) && $au0(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1295
- path: _path + ".schema",
1296
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1297
- value: input.schema
1298
- });
1299
- const $ao38 = (input, _path, _exceptionable = true) => ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $guard(_exceptionable, {
1300
- path: _path + ".schema",
1301
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1302
- value: input.schema
1303
- })) && $au0(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1304
- path: _path + ".schema",
1305
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1306
- value: input.schema
1307
- });
1308
- const $ao39 = (input, _path, _exceptionable = true) => ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $guard(_exceptionable, {
1309
- path: _path + ".schema",
1310
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1311
- value: input.schema
1312
- })) && $au0(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1313
- path: _path + ".schema",
1314
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1315
- value: input.schema
1316
- });
1317
- const $ao40 = (input, _path, _exceptionable = true) => ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $guard(_exceptionable, {
1318
- path: _path + ".schema",
1319
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1320
- value: input.schema
1321
- })) && $au0(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1322
- path: _path + ".schema",
1323
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1324
- value: input.schema
1325
- });
1326
- const $ao41 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1327
- const value = input[key];
1328
- if (undefined === value)
1329
- return true;
1330
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1331
- path: _path + $join(key),
1332
- expected: "__type.o5",
1333
- value: value
1334
- })) && $ao42(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1335
- path: _path + $join(key),
1336
- expected: "__type.o5",
1337
- value: value
1338
- });
1339
- });
1340
- const $ao42 = (input, _path, _exceptionable = true) => (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
1341
- path: _path + ".description",
1342
- expected: "(string | undefined)",
1343
- value: input.description
1344
- })) && (undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $guard(_exceptionable, {
1345
- path: _path + ".content",
1346
- expected: "(ISwaggerRoute.IContent | undefined)",
1347
- value: input.content
1348
- })) && $ao35(input.content, _path + ".content", true && _exceptionable) || $guard(_exceptionable, {
1349
- path: _path + ".content",
1350
- expected: "(ISwaggerRoute.IContent | undefined)",
1351
- value: input.content
1352
- })) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"] || $guard(_exceptionable, {
1353
- path: _path + "[\"x-nestia-encrypted\"]",
1354
- expected: "(boolean | undefined)",
1355
- value: input["x-nestia-encrypted"]
1356
- }));
1357
- const $ao43 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1358
- const value = input[key];
1359
- if (undefined === value)
1360
- return true;
1361
- return (Array.isArray(value) || $guard(_exceptionable, {
1362
- path: _path + $join(key),
1363
- expected: "Array<string>",
1364
- value: value
1365
- })) && value.every((elem, _index15) => "string" === typeof elem || $guard(_exceptionable, {
1366
- path: _path + $join(key) + "[" + _index15 + "]",
650
+ value: elem
651
+ })).every(flag => flag) || $report(_exceptionable, {
652
+ path: _path + "[\"enum\"]",
653
+ expected: "(Array<string> | undefined)",
654
+ value: input["enum"]
655
+ }), undefined === input.format || "string" === typeof input.format || $report(_exceptionable, {
656
+ path: _path + ".format",
657
+ expected: "(string | undefined)",
658
+ value: input.format
659
+ }), undefined === input.pattern || "string" === typeof input.pattern || $report(_exceptionable, {
660
+ path: _path + ".pattern",
661
+ expected: "(string | undefined)",
662
+ value: input.pattern
663
+ }), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295 || $report(_exceptionable, {
664
+ path: _path + ".minLength",
665
+ expected: "number & Type<\"uint32\">",
666
+ value: input.minLength
667
+ })) || $report(_exceptionable, {
668
+ path: _path + ".minLength",
669
+ expected: "((number & Type<\"uint32\">) | undefined)",
670
+ value: input.minLength
671
+ }), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295 || $report(_exceptionable, {
672
+ path: _path + ".maxLength",
673
+ expected: "number & Type<\"uint32\">",
674
+ value: input.maxLength
675
+ })) || $report(_exceptionable, {
676
+ path: _path + ".maxLength",
677
+ expected: "((number & Type<\"uint32\">) | undefined)",
678
+ value: input.maxLength
679
+ }), "string" === input.type || $report(_exceptionable, {
680
+ path: _path + ".type",
681
+ expected: "\"string\"",
682
+ value: input.type
683
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
684
+ path: _path + ".nullable",
685
+ expected: "(boolean | undefined)",
686
+ value: input.nullable
687
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
688
+ path: _path + ".title",
689
+ expected: "(string | undefined)",
690
+ value: input.title
691
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
692
+ path: _path + ".description",
693
+ expected: "(string | undefined)",
694
+ value: input.description
695
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
696
+ path: _path + ".deprecated",
697
+ expected: "(boolean | undefined)",
698
+ value: input.deprecated
699
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
700
+ path: _path + "[\"x-typia-optional\"]",
701
+ expected: "(boolean | undefined)",
702
+ value: input["x-typia-optional"]
703
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
704
+ path: _path + "[\"x-typia-rest\"]",
705
+ expected: "(boolean | undefined)",
706
+ value: input["x-typia-rest"]
707
+ })].every(flag => flag);
708
+ const $vo15 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $report(_exceptionable, {
709
+ path: _path + ".items",
710
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
711
+ value: input.items
712
+ })) && $vu0(input.items, _path + ".items", true && _exceptionable) || $report(_exceptionable, {
713
+ path: _path + ".items",
714
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
715
+ value: input.items
716
+ }), undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 4294967295 || $report(_exceptionable, {
717
+ path: _path + ".minItems",
718
+ expected: "number & Type<\"uint32\">",
719
+ value: input.minItems
720
+ })) || $report(_exceptionable, {
721
+ path: _path + ".minItems",
722
+ expected: "((number & Type<\"uint32\">) | undefined)",
723
+ value: input.minItems
724
+ }), undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295 || $report(_exceptionable, {
725
+ path: _path + ".maxItems",
726
+ expected: "number & Type<\"uint32\">",
727
+ value: input.maxItems
728
+ })) || $report(_exceptionable, {
729
+ path: _path + ".maxItems",
730
+ expected: "((number & Type<\"uint32\">) | undefined)",
731
+ value: input.maxItems
732
+ }), undefined === input["x-typia-tuple"] || ("object" === typeof input["x-typia-tuple"] && null !== input["x-typia-tuple"] || $report(_exceptionable, {
733
+ path: _path + "[\"x-typia-tuple\"]",
734
+ expected: "(ISwaggerSchema.ITuple | undefined)",
735
+ value: input["x-typia-tuple"]
736
+ })) && $vo18(input["x-typia-tuple"], _path + "[\"x-typia-tuple\"]", true && _exceptionable) || $report(_exceptionable, {
737
+ path: _path + "[\"x-typia-tuple\"]",
738
+ expected: "(ISwaggerSchema.ITuple | undefined)",
739
+ value: input["x-typia-tuple"]
740
+ }), "array" === input.type || $report(_exceptionable, {
741
+ path: _path + ".type",
742
+ expected: "\"array\"",
743
+ value: input.type
744
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
745
+ path: _path + ".nullable",
746
+ expected: "(boolean | undefined)",
747
+ value: input.nullable
748
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
749
+ path: _path + ".title",
750
+ expected: "(string | undefined)",
751
+ value: input.title
752
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
753
+ path: _path + ".description",
754
+ expected: "(string | undefined)",
755
+ value: input.description
756
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
757
+ path: _path + ".deprecated",
758
+ expected: "(boolean | undefined)",
759
+ value: input.deprecated
760
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
761
+ path: _path + "[\"x-typia-optional\"]",
762
+ expected: "(boolean | undefined)",
763
+ value: input["x-typia-optional"]
764
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
765
+ path: _path + "[\"x-typia-rest\"]",
766
+ expected: "(boolean | undefined)",
767
+ value: input["x-typia-rest"]
768
+ })].every(flag => flag);
769
+ const $vo16 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $report(_exceptionable, {
770
+ path: _path + ".properties",
771
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
772
+ value: input.properties
773
+ })) && $vo6(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
774
+ path: _path + ".properties",
775
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
776
+ value: input.properties
777
+ }), undefined === input.required || (Array.isArray(input.required) || $report(_exceptionable, {
778
+ path: _path + ".required",
779
+ expected: "(Array<string> | undefined)",
780
+ value: input.required
781
+ })) && input.required.map((elem, _index9) => "string" === typeof elem || $report(_exceptionable, {
782
+ path: _path + ".required[" + _index9 + "]",
1367
783
  expected: "string",
1368
784
  value: elem
1369
- })) || $guard(_exceptionable, {
1370
- path: _path + $join(key),
1371
- expected: "Array<string>",
1372
- value: value
1373
- });
1374
- });
1375
- const $ao44 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
1376
- path: _path + ".name",
1377
- expected: "string",
1378
- value: input.name
1379
- })) && (undefined === input.text || (Array.isArray(input.text) || $guard(_exceptionable, {
1380
- path: _path + ".text",
1381
- expected: "(Array<IJsDocTagInfo.IText> | undefined)",
1382
- value: input.text
1383
- })) && input.text.every((elem, _index16) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1384
- path: _path + ".text[" + _index16 + "]",
1385
- expected: "IJsDocTagInfo.IText",
1386
- value: elem
1387
- })) && $ao45(elem, _path + ".text[" + _index16 + "]", true && _exceptionable) || $guard(_exceptionable, {
1388
- path: _path + ".text[" + _index16 + "]",
1389
- expected: "IJsDocTagInfo.IText",
1390
- value: elem
1391
- })) || $guard(_exceptionable, {
1392
- path: _path + ".text",
1393
- expected: "(Array<IJsDocTagInfo.IText> | undefined)",
1394
- value: input.text
1395
- }));
1396
- const $ao45 = (input, _path, _exceptionable = true) => ("string" === typeof input.text || $guard(_exceptionable, {
1397
- path: _path + ".text",
1398
- expected: "string",
1399
- value: input.text
1400
- })) && ("string" === typeof input.kind || $guard(_exceptionable, {
1401
- path: _path + ".kind",
1402
- expected: "string",
1403
- value: input.kind
1404
- }));
1405
- const $au0 = (input, _path, _exceptionable = true) => (() => {
785
+ })).every(flag => flag) || $report(_exceptionable, {
786
+ path: _path + ".required",
787
+ expected: "(Array<string> | undefined)",
788
+ value: input.required
789
+ }), (null !== input.additionalProperties || $report(_exceptionable, {
790
+ path: _path + ".additionalProperties",
791
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | boolean | undefined)",
792
+ value: input.additionalProperties
793
+ })) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || $report(_exceptionable, {
794
+ path: _path + ".additionalProperties",
795
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | boolean | undefined)",
796
+ value: input.additionalProperties
797
+ })) && $vu0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || $report(_exceptionable, {
798
+ path: _path + ".additionalProperties",
799
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | boolean | undefined)",
800
+ value: input.additionalProperties
801
+ })), undefined === input["x-typia-patternProperties"] || ("object" === typeof input["x-typia-patternProperties"] && null !== input["x-typia-patternProperties"] && false === Array.isArray(input["x-typia-patternProperties"]) || $report(_exceptionable, {
802
+ path: _path + "[\"x-typia-patternProperties\"]",
803
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
804
+ value: input["x-typia-patternProperties"]
805
+ })) && $vo6(input["x-typia-patternProperties"], _path + "[\"x-typia-patternProperties\"]", true && _exceptionable) || $report(_exceptionable, {
806
+ path: _path + "[\"x-typia-patternProperties\"]",
807
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
808
+ value: input["x-typia-patternProperties"]
809
+ }), "object" === input.type || $report(_exceptionable, {
810
+ path: _path + ".type",
811
+ expected: "\"object\"",
812
+ value: input.type
813
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
814
+ path: _path + ".nullable",
815
+ expected: "(boolean | undefined)",
816
+ value: input.nullable
817
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
818
+ path: _path + ".title",
819
+ expected: "(string | undefined)",
820
+ value: input.title
821
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
822
+ path: _path + ".description",
823
+ expected: "(string | undefined)",
824
+ value: input.description
825
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
826
+ path: _path + ".deprecated",
827
+ expected: "(boolean | undefined)",
828
+ value: input.deprecated
829
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
830
+ path: _path + "[\"x-typia-optional\"]",
831
+ expected: "(boolean | undefined)",
832
+ value: input["x-typia-optional"]
833
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
834
+ path: _path + "[\"x-typia-rest\"]",
835
+ expected: "(boolean | undefined)",
836
+ value: input["x-typia-rest"]
837
+ })].every(flag => flag);
838
+ const $vo17 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || $report(_exceptionable, {
839
+ path: _path + ".$ref",
840
+ expected: "string",
841
+ value: input.$ref
842
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
843
+ path: _path + ".title",
844
+ expected: "(string | undefined)",
845
+ value: input.title
846
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
847
+ path: _path + ".description",
848
+ expected: "(string | undefined)",
849
+ value: input.description
850
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
851
+ path: _path + ".deprecated",
852
+ expected: "(boolean | undefined)",
853
+ value: input.deprecated
854
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
855
+ path: _path + "[\"x-typia-optional\"]",
856
+ expected: "(boolean | undefined)",
857
+ value: input["x-typia-optional"]
858
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
859
+ path: _path + "[\"x-typia-rest\"]",
860
+ expected: "(boolean | undefined)",
861
+ value: input["x-typia-rest"]
862
+ })].every(flag => flag);
863
+ const $vo18 = (input, _path, _exceptionable = true) => [(Array.isArray(input.items) || $report(_exceptionable, {
864
+ path: _path + ".items",
865
+ expected: "Array<ISwaggerSchema>",
866
+ value: input.items
867
+ })) && input.items.map((elem, _index10) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
868
+ path: _path + ".items[" + _index10 + "]",
869
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
870
+ value: elem
871
+ })) && $vu0(elem, _path + ".items[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
872
+ path: _path + ".items[" + _index10 + "]",
873
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
874
+ value: elem
875
+ })).every(flag => flag) || $report(_exceptionable, {
876
+ path: _path + ".items",
877
+ expected: "Array<ISwaggerSchema>",
878
+ value: input.items
879
+ }), "array" === input.type || $report(_exceptionable, {
880
+ path: _path + ".type",
881
+ expected: "\"array\"",
882
+ value: input.type
883
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
884
+ path: _path + ".nullable",
885
+ expected: "(boolean | undefined)",
886
+ value: input.nullable
887
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
888
+ path: _path + ".title",
889
+ expected: "(string | undefined)",
890
+ value: input.title
891
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
892
+ path: _path + ".description",
893
+ expected: "(string | undefined)",
894
+ value: input.description
895
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
896
+ path: _path + ".deprecated",
897
+ expected: "(boolean | undefined)",
898
+ value: input.deprecated
899
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
900
+ path: _path + "[\"x-typia-optional\"]",
901
+ expected: "(boolean | undefined)",
902
+ value: input["x-typia-optional"]
903
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
904
+ path: _path + "[\"x-typia-rest\"]",
905
+ expected: "(boolean | undefined)",
906
+ value: input["x-typia-rest"]
907
+ })].every(flag => flag);
908
+ const $vo19 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
909
+ const value = input[key];
910
+ if (undefined === value)
911
+ return true;
912
+ return ("object" === typeof value && null !== value || $report(_exceptionable, {
913
+ path: _path + $join(key),
914
+ expected: "(ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IOAuth2 | ISwaggerSecurityScheme.IOpenId)",
915
+ value: value
916
+ })) && $vu1(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
917
+ path: _path + $join(key),
918
+ expected: "(ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IOAuth2 | ISwaggerSecurityScheme.IOpenId)",
919
+ value: value
920
+ });
921
+ }).every(flag => flag)].every(flag => flag);
922
+ const $vo20 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
923
+ path: _path + ".type",
924
+ expected: "\"http\"",
925
+ value: input.type
926
+ }), "basic" === input.scheme || $report(_exceptionable, {
927
+ path: _path + ".scheme",
928
+ expected: "\"basic\"",
929
+ value: input.scheme
930
+ })].every(flag => flag);
931
+ const $vo21 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
932
+ path: _path + ".type",
933
+ expected: "\"http\"",
934
+ value: input.type
935
+ }), "bearer" === input.scheme || $report(_exceptionable, {
936
+ path: _path + ".scheme",
937
+ expected: "\"bearer\"",
938
+ value: input.scheme
939
+ }), undefined === input.bearerFormat || "string" === typeof input.bearerFormat || $report(_exceptionable, {
940
+ path: _path + ".bearerFormat",
941
+ expected: "(string | undefined)",
942
+ value: input.bearerFormat
943
+ })].every(flag => flag);
944
+ const $vo22 = (input, _path, _exceptionable = true) => ["apiKey" === input.type || $report(_exceptionable, {
945
+ path: _path + ".type",
946
+ expected: "\"apiKey\"",
947
+ value: input.type
948
+ }), undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
949
+ path: _path + "[\"in\"]",
950
+ expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
951
+ value: input["in"]
952
+ }), undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
953
+ path: _path + ".name",
954
+ expected: "(string | undefined)",
955
+ value: input.name
956
+ })].every(flag => flag);
957
+ const $vo23 = (input, _path, _exceptionable = true) => ["openIdConnect" === input.type || $report(_exceptionable, {
958
+ path: _path + ".type",
959
+ expected: "\"openIdConnect\"",
960
+ value: input.type
961
+ }), "string" === typeof input.openIdConnectUrl || $report(_exceptionable, {
962
+ path: _path + ".openIdConnectUrl",
963
+ expected: "string",
964
+ value: input.openIdConnectUrl
965
+ })].every(flag => flag);
966
+ const $vo24 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
967
+ path: _path + ".type",
968
+ expected: "\"oauth2\"",
969
+ value: input.type
970
+ }), ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) || $report(_exceptionable, {
971
+ path: _path + ".flows",
972
+ expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
973
+ value: input.flows
974
+ })) && $vo25(input.flows, _path + ".flows", true && _exceptionable) || $report(_exceptionable, {
975
+ path: _path + ".flows",
976
+ expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
977
+ value: input.flows
978
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
979
+ path: _path + ".description",
980
+ expected: "(string | undefined)",
981
+ value: input.description
982
+ })].every(flag => flag);
983
+ const $vo25 = (input, _path, _exceptionable = true) => [undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode || $report(_exceptionable, {
984
+ path: _path + ".authorizationCode",
985
+ expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
986
+ value: input.authorizationCode
987
+ })) && $vo26(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $report(_exceptionable, {
988
+ path: _path + ".authorizationCode",
989
+ expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
990
+ value: input.authorizationCode
991
+ }), undefined === input.implicit || ("object" === typeof input.implicit && null !== input.implicit || $report(_exceptionable, {
992
+ path: _path + ".implicit",
993
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
994
+ value: input.implicit
995
+ })) && $vo28(input.implicit, _path + ".implicit", true && _exceptionable) || $report(_exceptionable, {
996
+ path: _path + ".implicit",
997
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
998
+ value: input.implicit
999
+ }), undefined === input.password || ("object" === typeof input.password && null !== input.password || $report(_exceptionable, {
1000
+ path: _path + ".password",
1001
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1002
+ value: input.password
1003
+ })) && $vo29(input.password, _path + ".password", true && _exceptionable) || $report(_exceptionable, {
1004
+ path: _path + ".password",
1005
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1006
+ value: input.password
1007
+ }), undefined === input.clientCredentials || ("object" === typeof input.clientCredentials && null !== input.clientCredentials || $report(_exceptionable, {
1008
+ path: _path + ".clientCredentials",
1009
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1010
+ value: input.clientCredentials
1011
+ })) && $vo29(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $report(_exceptionable, {
1012
+ path: _path + ".clientCredentials",
1013
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1014
+ value: input.clientCredentials
1015
+ })].every(flag => flag);
1016
+ const $vo26 = (input, _path, _exceptionable = true) => ["string" === typeof input.authorizationUrl || $report(_exceptionable, {
1017
+ path: _path + ".authorizationUrl",
1018
+ expected: "string",
1019
+ value: input.authorizationUrl
1020
+ }), "string" === typeof input.tokenUrl || $report(_exceptionable, {
1021
+ path: _path + ".tokenUrl",
1022
+ expected: "string",
1023
+ value: input.tokenUrl
1024
+ }), "string" === typeof input.refreshUrl || $report(_exceptionable, {
1025
+ path: _path + ".refreshUrl",
1026
+ expected: "string",
1027
+ value: input.refreshUrl
1028
+ }), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
1029
+ path: _path + ".scopes",
1030
+ expected: "(Record<string, string> | undefined)",
1031
+ value: input.scopes
1032
+ })) && $vo27(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
1033
+ path: _path + ".scopes",
1034
+ expected: "(Record<string, string> | undefined)",
1035
+ value: input.scopes
1036
+ })].every(flag => flag);
1037
+ const $vo27 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1038
+ const value = input[key];
1039
+ if (undefined === value)
1040
+ return true;
1041
+ return "string" === typeof value || $report(_exceptionable, {
1042
+ path: _path + $join(key),
1043
+ expected: "string",
1044
+ value: value
1045
+ });
1046
+ }).every(flag => flag)].every(flag => flag);
1047
+ const $vo28 = (input, _path, _exceptionable = true) => ["string" === typeof input.authorizationUrl || $report(_exceptionable, {
1048
+ path: _path + ".authorizationUrl",
1049
+ expected: "string",
1050
+ value: input.authorizationUrl
1051
+ }), "string" === typeof input.refreshUrl || $report(_exceptionable, {
1052
+ path: _path + ".refreshUrl",
1053
+ expected: "string",
1054
+ value: input.refreshUrl
1055
+ }), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
1056
+ path: _path + ".scopes",
1057
+ expected: "(Record<string, string> | undefined)",
1058
+ value: input.scopes
1059
+ })) && $vo27(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
1060
+ path: _path + ".scopes",
1061
+ expected: "(Record<string, string> | undefined)",
1062
+ value: input.scopes
1063
+ })].every(flag => flag);
1064
+ const $vo29 = (input, _path, _exceptionable = true) => ["string" === typeof input.tokenUrl || $report(_exceptionable, {
1065
+ path: _path + ".tokenUrl",
1066
+ expected: "string",
1067
+ value: input.tokenUrl
1068
+ }), "string" === typeof input.refreshUrl || $report(_exceptionable, {
1069
+ path: _path + ".refreshUrl",
1070
+ expected: "string",
1071
+ value: input.refreshUrl
1072
+ }), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
1073
+ path: _path + ".scopes",
1074
+ expected: "(Record<string, string> | undefined)",
1075
+ value: input.scopes
1076
+ })) && $vo27(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
1077
+ path: _path + ".scopes",
1078
+ expected: "(Record<string, string> | undefined)",
1079
+ value: input.scopes
1080
+ })].every(flag => flag);
1081
+ const $vo30 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1082
+ const value = input[key];
1083
+ if (undefined === value)
1084
+ return true;
1085
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
1086
+ path: _path + $join(key),
1087
+ expected: "ISwagger.IPath",
1088
+ value: value
1089
+ })) && $vo31(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
1090
+ path: _path + $join(key),
1091
+ expected: "ISwagger.IPath",
1092
+ value: value
1093
+ });
1094
+ }).every(flag => flag)].every(flag => flag);
1095
+ const $vo31 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1096
+ const value = input[key];
1097
+ if (undefined === value)
1098
+ return true;
1099
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
1100
+ path: _path + $join(key),
1101
+ expected: "ISwaggerRoute",
1102
+ value: value
1103
+ })) && $vo32(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
1104
+ path: _path + $join(key),
1105
+ expected: "ISwaggerRoute",
1106
+ value: value
1107
+ });
1108
+ }).every(flag => flag)].every(flag => flag);
1109
+ const $vo32 = (input, _path, _exceptionable = true) => [undefined === input.parameters || (Array.isArray(input.parameters) || $report(_exceptionable, {
1110
+ path: _path + ".parameters",
1111
+ expected: "(Array<ISwaggerRoute.IParameter> | undefined)",
1112
+ value: input.parameters
1113
+ })) && input.parameters.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1114
+ path: _path + ".parameters[" + _index11 + "]",
1115
+ expected: "ISwaggerRoute.IParameter",
1116
+ value: elem
1117
+ })) && $vo33(elem, _path + ".parameters[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
1118
+ path: _path + ".parameters[" + _index11 + "]",
1119
+ expected: "ISwaggerRoute.IParameter",
1120
+ value: elem
1121
+ })).every(flag => flag) || $report(_exceptionable, {
1122
+ path: _path + ".parameters",
1123
+ expected: "(Array<ISwaggerRoute.IParameter> | undefined)",
1124
+ value: input.parameters
1125
+ }), undefined === input.requestBody || ("object" === typeof input.requestBody && null !== input.requestBody || $report(_exceptionable, {
1126
+ path: _path + ".requestBody",
1127
+ expected: "(ISwaggerRoute.IRequestBody | undefined)",
1128
+ value: input.requestBody
1129
+ })) && $vo34(input.requestBody, _path + ".requestBody", true && _exceptionable) || $report(_exceptionable, {
1130
+ path: _path + ".requestBody",
1131
+ expected: "(ISwaggerRoute.IRequestBody | undefined)",
1132
+ value: input.requestBody
1133
+ }), undefined === input.responses || ("object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) || $report(_exceptionable, {
1134
+ path: _path + ".responses",
1135
+ expected: "(ISwaggerRoute.IResponseBody | undefined)",
1136
+ value: input.responses
1137
+ })) && $vo41(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
1138
+ path: _path + ".responses",
1139
+ expected: "(ISwaggerRoute.IResponseBody | undefined)",
1140
+ value: input.responses
1141
+ }), undefined === input.summary || "string" === typeof input.summary || $report(_exceptionable, {
1142
+ path: _path + ".summary",
1143
+ expected: "(string | undefined)",
1144
+ value: input.summary
1145
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1146
+ path: _path + ".description",
1147
+ expected: "(string | undefined)",
1148
+ value: input.description
1149
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
1150
+ path: _path + ".deprecated",
1151
+ expected: "(boolean | undefined)",
1152
+ value: input.deprecated
1153
+ }), undefined === input.security || (Array.isArray(input.security) || $report(_exceptionable, {
1154
+ path: _path + ".security",
1155
+ expected: "(Array<Record<string, Array<string>>> | undefined)",
1156
+ value: input.security
1157
+ })) && input.security.map((elem, _index12) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1158
+ path: _path + ".security[" + _index12 + "]",
1159
+ expected: "Record<string, Array<string>>",
1160
+ value: elem
1161
+ })) && $vo43(elem, _path + ".security[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
1162
+ path: _path + ".security[" + _index12 + "]",
1163
+ expected: "Record<string, Array<string>>",
1164
+ value: elem
1165
+ })).every(flag => flag) || $report(_exceptionable, {
1166
+ path: _path + ".security",
1167
+ expected: "(Array<Record<string, Array<string>>> | undefined)",
1168
+ value: input.security
1169
+ }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
1170
+ path: _path + ".tags",
1171
+ expected: "(Array<string> | undefined)",
1172
+ value: input.tags
1173
+ })) && input.tags.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
1174
+ path: _path + ".tags[" + _index13 + "]",
1175
+ expected: "string",
1176
+ value: elem
1177
+ })).every(flag => flag) || $report(_exceptionable, {
1178
+ path: _path + ".tags",
1179
+ expected: "(Array<string> | undefined)",
1180
+ value: input.tags
1181
+ }), undefined === input["x-nestia-jsDocTags"] || (Array.isArray(input["x-nestia-jsDocTags"]) || $report(_exceptionable, {
1182
+ path: _path + "[\"x-nestia-jsDocTags\"]",
1183
+ expected: "(Array<IJsDocTagInfo> | undefined)",
1184
+ value: input["x-nestia-jsDocTags"]
1185
+ })) && input["x-nestia-jsDocTags"].map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1186
+ path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
1187
+ expected: "IJsDocTagInfo",
1188
+ value: elem
1189
+ })) && $vo44(elem, _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
1190
+ path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
1191
+ expected: "IJsDocTagInfo",
1192
+ value: elem
1193
+ })).every(flag => flag) || $report(_exceptionable, {
1194
+ path: _path + "[\"x-nestia-jsDocTags\"]",
1195
+ expected: "(Array<IJsDocTagInfo> | undefined)",
1196
+ value: input["x-nestia-jsDocTags"]
1197
+ })].every(flag => flag);
1198
+ const $vo33 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
1199
+ path: _path + ".name",
1200
+ expected: "(string | undefined)",
1201
+ value: input.name
1202
+ }), "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || "path" === input["in"] || $report(_exceptionable, {
1203
+ path: _path + "[\"in\"]",
1204
+ expected: "(\"cookie\" | \"header\" | \"path\" | \"query\")",
1205
+ value: input["in"]
1206
+ }), ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1207
+ path: _path + ".schema",
1208
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1209
+ value: input.schema
1210
+ })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1211
+ path: _path + ".schema",
1212
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1213
+ value: input.schema
1214
+ }), undefined === input.required || "boolean" === typeof input.required || $report(_exceptionable, {
1215
+ path: _path + ".required",
1216
+ expected: "(boolean | undefined)",
1217
+ value: input.required
1218
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1219
+ path: _path + ".description",
1220
+ expected: "(string | undefined)",
1221
+ value: input.description
1222
+ })].every(flag => flag);
1223
+ const $vo34 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1224
+ path: _path + ".description",
1225
+ expected: "(string | undefined)",
1226
+ value: input.description
1227
+ }), ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
1228
+ path: _path + ".content",
1229
+ expected: "ISwaggerRoute.IContent",
1230
+ value: input.content
1231
+ })) && $vo35(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
1232
+ path: _path + ".content",
1233
+ expected: "ISwaggerRoute.IContent",
1234
+ value: input.content
1235
+ }), undefined === input.required || "boolean" === typeof input.required || $report(_exceptionable, {
1236
+ path: _path + ".required",
1237
+ expected: "(boolean | undefined)",
1238
+ value: input.required
1239
+ }), undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"] || $report(_exceptionable, {
1240
+ path: _path + "[\"x-nestia-encrypted\"]",
1241
+ expected: "(boolean | undefined)",
1242
+ value: input["x-nestia-encrypted"]
1243
+ })].every(flag => flag);
1244
+ const $vo35 = (input, _path, _exceptionable = true) => [undefined === input["text/plain"] || ("object" === typeof input["text/plain"] && null !== input["text/plain"] || $report(_exceptionable, {
1245
+ path: _path + "[\"text/plain\"]",
1246
+ expected: "(__type | undefined)",
1247
+ value: input["text/plain"]
1248
+ })) && $vo36(input["text/plain"], _path + "[\"text/plain\"]", true && _exceptionable) || $report(_exceptionable, {
1249
+ path: _path + "[\"text/plain\"]",
1250
+ expected: "(__type | undefined)",
1251
+ value: input["text/plain"]
1252
+ }), undefined === input["application/json"] || ("object" === typeof input["application/json"] && null !== input["application/json"] || $report(_exceptionable, {
1253
+ path: _path + "[\"application/json\"]",
1254
+ expected: "(__type.o1 | undefined)",
1255
+ value: input["application/json"]
1256
+ })) && $vo37(input["application/json"], _path + "[\"application/json\"]", true && _exceptionable) || $report(_exceptionable, {
1257
+ path: _path + "[\"application/json\"]",
1258
+ expected: "(__type.o1 | undefined)",
1259
+ value: input["application/json"]
1260
+ }), undefined === input["application/x-www-form-urlencoded"] || ("object" === typeof input["application/x-www-form-urlencoded"] && null !== input["application/x-www-form-urlencoded"] || $report(_exceptionable, {
1261
+ path: _path + "[\"application/x-www-form-urlencoded\"]",
1262
+ expected: "(__type.o2 | undefined)",
1263
+ value: input["application/x-www-form-urlencoded"]
1264
+ })) && $vo38(input["application/x-www-form-urlencoded"], _path + "[\"application/x-www-form-urlencoded\"]", true && _exceptionable) || $report(_exceptionable, {
1265
+ path: _path + "[\"application/x-www-form-urlencoded\"]",
1266
+ expected: "(__type.o2 | undefined)",
1267
+ value: input["application/x-www-form-urlencoded"]
1268
+ }), undefined === input["multipart/form-data"] || ("object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] || $report(_exceptionable, {
1269
+ path: _path + "[\"multipart/form-data\"]",
1270
+ expected: "(__type.o3 | undefined)",
1271
+ value: input["multipart/form-data"]
1272
+ })) && $vo39(input["multipart/form-data"], _path + "[\"multipart/form-data\"]", true && _exceptionable) || $report(_exceptionable, {
1273
+ path: _path + "[\"multipart/form-data\"]",
1274
+ expected: "(__type.o3 | undefined)",
1275
+ value: input["multipart/form-data"]
1276
+ }), undefined === input["*/*"] || ("object" === typeof input["*/*"] && null !== input["*/*"] || $report(_exceptionable, {
1277
+ path: _path + "[\"*/*\"]",
1278
+ expected: "(__type.o4 | undefined)",
1279
+ value: input["*/*"]
1280
+ })) && $vo40(input["*/*"], _path + "[\"*/*\"]", true && _exceptionable) || $report(_exceptionable, {
1281
+ path: _path + "[\"*/*\"]",
1282
+ expected: "(__type.o4 | undefined)",
1283
+ value: input["*/*"]
1284
+ })].every(flag => flag);
1285
+ const $vo36 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1286
+ path: _path + ".schema",
1287
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1288
+ value: input.schema
1289
+ })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1290
+ path: _path + ".schema",
1291
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1292
+ value: input.schema
1293
+ })].every(flag => flag);
1294
+ const $vo37 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1295
+ path: _path + ".schema",
1296
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1297
+ value: input.schema
1298
+ })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1299
+ path: _path + ".schema",
1300
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1301
+ value: input.schema
1302
+ })].every(flag => flag);
1303
+ const $vo38 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1304
+ path: _path + ".schema",
1305
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1306
+ value: input.schema
1307
+ })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1308
+ path: _path + ".schema",
1309
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1310
+ value: input.schema
1311
+ })].every(flag => flag);
1312
+ const $vo39 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1313
+ path: _path + ".schema",
1314
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1315
+ value: input.schema
1316
+ })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1317
+ path: _path + ".schema",
1318
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1319
+ value: input.schema
1320
+ })].every(flag => flag);
1321
+ const $vo40 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1322
+ path: _path + ".schema",
1323
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1324
+ value: input.schema
1325
+ })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1326
+ path: _path + ".schema",
1327
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1328
+ value: input.schema
1329
+ })].every(flag => flag);
1330
+ const $vo41 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1331
+ const value = input[key];
1332
+ if (undefined === value)
1333
+ return true;
1334
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
1335
+ path: _path + $join(key),
1336
+ expected: "__type.o5",
1337
+ value: value
1338
+ })) && $vo42(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
1339
+ path: _path + $join(key),
1340
+ expected: "__type.o5",
1341
+ value: value
1342
+ });
1343
+ }).every(flag => flag)].every(flag => flag);
1344
+ const $vo42 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1345
+ path: _path + ".description",
1346
+ expected: "(string | undefined)",
1347
+ value: input.description
1348
+ }), undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
1349
+ path: _path + ".content",
1350
+ expected: "(ISwaggerRoute.IContent | undefined)",
1351
+ value: input.content
1352
+ })) && $vo35(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
1353
+ path: _path + ".content",
1354
+ expected: "(ISwaggerRoute.IContent | undefined)",
1355
+ value: input.content
1356
+ }), undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"] || $report(_exceptionable, {
1357
+ path: _path + "[\"x-nestia-encrypted\"]",
1358
+ expected: "(boolean | undefined)",
1359
+ value: input["x-nestia-encrypted"]
1360
+ })].every(flag => flag);
1361
+ const $vo43 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1362
+ const value = input[key];
1363
+ if (undefined === value)
1364
+ return true;
1365
+ return (Array.isArray(value) || $report(_exceptionable, {
1366
+ path: _path + $join(key),
1367
+ expected: "Array<string>",
1368
+ value: value
1369
+ })) && value.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
1370
+ path: _path + $join(key) + "[" + _index15 + "]",
1371
+ expected: "string",
1372
+ value: elem
1373
+ })).every(flag => flag) || $report(_exceptionable, {
1374
+ path: _path + $join(key),
1375
+ expected: "Array<string>",
1376
+ value: value
1377
+ });
1378
+ }).every(flag => flag)].every(flag => flag);
1379
+ const $vo44 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
1380
+ path: _path + ".name",
1381
+ expected: "string",
1382
+ value: input.name
1383
+ }), undefined === input.text || (Array.isArray(input.text) || $report(_exceptionable, {
1384
+ path: _path + ".text",
1385
+ expected: "(Array<IJsDocTagInfo.IText> | undefined)",
1386
+ value: input.text
1387
+ })) && input.text.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1388
+ path: _path + ".text[" + _index16 + "]",
1389
+ expected: "IJsDocTagInfo.IText",
1390
+ value: elem
1391
+ })) && $vo45(elem, _path + ".text[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
1392
+ path: _path + ".text[" + _index16 + "]",
1393
+ expected: "IJsDocTagInfo.IText",
1394
+ value: elem
1395
+ })).every(flag => flag) || $report(_exceptionable, {
1396
+ path: _path + ".text",
1397
+ expected: "(Array<IJsDocTagInfo.IText> | undefined)",
1398
+ value: input.text
1399
+ })].every(flag => flag);
1400
+ const $vo45 = (input, _path, _exceptionable = true) => ["string" === typeof input.text || $report(_exceptionable, {
1401
+ path: _path + ".text",
1402
+ expected: "string",
1403
+ value: input.text
1404
+ }), "string" === typeof input.kind || $report(_exceptionable, {
1405
+ path: _path + ".kind",
1406
+ expected: "string",
1407
+ value: input.kind
1408
+ })].every(flag => flag);
1409
+ const $vu0 = (input, _path, _exceptionable = true) => (() => {
1406
1410
  if ("null" === input.type)
1407
- return $ao8(input, _path, true && _exceptionable);
1411
+ return $vo8(input, _path, true && _exceptionable);
1408
1412
  else if (undefined !== input.anyOf)
1409
- return $ao9(input, _path, true && _exceptionable);
1413
+ return $vo9(input, _path, true && _exceptionable);
1410
1414
  else if (undefined !== input.oneOf)
1411
- return $ao10(input, _path, true && _exceptionable);
1415
+ return $vo10(input, _path, true && _exceptionable);
1412
1416
  else if ("boolean" === input.type)
1413
- return $ao11(input, _path, true && _exceptionable);
1417
+ return $vo11(input, _path, true && _exceptionable);
1414
1418
  else if ("number" === input.type)
1415
- return $ao13(input, _path, true && _exceptionable);
1419
+ return $vo13(input, _path, true && _exceptionable);
1416
1420
  else if ("integer" === input.type)
1417
- return $ao12(input, _path, true && _exceptionable);
1421
+ return $vo12(input, _path, true && _exceptionable);
1418
1422
  else if ("string" === input.type)
1419
- return $ao14(input, _path, true && _exceptionable);
1423
+ return $vo14(input, _path, true && _exceptionable);
1420
1424
  else if ("array" === input.type)
1421
- return $ao15(input, _path, true && _exceptionable);
1425
+ return $vo15(input, _path, true && _exceptionable);
1422
1426
  else if ("object" === input.type)
1423
- return $ao16(input, _path, true && _exceptionable);
1427
+ return $vo16(input, _path, true && _exceptionable);
1424
1428
  else if (undefined !== input.$ref)
1425
- return $ao17(input, _path, true && _exceptionable);
1429
+ return $vo17(input, _path, true && _exceptionable);
1426
1430
  else
1427
- return $ao7(input, _path, true && _exceptionable);
1431
+ return $vo7(input, _path, true && _exceptionable);
1428
1432
  })();
1429
- const $au1 = (input, _path, _exceptionable = true) => (() => {
1433
+ const $vu1 = (input, _path, _exceptionable = true) => (() => {
1430
1434
  if ("basic" === input.scheme)
1431
- return $ao20(input, _path, true && _exceptionable);
1435
+ return $vo20(input, _path, true && _exceptionable);
1432
1436
  else if ("bearer" === input.scheme)
1433
- return $ao21(input, _path, true && _exceptionable);
1437
+ return $vo21(input, _path, true && _exceptionable);
1434
1438
  else if ("apiKey" === input.type)
1435
- return $ao22(input, _path, true && _exceptionable);
1439
+ return $vo22(input, _path, true && _exceptionable);
1436
1440
  else if ("openIdConnect" === input.type)
1437
- return $ao23(input, _path, true && _exceptionable);
1441
+ return $vo23(input, _path, true && _exceptionable);
1438
1442
  else if ("oauth2" === input.type)
1439
- return $ao24(input, _path, true && _exceptionable);
1443
+ return $vo24(input, _path, true && _exceptionable);
1440
1444
  else
1441
- return $guard(_exceptionable, {
1445
+ return $report(_exceptionable, {
1442
1446
  path: _path,
1443
1447
  expected: "(ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IOpenId | ISwaggerSecurityScheme.IOAuth2)",
1444
1448
  value: input
1445
1449
  });
1446
1450
  })();
1447
- return ("object" === typeof input && null !== input || $guard(true, {
1451
+ return ("object" === typeof input && null !== input || $report(true, {
1448
1452
  path: _path + "",
1449
1453
  expected: "ISwagger",
1450
1454
  value: input
1451
- })) && $ao0(input, _path + "", true) || $guard(true, {
1455
+ })) && $vo0(input, _path + "", true) || $report(true, {
1452
1456
  path: _path + "",
1453
1457
  expected: "ISwagger",
1454
1458
  value: input
1455
1459
  });
1456
1460
  })(input, "$input", true);
1457
- return input;
1461
+ }
1462
+ const success = 0 === errors.length;
1463
+ return {
1464
+ success,
1465
+ errors,
1466
+ data: success ? input : undefined
1467
+ };
1458
1468
  })(swagger);
1469
+ if (result.success)
1470
+ return {
1471
+ success: true,
1472
+ data: new MigrateApplication(swagger),
1473
+ errors: [],
1474
+ };
1475
+ return result;
1459
1476
  }
1460
1477
  nest(config) {
1461
1478
  const program = MigrateAnalyzer_1.MigrateAnalyzer.analyze({