@nestia/migrate 0.10.0 → 0.11.1

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.
Files changed (33) hide show
  1. package/lib/MigrateApplication.d.ts +3 -1
  2. package/lib/MigrateApplication.js +1558 -1601
  3. package/lib/MigrateApplication.js.map +1 -1
  4. package/lib/bundles/NEST_TEMPLATE.js +1 -1
  5. package/lib/internal/MigrateCommander.js +1 -1
  6. package/lib/internal/MigrateCommander.js.map +1 -1
  7. package/lib/structures/ISwaggerV20.d.ts +8 -0
  8. package/lib/structures/ISwaggerV20.js +3 -0
  9. package/lib/structures/ISwaggerV20.js.map +1 -0
  10. package/lib/structures/ISwaggerV31.d.ts +9 -0
  11. package/lib/structures/ISwaggerV31.js +3 -0
  12. package/lib/structures/ISwaggerV31.js.map +1 -0
  13. package/lib/utils/OpenApiConverter.d.ts +7 -0
  14. package/lib/utils/OpenApiConverter.js +3132 -0
  15. package/lib/utils/OpenApiConverter.js.map +1 -0
  16. package/lib/utils/openapi-down-convert/RefVisitor.d.ts +57 -0
  17. package/lib/utils/openapi-down-convert/RefVisitor.js +100 -0
  18. package/lib/utils/openapi-down-convert/RefVisitor.js.map +1 -0
  19. package/lib/utils/openapi-down-convert/converter.d.ts +138 -0
  20. package/lib/utils/openapi-down-convert/converter.js +431 -0
  21. package/lib/utils/openapi-down-convert/converter.js.map +1 -0
  22. package/package.json +11 -7
  23. package/src/MigrateApplication.ts +17 -8
  24. package/src/internal/MigrateCommander.ts +1 -1
  25. package/src/structures/ISwagger.ts +23 -23
  26. package/src/structures/ISwaggerV20.ts +10 -0
  27. package/src/structures/ISwaggerV31.ts +10 -0
  28. package/src/utils/OpenApiConverter.ts +19 -0
  29. package/src/utils/openapi-down-convert/RefVisitor.ts +139 -0
  30. package/src/utils/openapi-down-convert/converter.ts +527 -0
  31. package/lib/utils/SwaggerExplorer.d.ts +0 -0
  32. package/lib/utils/SwaggerExplorer.js +0 -2
  33. package/lib/utils/SwaggerExplorer.js.map +0 -1
@@ -1,4 +1,13 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
13
  };
@@ -12,1641 +21,1589 @@ const MigrateApiProgrammer_1 = require("./programmers/MigrateApiProgrammer");
12
21
  const MigrateApiStartProgrammer_1 = require("./programmers/MigrateApiStartProgrammer");
13
22
  const MigrateE2eProgrammer_1 = require("./programmers/MigrateE2eProgrammer");
14
23
  const MigrateNestProgrammer_1 = require("./programmers/MigrateNestProgrammer");
24
+ const OpenApiConverter_1 = require("./utils/OpenApiConverter");
15
25
  class MigrateApplication {
16
26
  constructor(swagger) {
17
27
  this.swagger = swagger;
18
28
  }
19
29
  static create(swagger) {
20
- const result = (input => {
21
- const errors = [];
22
- const __is = input => {
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) && $io36(input.paths)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io49(elem)));
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;
25
- const $io2 = input => (undefined === input.name || "string" === typeof input.name) && (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))) && (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));
26
- const $io3 = input => "string" === typeof input.name && (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)));
27
- const $io4 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description);
28
- const $io5 = input => (undefined === input.parameters || "object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) && $io6(input.parameters)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io21(input.responses)) && (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && $io18(input.schemas)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && $io25(input.securitySchemes)) && (undefined === input["x-nestia-namespace"] || "string" === typeof input["x-nestia-namespace"]);
29
- const $io6 = input => Object.keys(input).every(key => {
30
- const value = input[key];
31
- if (undefined === value)
32
- return true;
33
- return "object" === typeof value && null !== value && $io7(value);
34
- });
35
- const $io7 = input => (undefined === input.name || "string" === typeof input.name) && ("cookie" === input["in"] || "header" === input["in"] || "path" === input["in"] || "query" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description);
36
- const $io8 = input => null !== input.type && undefined === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
37
- const $io9 = input => "null" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
38
- const $io10 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
39
- const $io11 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
40
- const $io12 = input => (undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "boolean" === typeof elem)) && "boolean" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
41
- const $io13 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295)) && "integer" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
42
- const $io14 = input => (undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf) && "number" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
43
- const $io15 = input => (undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "string" === typeof elem)) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295)) && "string" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
44
- const $io16 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu0(input.items) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 4294967295)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295)) && (undefined === input["x-typia-tuple"] || "object" === typeof input["x-typia-tuple"] && null !== input["x-typia-tuple"] && $io20(input["x-typia-tuple"])) && "array" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
45
- const $io17 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io18(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && $iu0(input.additionalProperties))) && (undefined === input["x-typia-patternProperties"] || "object" === typeof input["x-typia-patternProperties"] && null !== input["x-typia-patternProperties"] && false === Array.isArray(input["x-typia-patternProperties"]) && $io18(input["x-typia-patternProperties"])) && "object" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
46
- const $io18 = input => Object.keys(input).every(key => {
47
- const value = input[key];
48
- if (undefined === value)
49
- return true;
50
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu0(value);
51
- });
52
- const $io19 = input => "string" === typeof input.$ref && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
53
- const $io20 = input => Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && "array" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
54
- const $io21 = input => Object.keys(input).every(key => {
55
- const value = input[key];
56
- if (undefined === value)
57
- return true;
58
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io22(value);
59
- });
60
- const $io22 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io23(input.content));
61
- const $io23 = input => (undefined === input["text/plain"] || "object" === typeof input["text/plain"] && null !== input["text/plain"] && false === Array.isArray(input["text/plain"]) && $io24(input["text/plain"])) && (undefined === input["application/json"] || "object" === typeof input["application/json"] && null !== input["application/json"] && false === Array.isArray(input["application/json"]) && $io24(input["application/json"])) && (undefined === input["application/x-www-form-urlencoded"] || "object" === typeof input["application/x-www-form-urlencoded"] && null !== input["application/x-www-form-urlencoded"] && false === Array.isArray(input["application/x-www-form-urlencoded"]) && $io24(input["application/x-www-form-urlencoded"])) && (undefined === input["multipart/form-data"] || "object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] && false === Array.isArray(input["multipart/form-data"]) && $io24(input["multipart/form-data"])) && (undefined === input["*/*"] || "object" === typeof input["*/*"] && null !== input["*/*"] && false === Array.isArray(input["*/*"]) && $io24(input["*/*"]));
62
- const $io24 = input => undefined === input.schema || "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
63
- const $io25 = input => Object.keys(input).every(key => {
64
- const value = input[key];
65
- if (undefined === value)
66
- return true;
67
- return "object" === typeof value && null !== value && $iu2(value);
68
- });
69
- const $io26 = input => "http" === input.type && "basic" === input.scheme;
70
- const $io27 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat);
71
- const $io28 = input => "apiKey" === input.type && (undefined === input["in"] || "cookie" === input["in"] || "header" === input["in"] || "query" === input["in"]) && (undefined === input.name || "string" === typeof input.name);
72
- const $io29 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl;
73
- const $io30 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io31(input.flows)) && (undefined === input.description || "string" === typeof input.description);
74
- const $io31 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && $io32(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && $io34(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) && $io35(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) && $io35(input.clientCredentials));
75
- const $io32 = input => "string" === typeof input.authorizationUrl && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io33(input.scopes));
76
- const $io33 = input => Object.keys(input).every(key => {
77
- const value = input[key];
78
- if (undefined === value)
79
- return true;
80
- return "string" === typeof value;
81
- });
82
- const $io34 = input => "string" === typeof input.authorizationUrl && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io33(input.scopes));
83
- const $io35 = input => (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io33(input.scopes));
84
- const $io36 = input => Object.keys(input).every(key => {
85
- const value = input[key];
86
- if (undefined === value)
87
- return true;
88
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io37(value);
89
- });
90
- const $io37 = input => (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io38(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io38(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io38(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io38(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io38(input["delete"]));
91
- const $io38 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu1(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && $io40(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io47(input.responses)) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io49(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input["x-nestia-jsDocTags"] || Array.isArray(input["x-nestia-jsDocTags"]) && input["x-nestia-jsDocTags"].every(elem => "object" === typeof elem && null !== elem && $io50(elem)));
92
- const $io39 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref);
93
- const $io40 = input => (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io41(input.content)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"]);
94
- const $io41 = input => (undefined === input["text/plain"] || "object" === typeof input["text/plain"] && null !== input["text/plain"] && $io42(input["text/plain"])) && (undefined === input["application/json"] || "object" === typeof input["application/json"] && null !== input["application/json"] && $io43(input["application/json"])) && (undefined === input["application/x-www-form-urlencoded"] || "object" === typeof input["application/x-www-form-urlencoded"] && null !== input["application/x-www-form-urlencoded"] && $io44(input["application/x-www-form-urlencoded"])) && (undefined === input["multipart/form-data"] || "object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] && $io45(input["multipart/form-data"])) && (undefined === input["*/*"] || "object" === typeof input["*/*"] && null !== input["*/*"] && $io46(input["*/*"]));
95
- const $io42 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
96
- const $io43 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
97
- const $io44 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
98
- const $io45 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
99
- const $io46 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
100
- const $io47 = input => Object.keys(input).every(key => {
101
- const value = input[key];
102
- if (undefined === value)
103
- return true;
104
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io48(value);
105
- });
106
- const $io48 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io41(input.content)) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"]);
107
- const $io49 = input => Object.keys(input).every(key => {
108
- const value = input[key];
109
- if (undefined === value)
110
- return true;
111
- return Array.isArray(value) && value.every(elem => "string" === typeof elem);
112
- });
113
- const $io50 = input => "string" === typeof input.name && (undefined === input.text || Array.isArray(input.text) && input.text.every(elem => "object" === typeof elem && null !== elem && $io51(elem)));
114
- const $io51 = input => "string" === typeof input.text && "string" === typeof input.kind;
115
- const $iu0 = input => (() => {
116
- if ("null" === input.type)
117
- return $io9(input);
118
- else if (undefined !== input.anyOf)
119
- return $io10(input);
120
- else if (undefined !== input.oneOf)
121
- return $io11(input);
122
- else if ("boolean" === input.type)
123
- return $io12(input);
124
- else if ("number" === input.type)
125
- return $io14(input);
126
- else if ("integer" === input.type)
127
- return $io13(input);
128
- else if ("string" === input.type)
129
- return $io15(input);
130
- else if ("array" === input.type)
131
- return $io16(input);
132
- else if ("object" === input.type)
133
- return $io17(input);
134
- else if (undefined !== input.$ref)
135
- return $io19(input);
136
- else
137
- return $io8(input);
138
- })();
139
- const $iu1 = input => (() => {
140
- if (undefined !== input["in"])
141
- return $io7(input);
142
- else if (undefined !== input.$ref)
143
- return $io39(input);
144
- else
145
- return false;
146
- })();
147
- const $iu2 = input => (() => {
148
- if ("basic" === input.scheme)
149
- return $io26(input);
150
- else if ("bearer" === input.scheme)
151
- return $io27(input);
152
- else if ("apiKey" === input.type)
153
- return $io28(input);
154
- else if ("openIdConnect" === input.type)
155
- return $io29(input);
156
- else if ("oauth2" === input.type)
157
- return $io30(input);
158
- else
159
- return false;
160
- })();
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ swagger = (input => {
32
+ const $io0 = input => "2.0" === input.swagger;
161
33
  return "object" === typeof input && null !== input && $io0(input);
162
- };
163
- if (false === __is(input)) {
164
- const $report = typia_1.default.validate.report(errors);
165
- ((input, _path, _exceptionable = true) => {
166
- const $join = typia_1.default.validate.join;
167
- const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) || $report(_exceptionable, {
168
- path: _path + ".openapi",
169
- expected: "`3.0.${number}`",
170
- value: input.openapi
171
- }), ("object" === typeof input.info && null !== input.info || $report(_exceptionable, {
172
- path: _path + ".info",
173
- expected: "ISwaggerInfo",
174
- value: input.info
175
- })) && $vo1(input.info, _path + ".info", true && _exceptionable) || $report(_exceptionable, {
176
- path: _path + ".info",
177
- expected: "ISwaggerInfo",
178
- value: input.info
179
- }), (Array.isArray(input.servers) || $report(_exceptionable, {
180
- path: _path + ".servers",
181
- expected: "Array<ISwagger.IServer>",
182
- value: input.servers
183
- })) && input.servers.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
184
- path: _path + ".servers[" + _index1 + "]",
185
- expected: "ISwagger.IServer",
186
- value: elem
187
- })) && $vo4(elem, _path + ".servers[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
188
- path: _path + ".servers[" + _index1 + "]",
189
- expected: "ISwagger.IServer",
190
- value: elem
191
- })).every(flag => flag) || $report(_exceptionable, {
192
- path: _path + ".servers",
193
- expected: "Array<ISwagger.IServer>",
194
- value: input.servers
195
- }), ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) || $report(_exceptionable, {
196
- path: _path + ".components",
197
- expected: "ISwaggerComponents",
198
- value: input.components
199
- })) && $vo5(input.components, _path + ".components", true && _exceptionable) || $report(_exceptionable, {
200
- path: _path + ".components",
201
- expected: "ISwaggerComponents",
202
- value: input.components
203
- }), ("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) || $report(_exceptionable, {
204
- path: _path + ".paths",
205
- expected: "Record<string, ISwagger.IPath>",
206
- value: input.paths
207
- })) && $vo36(input.paths, _path + ".paths", true && _exceptionable) || $report(_exceptionable, {
208
- path: _path + ".paths",
209
- expected: "Record<string, ISwagger.IPath>",
210
- value: input.paths
211
- }), undefined === input.security || (Array.isArray(input.security) || $report(_exceptionable, {
212
- path: _path + ".security",
213
- expected: "(Array<Record<string, Array<string>>> | undefined)",
214
- value: input.security
215
- })) && input.security.map((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
216
- path: _path + ".security[" + _index2 + "]",
217
- expected: "Record<string, Array<string>>",
218
- value: elem
219
- })) && $vo49(elem, _path + ".security[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
220
- path: _path + ".security[" + _index2 + "]",
221
- expected: "Record<string, Array<string>>",
222
- value: elem
223
- })).every(flag => flag) || $report(_exceptionable, {
224
- path: _path + ".security",
225
- expected: "(Array<Record<string, Array<string>>> | undefined)",
226
- value: input.security
227
- })].every(flag => flag);
228
- const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.title || $report(_exceptionable, {
229
- path: _path + ".title",
230
- expected: "string",
231
- value: input.title
232
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
233
- path: _path + ".description",
234
- expected: "(string | undefined)",
235
- value: input.description
236
- }), 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, {
237
- path: _path + ".termsOfService",
238
- expected: "string & Format<\"uri\">",
239
- value: input.termsOfService
240
- })) || $report(_exceptionable, {
241
- path: _path + ".termsOfService",
242
- expected: "((string & Format<\"uri\">) | undefined)",
243
- value: input.termsOfService
244
- }), undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || $report(_exceptionable, {
245
- path: _path + ".contact",
246
- expected: "(ISwaggerInfo.IContact | undefined)",
247
- value: input.contact
248
- })) && $vo2(input.contact, _path + ".contact", true && _exceptionable) || $report(_exceptionable, {
249
- path: _path + ".contact",
250
- expected: "(ISwaggerInfo.IContact | undefined)",
251
- value: input.contact
252
- }), undefined === input.license || ("object" === typeof input.license && null !== input.license || $report(_exceptionable, {
253
- path: _path + ".license",
254
- expected: "(ISwaggerInfo.ILicense | undefined)",
255
- value: input.license
256
- })) && $vo3(input.license, _path + ".license", true && _exceptionable) || $report(_exceptionable, {
257
- path: _path + ".license",
258
- expected: "(ISwaggerInfo.ILicense | undefined)",
259
- value: input.license
260
- }), "string" === typeof input.version || $report(_exceptionable, {
261
- path: _path + ".version",
262
- expected: "string",
263
- value: input.version
264
- })].every(flag => flag);
265
- const $vo2 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
266
- path: _path + ".name",
267
- expected: "(string | undefined)",
268
- value: input.name
269
- }), 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, {
270
- path: _path + ".url",
271
- expected: "string & Format<\"uri\">",
272
- value: input.url
273
- })) || $report(_exceptionable, {
274
- path: _path + ".url",
275
- expected: "((string & Format<\"uri\">) | undefined)",
276
- value: input.url
277
- }), 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, {
278
- path: _path + ".email",
279
- expected: "string & Format<\"email\">",
280
- value: input.email
281
- })) || $report(_exceptionable, {
282
- path: _path + ".email",
283
- expected: "((string & Format<\"email\">) | undefined)",
284
- value: input.email
285
- })].every(flag => flag);
286
- const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
287
- path: _path + ".name",
288
- expected: "string",
289
- value: input.name
290
- }), 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, {
291
- path: _path + ".url",
292
- expected: "string & Format<\"uri\">",
293
- value: input.url
294
- })) || $report(_exceptionable, {
295
- path: _path + ".url",
296
- expected: "((string & Format<\"uri\">) | undefined)",
297
- value: input.url
298
- })].every(flag => flag);
299
- const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || $report(_exceptionable, {
300
- path: _path + ".url",
301
- expected: "string",
302
- value: input.url
303
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
304
- path: _path + ".description",
305
- expected: "(string | undefined)",
306
- value: input.description
307
- })].every(flag => flag);
308
- const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.parameters || ("object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) || $report(_exceptionable, {
309
- path: _path + ".parameters",
310
- expected: "(Record<string, ISwaggerRouteParameter> | undefined)",
311
- value: input.parameters
312
- })) && $vo6(input.parameters, _path + ".parameters", true && _exceptionable) || $report(_exceptionable, {
313
- path: _path + ".parameters",
314
- expected: "(Record<string, ISwaggerRouteParameter> | undefined)",
315
- value: input.parameters
316
- }), undefined === input.responses || ("object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) || $report(_exceptionable, {
317
- path: _path + ".responses",
318
- expected: "(Record<string, ISwaggerRouteResponse> | undefined)",
319
- value: input.responses
320
- })) && $vo21(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
321
- path: _path + ".responses",
322
- expected: "(Record<string, ISwaggerRouteResponse> | undefined)",
323
- value: input.responses
324
- }), undefined === input.schemas || ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || $report(_exceptionable, {
325
- path: _path + ".schemas",
326
- expected: "(Record<string, ISwaggerSchema> | undefined)",
327
- value: input.schemas
328
- })) && $vo18(input.schemas, _path + ".schemas", true && _exceptionable) || $report(_exceptionable, {
329
- path: _path + ".schemas",
330
- expected: "(Record<string, ISwaggerSchema> | undefined)",
331
- value: input.schemas
332
- }), undefined === input.securitySchemes || ("object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) || $report(_exceptionable, {
333
- path: _path + ".securitySchemes",
334
- expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
335
- value: input.securitySchemes
336
- })) && $vo25(input.securitySchemes, _path + ".securitySchemes", true && _exceptionable) || $report(_exceptionable, {
337
- path: _path + ".securitySchemes",
338
- expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
339
- value: input.securitySchemes
340
- }), undefined === input["x-nestia-namespace"] || "string" === typeof input["x-nestia-namespace"] || $report(_exceptionable, {
341
- path: _path + "[\"x-nestia-namespace\"]",
342
- expected: "(string | undefined)",
343
- value: input["x-nestia-namespace"]
344
- })].every(flag => flag);
345
- const $vo6 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
346
- const value = input[key];
347
- if (undefined === value)
348
- return true;
349
- return ("object" === typeof value && null !== value || $report(_exceptionable, {
350
- path: _path + $join(key),
351
- expected: "ISwaggerRouteParameter",
352
- value: value
353
- })) && $vo7(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
354
- path: _path + $join(key),
355
- expected: "ISwaggerRouteParameter",
356
- value: value
357
- });
358
- }).every(flag => flag)].every(flag => flag);
359
- const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
360
- path: _path + ".name",
361
- expected: "(string | undefined)",
362
- value: input.name
363
- }), "cookie" === input["in"] || "header" === input["in"] || "path" === input["in"] || "query" === input["in"] || $report(_exceptionable, {
364
- path: _path + "[\"in\"]",
365
- expected: "(\"cookie\" | \"header\" | \"path\" | \"query\")",
366
- value: input["in"]
367
- }), ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
368
- path: _path + ".schema",
369
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
370
- value: input.schema
371
- })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
372
- path: _path + ".schema",
373
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
374
- value: input.schema
375
- }), undefined === input.required || "boolean" === typeof input.required || $report(_exceptionable, {
376
- path: _path + ".required",
377
- expected: "(boolean | undefined)",
378
- value: input.required
379
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
380
- path: _path + ".description",
381
- expected: "(string | undefined)",
382
- value: input.description
383
- })].every(flag => flag);
384
- const $vo8 = (input, _path, _exceptionable = true) => [(null !== input.type || $report(_exceptionable, {
385
- path: _path + ".type",
386
- expected: "undefined",
387
- value: input.type
388
- })) && (undefined === input.type || $report(_exceptionable, {
389
- path: _path + ".type",
390
- expected: "undefined",
391
- value: input.type
392
- })), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
393
- path: _path + ".title",
394
- expected: "(string | undefined)",
395
- value: input.title
396
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
397
- path: _path + ".description",
398
- expected: "(string | undefined)",
399
- value: input.description
400
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
401
- path: _path + ".deprecated",
402
- expected: "(boolean | undefined)",
403
- value: input.deprecated
404
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
405
- path: _path + "[\"x-typia-optional\"]",
406
- expected: "(boolean | undefined)",
407
- value: input["x-typia-optional"]
408
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
409
- path: _path + "[\"x-typia-rest\"]",
410
- expected: "(boolean | undefined)",
411
- value: input["x-typia-rest"]
412
- })].every(flag => flag);
413
- const $vo9 = (input, _path, _exceptionable = true) => ["null" === input.type || $report(_exceptionable, {
414
- path: _path + ".type",
415
- expected: "\"null\"",
416
- value: input.type
417
- }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
418
- path: _path + ".title",
419
- expected: "(string | undefined)",
420
- value: input.title
421
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
422
- path: _path + ".description",
423
- expected: "(string | undefined)",
424
- value: input.description
425
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
426
- path: _path + ".deprecated",
427
- expected: "(boolean | undefined)",
428
- value: input.deprecated
429
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
430
- path: _path + "[\"x-typia-optional\"]",
431
- expected: "(boolean | undefined)",
432
- value: input["x-typia-optional"]
433
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
434
- path: _path + "[\"x-typia-rest\"]",
435
- expected: "(boolean | undefined)",
436
- value: input["x-typia-rest"]
437
- })].every(flag => flag);
438
- const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.anyOf) || $report(_exceptionable, {
439
- path: _path + ".anyOf",
440
- expected: "Array<ISwaggerSchema>",
441
- value: input.anyOf
442
- })) && input.anyOf.map((elem, _index3) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
443
- path: _path + ".anyOf[" + _index3 + "]",
444
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
445
- value: elem
446
- })) && $vu0(elem, _path + ".anyOf[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
447
- path: _path + ".anyOf[" + _index3 + "]",
448
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
449
- value: elem
450
- })).every(flag => flag) || $report(_exceptionable, {
451
- path: _path + ".anyOf",
452
- expected: "Array<ISwaggerSchema>",
453
- value: input.anyOf
454
- }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
455
- path: _path + ".title",
456
- expected: "(string | undefined)",
457
- value: input.title
458
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
459
- path: _path + ".description",
460
- expected: "(string | undefined)",
461
- value: input.description
462
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
463
- path: _path + ".deprecated",
464
- expected: "(boolean | undefined)",
465
- value: input.deprecated
466
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
467
- path: _path + "[\"x-typia-optional\"]",
468
- expected: "(boolean | undefined)",
469
- value: input["x-typia-optional"]
470
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
471
- path: _path + "[\"x-typia-rest\"]",
472
- expected: "(boolean | undefined)",
473
- value: input["x-typia-rest"]
474
- })].every(flag => flag);
475
- const $vo11 = (input, _path, _exceptionable = true) => [(Array.isArray(input.oneOf) || $report(_exceptionable, {
476
- path: _path + ".oneOf",
477
- expected: "Array<ISwaggerSchema>",
478
- value: input.oneOf
479
- })) && input.oneOf.map((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
480
- path: _path + ".oneOf[" + _index4 + "]",
481
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
482
- value: elem
483
- })) && $vu0(elem, _path + ".oneOf[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
484
- path: _path + ".oneOf[" + _index4 + "]",
485
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
486
- value: elem
487
- })).every(flag => flag) || $report(_exceptionable, {
488
- path: _path + ".oneOf",
489
- expected: "Array<ISwaggerSchema>",
490
- value: input.oneOf
491
- }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
492
- path: _path + ".title",
493
- expected: "(string | undefined)",
494
- value: input.title
495
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
496
- path: _path + ".description",
497
- expected: "(string | undefined)",
498
- value: input.description
499
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
500
- path: _path + ".deprecated",
501
- expected: "(boolean | undefined)",
502
- value: input.deprecated
503
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
504
- path: _path + "[\"x-typia-optional\"]",
505
- expected: "(boolean | undefined)",
506
- value: input["x-typia-optional"]
507
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
508
- path: _path + "[\"x-typia-rest\"]",
509
- expected: "(boolean | undefined)",
510
- value: input["x-typia-rest"]
511
- })].every(flag => flag);
512
- const $vo12 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "boolean" === typeof input["default"] || $report(_exceptionable, {
513
- path: _path + "[\"default\"]",
514
- expected: "(boolean | undefined)",
515
- value: input["default"]
516
- }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
517
- path: _path + "[\"enum\"]",
518
- expected: "(Array<boolean> | undefined)",
519
- value: input["enum"]
520
- })) && input["enum"].map((elem, _index5) => "boolean" === typeof elem || $report(_exceptionable, {
521
- path: _path + "[\"enum\"][" + _index5 + "]",
522
- expected: "boolean",
523
- value: elem
524
- })).every(flag => flag) || $report(_exceptionable, {
525
- path: _path + "[\"enum\"]",
526
- expected: "(Array<boolean> | undefined)",
527
- value: input["enum"]
528
- }), "boolean" === input.type || $report(_exceptionable, {
529
- path: _path + ".type",
530
- expected: "\"boolean\"",
531
- value: input.type
532
- }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
533
- path: _path + ".nullable",
534
- expected: "(boolean | undefined)",
535
- value: input.nullable
536
- }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
537
- path: _path + ".title",
538
- expected: "(string | undefined)",
539
- value: input.title
540
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
541
- path: _path + ".description",
542
- expected: "(string | undefined)",
543
- value: input.description
544
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
545
- path: _path + ".deprecated",
546
- expected: "(boolean | undefined)",
547
- value: input.deprecated
548
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
549
- path: _path + "[\"x-typia-optional\"]",
550
- expected: "(boolean | undefined)",
551
- value: input["x-typia-optional"]
552
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
553
- path: _path + "[\"x-typia-rest\"]",
554
- expected: "(boolean | undefined)",
555
- value: input["x-typia-rest"]
556
- })].every(flag => flag);
557
- const $vo13 = (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, {
558
- path: _path + "[\"default\"]",
559
- expected: "number & Type<\"int32\">",
560
- value: input["default"]
561
- })) || $report(_exceptionable, {
562
- path: _path + "[\"default\"]",
563
- expected: "((number & Type<\"int32\">) | undefined)",
564
- value: input["default"]
565
- }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
566
- path: _path + "[\"enum\"]",
567
- expected: "(Array<number> | undefined)",
568
- value: input["enum"]
569
- })) && input["enum"].map((elem, _index6) => "number" === typeof elem || $report(_exceptionable, {
570
- path: _path + "[\"enum\"][" + _index6 + "]",
571
- expected: "number",
572
- value: elem
573
- })).every(flag => flag) || $report(_exceptionable, {
574
- path: _path + "[\"enum\"]",
575
- expected: "(Array<number> | undefined)",
576
- value: input["enum"]
577
- }), undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647 || $report(_exceptionable, {
578
- path: _path + ".minimum",
579
- expected: "number & Type<\"int32\">",
580
- value: input.minimum
581
- })) || $report(_exceptionable, {
582
- path: _path + ".minimum",
583
- expected: "((number & Type<\"int32\">) | undefined)",
584
- value: input.minimum
585
- }), undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647 || $report(_exceptionable, {
586
- path: _path + ".maximum",
587
- expected: "number & Type<\"int32\">",
588
- value: input.maximum
589
- })) || $report(_exceptionable, {
590
- path: _path + ".maximum",
591
- expected: "((number & Type<\"int32\">) | undefined)",
592
- value: input.maximum
593
- }), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || $report(_exceptionable, {
594
- path: _path + ".exclusiveMinimum",
595
- expected: "(boolean | undefined)",
596
- value: input.exclusiveMinimum
597
- }), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || $report(_exceptionable, {
598
- path: _path + ".exclusiveMaximum",
599
- expected: "(boolean | undefined)",
600
- value: input.exclusiveMaximum
601
- }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295 || $report(_exceptionable, {
602
- path: _path + ".multipleOf",
603
- expected: "number & Type<\"uint32\">",
604
- value: input.multipleOf
605
- })) || $report(_exceptionable, {
606
- path: _path + ".multipleOf",
607
- expected: "((number & Type<\"uint32\">) | undefined)",
608
- value: input.multipleOf
609
- }), "integer" === input.type || $report(_exceptionable, {
610
- path: _path + ".type",
611
- expected: "\"integer\"",
612
- value: input.type
613
- }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
614
- path: _path + ".nullable",
615
- expected: "(boolean | undefined)",
616
- value: input.nullable
617
- }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
618
- path: _path + ".title",
619
- expected: "(string | undefined)",
620
- value: input.title
621
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
622
- path: _path + ".description",
623
- expected: "(string | undefined)",
624
- value: input.description
625
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
626
- path: _path + ".deprecated",
627
- expected: "(boolean | undefined)",
628
- value: input.deprecated
629
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
630
- path: _path + "[\"x-typia-optional\"]",
631
- expected: "(boolean | undefined)",
632
- value: input["x-typia-optional"]
633
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
634
- path: _path + "[\"x-typia-rest\"]",
635
- expected: "(boolean | undefined)",
636
- value: input["x-typia-rest"]
637
- })].every(flag => flag);
638
- const $vo14 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] || $report(_exceptionable, {
639
- path: _path + "[\"default\"]",
640
- expected: "(number | undefined)",
641
- value: input["default"]
642
- }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
643
- path: _path + "[\"enum\"]",
644
- expected: "(Array<number> | undefined)",
645
- value: input["enum"]
646
- })) && input["enum"].map((elem, _index7) => "number" === typeof elem || $report(_exceptionable, {
647
- path: _path + "[\"enum\"][" + _index7 + "]",
648
- expected: "number",
649
- value: elem
650
- })).every(flag => flag) || $report(_exceptionable, {
651
- path: _path + "[\"enum\"]",
652
- expected: "(Array<number> | undefined)",
653
- value: input["enum"]
654
- }), undefined === input.minimum || "number" === typeof input.minimum || $report(_exceptionable, {
655
- path: _path + ".minimum",
656
- expected: "(number | undefined)",
657
- value: input.minimum
658
- }), undefined === input.maximum || "number" === typeof input.maximum || $report(_exceptionable, {
659
- path: _path + ".maximum",
660
- expected: "(number | undefined)",
661
- value: input.maximum
662
- }), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || $report(_exceptionable, {
663
- path: _path + ".exclusiveMinimum",
664
- expected: "(boolean | undefined)",
665
- value: input.exclusiveMinimum
666
- }), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || $report(_exceptionable, {
667
- path: _path + ".exclusiveMaximum",
668
- expected: "(boolean | undefined)",
669
- value: input.exclusiveMaximum
670
- }), undefined === input.multipleOf || "number" === typeof input.multipleOf || $report(_exceptionable, {
671
- path: _path + ".multipleOf",
672
- expected: "(number | undefined)",
673
- value: input.multipleOf
674
- }), "number" === input.type || $report(_exceptionable, {
675
- path: _path + ".type",
676
- expected: "\"number\"",
677
- value: input.type
678
- }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
679
- path: _path + ".nullable",
680
- expected: "(boolean | undefined)",
681
- value: input.nullable
682
- }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
683
- path: _path + ".title",
684
- expected: "(string | undefined)",
685
- value: input.title
686
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
687
- path: _path + ".description",
688
- expected: "(string | undefined)",
689
- value: input.description
690
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
691
- path: _path + ".deprecated",
692
- expected: "(boolean | undefined)",
693
- value: input.deprecated
694
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
695
- path: _path + "[\"x-typia-optional\"]",
696
- expected: "(boolean | undefined)",
697
- value: input["x-typia-optional"]
698
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
699
- path: _path + "[\"x-typia-rest\"]",
700
- expected: "(boolean | undefined)",
701
- value: input["x-typia-rest"]
702
- })].every(flag => flag);
703
- const $vo15 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "string" === typeof input["default"] || $report(_exceptionable, {
704
- path: _path + "[\"default\"]",
705
- expected: "(string | undefined)",
706
- value: input["default"]
707
- }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
708
- path: _path + "[\"enum\"]",
709
- expected: "(Array<string> | undefined)",
710
- value: input["enum"]
711
- })) && input["enum"].map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
712
- path: _path + "[\"enum\"][" + _index8 + "]",
713
- expected: "string",
714
- value: elem
715
- })).every(flag => flag) || $report(_exceptionable, {
716
- path: _path + "[\"enum\"]",
717
- expected: "(Array<string> | undefined)",
718
- value: input["enum"]
719
- }), undefined === input.format || "string" === typeof input.format || $report(_exceptionable, {
720
- path: _path + ".format",
721
- expected: "(string | undefined)",
722
- value: input.format
723
- }), undefined === input.pattern || "string" === typeof input.pattern || $report(_exceptionable, {
724
- path: _path + ".pattern",
725
- expected: "(string | undefined)",
726
- value: input.pattern
727
- }), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295 || $report(_exceptionable, {
728
- path: _path + ".minLength",
729
- expected: "number & Type<\"uint32\">",
730
- value: input.minLength
731
- })) || $report(_exceptionable, {
732
- path: _path + ".minLength",
733
- expected: "((number & Type<\"uint32\">) | undefined)",
734
- value: input.minLength
735
- }), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295 || $report(_exceptionable, {
736
- path: _path + ".maxLength",
737
- expected: "number & Type<\"uint32\">",
738
- value: input.maxLength
739
- })) || $report(_exceptionable, {
740
- path: _path + ".maxLength",
741
- expected: "((number & Type<\"uint32\">) | undefined)",
742
- value: input.maxLength
743
- }), "string" === input.type || $report(_exceptionable, {
744
- path: _path + ".type",
745
- expected: "\"string\"",
746
- value: input.type
747
- }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
748
- path: _path + ".nullable",
749
- expected: "(boolean | undefined)",
750
- value: input.nullable
751
- }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
752
- path: _path + ".title",
753
- expected: "(string | undefined)",
754
- value: input.title
755
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
756
- path: _path + ".description",
757
- expected: "(string | undefined)",
758
- value: input.description
759
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
760
- path: _path + ".deprecated",
761
- expected: "(boolean | undefined)",
762
- value: input.deprecated
763
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
764
- path: _path + "[\"x-typia-optional\"]",
765
- expected: "(boolean | undefined)",
766
- value: input["x-typia-optional"]
767
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
768
- path: _path + "[\"x-typia-rest\"]",
769
- expected: "(boolean | undefined)",
770
- value: input["x-typia-rest"]
771
- })].every(flag => flag);
772
- const $vo16 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $report(_exceptionable, {
773
- path: _path + ".items",
774
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
775
- value: input.items
776
- })) && $vu0(input.items, _path + ".items", true && _exceptionable) || $report(_exceptionable, {
777
- path: _path + ".items",
778
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
779
- value: input.items
780
- }), undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 4294967295 || $report(_exceptionable, {
781
- path: _path + ".minItems",
782
- expected: "number & Type<\"uint32\">",
783
- value: input.minItems
784
- })) || $report(_exceptionable, {
785
- path: _path + ".minItems",
786
- expected: "((number & Type<\"uint32\">) | undefined)",
787
- value: input.minItems
788
- }), undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295 || $report(_exceptionable, {
789
- path: _path + ".maxItems",
790
- expected: "number & Type<\"uint32\">",
791
- value: input.maxItems
792
- })) || $report(_exceptionable, {
793
- path: _path + ".maxItems",
794
- expected: "((number & Type<\"uint32\">) | undefined)",
795
- value: input.maxItems
796
- }), undefined === input["x-typia-tuple"] || ("object" === typeof input["x-typia-tuple"] && null !== input["x-typia-tuple"] || $report(_exceptionable, {
797
- path: _path + "[\"x-typia-tuple\"]",
798
- expected: "(ISwaggerSchema.ITuple | undefined)",
799
- value: input["x-typia-tuple"]
800
- })) && $vo20(input["x-typia-tuple"], _path + "[\"x-typia-tuple\"]", true && _exceptionable) || $report(_exceptionable, {
801
- path: _path + "[\"x-typia-tuple\"]",
802
- expected: "(ISwaggerSchema.ITuple | undefined)",
803
- value: input["x-typia-tuple"]
804
- }), "array" === input.type || $report(_exceptionable, {
805
- path: _path + ".type",
806
- expected: "\"array\"",
807
- value: input.type
808
- }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
809
- path: _path + ".nullable",
810
- expected: "(boolean | undefined)",
811
- value: input.nullable
812
- }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
813
- path: _path + ".title",
814
- expected: "(string | undefined)",
815
- value: input.title
816
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
817
- path: _path + ".description",
818
- expected: "(string | undefined)",
819
- value: input.description
820
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
821
- path: _path + ".deprecated",
822
- expected: "(boolean | undefined)",
823
- value: input.deprecated
824
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
825
- path: _path + "[\"x-typia-optional\"]",
826
- expected: "(boolean | undefined)",
827
- value: input["x-typia-optional"]
828
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
829
- path: _path + "[\"x-typia-rest\"]",
830
- expected: "(boolean | undefined)",
831
- value: input["x-typia-rest"]
832
- })].every(flag => flag);
833
- const $vo17 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $report(_exceptionable, {
834
- path: _path + ".properties",
835
- expected: "(Record<string, ISwaggerSchema> | undefined)",
836
- value: input.properties
837
- })) && $vo18(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
838
- path: _path + ".properties",
839
- expected: "(Record<string, ISwaggerSchema> | undefined)",
840
- value: input.properties
841
- }), undefined === input.required || (Array.isArray(input.required) || $report(_exceptionable, {
842
- path: _path + ".required",
843
- expected: "(Array<string> | undefined)",
844
- value: input.required
845
- })) && input.required.map((elem, _index9) => "string" === typeof elem || $report(_exceptionable, {
846
- path: _path + ".required[" + _index9 + "]",
847
- expected: "string",
848
- value: elem
849
- })).every(flag => flag) || $report(_exceptionable, {
850
- path: _path + ".required",
851
- expected: "(Array<string> | undefined)",
852
- value: input.required
853
- }), (null !== input.additionalProperties || $report(_exceptionable, {
854
- path: _path + ".additionalProperties",
855
- 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)",
856
- value: input.additionalProperties
857
- })) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || $report(_exceptionable, {
858
- path: _path + ".additionalProperties",
859
- 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)",
860
- value: input.additionalProperties
861
- })) && $vu0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || $report(_exceptionable, {
862
- path: _path + ".additionalProperties",
863
- 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)",
864
- value: input.additionalProperties
865
- })), 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, {
866
- path: _path + "[\"x-typia-patternProperties\"]",
867
- expected: "(Record<string, ISwaggerSchema> | undefined)",
868
- value: input["x-typia-patternProperties"]
869
- })) && $vo18(input["x-typia-patternProperties"], _path + "[\"x-typia-patternProperties\"]", true && _exceptionable) || $report(_exceptionable, {
870
- path: _path + "[\"x-typia-patternProperties\"]",
871
- expected: "(Record<string, ISwaggerSchema> | undefined)",
872
- value: input["x-typia-patternProperties"]
873
- }), "object" === input.type || $report(_exceptionable, {
874
- path: _path + ".type",
875
- expected: "\"object\"",
876
- value: input.type
877
- }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
878
- path: _path + ".nullable",
879
- expected: "(boolean | undefined)",
880
- value: input.nullable
881
- }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
882
- path: _path + ".title",
883
- expected: "(string | undefined)",
884
- value: input.title
885
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
886
- path: _path + ".description",
887
- expected: "(string | undefined)",
888
- value: input.description
889
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
890
- path: _path + ".deprecated",
891
- expected: "(boolean | undefined)",
892
- value: input.deprecated
893
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
894
- path: _path + "[\"x-typia-optional\"]",
895
- expected: "(boolean | undefined)",
896
- value: input["x-typia-optional"]
897
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
898
- path: _path + "[\"x-typia-rest\"]",
899
- expected: "(boolean | undefined)",
900
- value: input["x-typia-rest"]
901
- })].every(flag => flag);
902
- const $vo18 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
903
- const value = input[key];
904
- if (undefined === value)
905
- return true;
906
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
907
- path: _path + $join(key),
908
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
909
- value: value
910
- })) && $vu0(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
911
- path: _path + $join(key),
912
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
913
- value: value
914
- });
915
- }).every(flag => flag)].every(flag => flag);
916
- const $vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || $report(_exceptionable, {
917
- path: _path + ".$ref",
918
- expected: "string",
919
- value: input.$ref
920
- }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
921
- path: _path + ".title",
922
- expected: "(string | undefined)",
923
- value: input.title
924
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
925
- path: _path + ".description",
926
- expected: "(string | undefined)",
927
- value: input.description
928
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
929
- path: _path + ".deprecated",
930
- expected: "(boolean | undefined)",
931
- value: input.deprecated
932
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
933
- path: _path + "[\"x-typia-optional\"]",
934
- expected: "(boolean | undefined)",
935
- value: input["x-typia-optional"]
936
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
937
- path: _path + "[\"x-typia-rest\"]",
938
- expected: "(boolean | undefined)",
939
- value: input["x-typia-rest"]
940
- })].every(flag => flag);
941
- const $vo20 = (input, _path, _exceptionable = true) => [(Array.isArray(input.items) || $report(_exceptionable, {
942
- path: _path + ".items",
943
- expected: "Array<ISwaggerSchema>",
944
- value: input.items
945
- })) && input.items.map((elem, _index10) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
946
- path: _path + ".items[" + _index10 + "]",
947
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
948
- value: elem
949
- })) && $vu0(elem, _path + ".items[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
950
- path: _path + ".items[" + _index10 + "]",
951
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
952
- value: elem
953
- })).every(flag => flag) || $report(_exceptionable, {
954
- path: _path + ".items",
955
- expected: "Array<ISwaggerSchema>",
956
- value: input.items
957
- }), "array" === input.type || $report(_exceptionable, {
958
- path: _path + ".type",
959
- expected: "\"array\"",
960
- value: input.type
961
- }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
962
- path: _path + ".nullable",
963
- expected: "(boolean | undefined)",
964
- value: input.nullable
965
- }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
966
- path: _path + ".title",
967
- expected: "(string | undefined)",
968
- value: input.title
969
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
970
- path: _path + ".description",
971
- expected: "(string | undefined)",
972
- value: input.description
973
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
974
- path: _path + ".deprecated",
975
- expected: "(boolean | undefined)",
976
- value: input.deprecated
977
- }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
978
- path: _path + "[\"x-typia-optional\"]",
979
- expected: "(boolean | undefined)",
980
- value: input["x-typia-optional"]
981
- }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
982
- path: _path + "[\"x-typia-rest\"]",
983
- expected: "(boolean | undefined)",
984
- value: input["x-typia-rest"]
985
- })].every(flag => flag);
986
- const $vo21 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
987
- const value = input[key];
988
- if (undefined === value)
989
- return true;
990
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
991
- path: _path + $join(key),
992
- expected: "ISwaggerRouteResponse",
993
- value: value
994
- })) && $vo22(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
995
- path: _path + $join(key),
996
- expected: "ISwaggerRouteResponse",
997
- value: value
998
- });
999
- }).every(flag => flag)].every(flag => flag);
1000
- const $vo22 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1001
- path: _path + ".description",
1002
- expected: "(string | undefined)",
1003
- value: input.description
1004
- }), undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
1005
- path: _path + ".content",
1006
- expected: "(ISwaggerRouteBodyContent | undefined)",
1007
- value: input.content
1008
- })) && $vo23(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
1009
- path: _path + ".content",
1010
- expected: "(ISwaggerRouteBodyContent | undefined)",
1011
- value: input.content
1012
- })].every(flag => flag);
1013
- const $vo23 = (input, _path, _exceptionable = true) => [undefined === input["text/plain"] || ("object" === typeof input["text/plain"] && null !== input["text/plain"] && false === Array.isArray(input["text/plain"]) || $report(_exceptionable, {
1014
- path: _path + "[\"text/plain\"]",
1015
- expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1016
- value: input["text/plain"]
1017
- })) && $vo24(input["text/plain"], _path + "[\"text/plain\"]", true && _exceptionable) || $report(_exceptionable, {
1018
- path: _path + "[\"text/plain\"]",
1019
- expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1020
- value: input["text/plain"]
1021
- }), undefined === input["application/json"] || ("object" === typeof input["application/json"] && null !== input["application/json"] && false === Array.isArray(input["application/json"]) || $report(_exceptionable, {
1022
- path: _path + "[\"application/json\"]",
1023
- expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1024
- value: input["application/json"]
1025
- })) && $vo24(input["application/json"], _path + "[\"application/json\"]", true && _exceptionable) || $report(_exceptionable, {
1026
- path: _path + "[\"application/json\"]",
1027
- expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1028
- value: input["application/json"]
1029
- }), undefined === input["application/x-www-form-urlencoded"] || ("object" === typeof input["application/x-www-form-urlencoded"] && null !== input["application/x-www-form-urlencoded"] && false === Array.isArray(input["application/x-www-form-urlencoded"]) || $report(_exceptionable, {
1030
- path: _path + "[\"application/x-www-form-urlencoded\"]",
1031
- expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1032
- value: input["application/x-www-form-urlencoded"]
1033
- })) && $vo24(input["application/x-www-form-urlencoded"], _path + "[\"application/x-www-form-urlencoded\"]", true && _exceptionable) || $report(_exceptionable, {
1034
- path: _path + "[\"application/x-www-form-urlencoded\"]",
1035
- expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1036
- value: input["application/x-www-form-urlencoded"]
1037
- }), undefined === input["multipart/form-data"] || ("object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] && false === Array.isArray(input["multipart/form-data"]) || $report(_exceptionable, {
1038
- path: _path + "[\"multipart/form-data\"]",
1039
- expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1040
- value: input["multipart/form-data"]
1041
- })) && $vo24(input["multipart/form-data"], _path + "[\"multipart/form-data\"]", true && _exceptionable) || $report(_exceptionable, {
1042
- path: _path + "[\"multipart/form-data\"]",
1043
- expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1044
- value: input["multipart/form-data"]
1045
- }), undefined === input["*/*"] || ("object" === typeof input["*/*"] && null !== input["*/*"] && false === Array.isArray(input["*/*"]) || $report(_exceptionable, {
1046
- path: _path + "[\"*/*\"]",
1047
- expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1048
- value: input["*/*"]
1049
- })) && $vo24(input["*/*"], _path + "[\"*/*\"]", true && _exceptionable) || $report(_exceptionable, {
1050
- path: _path + "[\"*/*\"]",
1051
- expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1052
- value: input["*/*"]
1053
- })].every(flag => flag);
1054
- const $vo24 = (input, _path, _exceptionable = true) => [undefined === input.schema || ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1055
- path: _path + ".schema",
1056
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | undefined)",
1057
- value: input.schema
1058
- })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1059
- path: _path + ".schema",
1060
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | undefined)",
1061
- value: input.schema
1062
- })].every(flag => flag);
1063
- const $vo25 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1064
- const value = input[key];
1065
- if (undefined === value)
1066
- return true;
1067
- return ("object" === typeof value && null !== value || $report(_exceptionable, {
1068
- path: _path + $join(key),
1069
- expected: "(ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IOAuth2 | ISwaggerSecurityScheme.IOpenId)",
1070
- value: value
1071
- })) && $vu2(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
1072
- path: _path + $join(key),
1073
- expected: "(ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IOAuth2 | ISwaggerSecurityScheme.IOpenId)",
1074
- value: value
1075
- });
1076
- }).every(flag => flag)].every(flag => flag);
1077
- const $vo26 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
1078
- path: _path + ".type",
1079
- expected: "\"http\"",
1080
- value: input.type
1081
- }), "basic" === input.scheme || $report(_exceptionable, {
1082
- path: _path + ".scheme",
1083
- expected: "\"basic\"",
1084
- value: input.scheme
1085
- })].every(flag => flag);
1086
- const $vo27 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
1087
- path: _path + ".type",
1088
- expected: "\"http\"",
1089
- value: input.type
1090
- }), "bearer" === input.scheme || $report(_exceptionable, {
1091
- path: _path + ".scheme",
1092
- expected: "\"bearer\"",
1093
- value: input.scheme
1094
- }), undefined === input.bearerFormat || "string" === typeof input.bearerFormat || $report(_exceptionable, {
1095
- path: _path + ".bearerFormat",
1096
- expected: "(string | undefined)",
1097
- value: input.bearerFormat
1098
- })].every(flag => flag);
1099
- const $vo28 = (input, _path, _exceptionable = true) => ["apiKey" === input.type || $report(_exceptionable, {
1100
- path: _path + ".type",
1101
- expected: "\"apiKey\"",
1102
- value: input.type
1103
- }), undefined === input["in"] || "cookie" === input["in"] || "header" === input["in"] || "query" === input["in"] || $report(_exceptionable, {
1104
- path: _path + "[\"in\"]",
1105
- expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
1106
- value: input["in"]
1107
- }), undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
1108
- path: _path + ".name",
1109
- expected: "(string | undefined)",
1110
- value: input.name
1111
- })].every(flag => flag);
1112
- const $vo29 = (input, _path, _exceptionable = true) => ["openIdConnect" === input.type || $report(_exceptionable, {
1113
- path: _path + ".type",
1114
- expected: "\"openIdConnect\"",
1115
- value: input.type
1116
- }), "string" === typeof input.openIdConnectUrl || $report(_exceptionable, {
1117
- path: _path + ".openIdConnectUrl",
1118
- expected: "string",
1119
- value: input.openIdConnectUrl
1120
- })].every(flag => flag);
1121
- const $vo30 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
1122
- path: _path + ".type",
1123
- expected: "\"oauth2\"",
1124
- value: input.type
1125
- }), ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) || $report(_exceptionable, {
1126
- path: _path + ".flows",
1127
- expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
1128
- value: input.flows
1129
- })) && $vo31(input.flows, _path + ".flows", true && _exceptionable) || $report(_exceptionable, {
1130
- path: _path + ".flows",
1131
- expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
1132
- value: input.flows
1133
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1134
- path: _path + ".description",
1135
- expected: "(string | undefined)",
1136
- value: input.description
1137
- })].every(flag => flag);
1138
- const $vo31 = (input, _path, _exceptionable = true) => [undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode || $report(_exceptionable, {
1139
- path: _path + ".authorizationCode",
1140
- expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
1141
- value: input.authorizationCode
1142
- })) && $vo32(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $report(_exceptionable, {
1143
- path: _path + ".authorizationCode",
1144
- expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
1145
- value: input.authorizationCode
1146
- }), undefined === input.implicit || ("object" === typeof input.implicit && null !== input.implicit || $report(_exceptionable, {
1147
- path: _path + ".implicit",
1148
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
1149
- value: input.implicit
1150
- })) && $vo34(input.implicit, _path + ".implicit", true && _exceptionable) || $report(_exceptionable, {
1151
- path: _path + ".implicit",
1152
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
1153
- value: input.implicit
1154
- }), undefined === input.password || ("object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) || $report(_exceptionable, {
1155
- path: _path + ".password",
1156
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1157
- value: input.password
1158
- })) && $vo35(input.password, _path + ".password", true && _exceptionable) || $report(_exceptionable, {
1159
- path: _path + ".password",
1160
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1161
- value: input.password
1162
- }), undefined === input.clientCredentials || ("object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) || $report(_exceptionable, {
1163
- path: _path + ".clientCredentials",
1164
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1165
- value: input.clientCredentials
1166
- })) && $vo35(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $report(_exceptionable, {
1167
- path: _path + ".clientCredentials",
1168
- expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1169
- value: input.clientCredentials
1170
- })].every(flag => flag);
1171
- const $vo32 = (input, _path, _exceptionable = true) => ["string" === typeof input.authorizationUrl || $report(_exceptionable, {
1172
- path: _path + ".authorizationUrl",
1173
- expected: "string",
1174
- value: input.authorizationUrl
1175
- }), undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $report(_exceptionable, {
1176
- path: _path + ".tokenUrl",
1177
- expected: "(string | undefined)",
1178
- value: input.tokenUrl
1179
- }), undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $report(_exceptionable, {
1180
- path: _path + ".refreshUrl",
1181
- expected: "(string | undefined)",
1182
- value: input.refreshUrl
1183
- }), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
1184
- path: _path + ".scopes",
1185
- expected: "(Record<string, string> | undefined)",
1186
- value: input.scopes
1187
- })) && $vo33(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
1188
- path: _path + ".scopes",
1189
- expected: "(Record<string, string> | undefined)",
1190
- value: input.scopes
1191
- })].every(flag => flag);
1192
- const $vo33 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1193
- const value = input[key];
1194
- if (undefined === value)
1195
- return true;
1196
- return "string" === typeof value || $report(_exceptionable, {
1197
- path: _path + $join(key),
1198
- expected: "string",
1199
- value: value
1200
- });
1201
- }).every(flag => flag)].every(flag => flag);
1202
- const $vo34 = (input, _path, _exceptionable = true) => ["string" === typeof input.authorizationUrl || $report(_exceptionable, {
1203
- path: _path + ".authorizationUrl",
1204
- expected: "string",
1205
- value: input.authorizationUrl
1206
- }), undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $report(_exceptionable, {
1207
- path: _path + ".refreshUrl",
1208
- expected: "(string | undefined)",
1209
- value: input.refreshUrl
1210
- }), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
1211
- path: _path + ".scopes",
1212
- expected: "(Record<string, string> | undefined)",
1213
- value: input.scopes
1214
- })) && $vo33(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
1215
- path: _path + ".scopes",
1216
- expected: "(Record<string, string> | undefined)",
1217
- value: input.scopes
1218
- })].every(flag => flag);
1219
- const $vo35 = (input, _path, _exceptionable = true) => [undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $report(_exceptionable, {
1220
- path: _path + ".tokenUrl",
1221
- expected: "(string | undefined)",
1222
- value: input.tokenUrl
1223
- }), undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $report(_exceptionable, {
1224
- path: _path + ".refreshUrl",
1225
- expected: "(string | undefined)",
1226
- value: input.refreshUrl
1227
- }), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
1228
- path: _path + ".scopes",
1229
- expected: "(Record<string, string> | undefined)",
1230
- value: input.scopes
1231
- })) && $vo33(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
1232
- path: _path + ".scopes",
1233
- expected: "(Record<string, string> | undefined)",
1234
- value: input.scopes
1235
- })].every(flag => flag);
1236
- const $vo36 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1237
- const value = input[key];
1238
- if (undefined === value)
1239
- return true;
1240
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
1241
- path: _path + $join(key),
1242
- expected: "ISwagger.IPath",
1243
- value: value
1244
- })) && $vo37(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
1245
- path: _path + $join(key),
1246
- expected: "ISwagger.IPath",
1247
- value: value
1248
- });
1249
- }).every(flag => flag)].every(flag => flag);
1250
- const $vo37 = (input, _path, _exceptionable = true) => [undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || $report(_exceptionable, {
1251
- path: _path + ".get",
1252
- expected: "(ISwaggerRoute | undefined)",
1253
- value: input.get
1254
- })) && $vo38(input.get, _path + ".get", true && _exceptionable) || $report(_exceptionable, {
1255
- path: _path + ".get",
1256
- expected: "(ISwaggerRoute | undefined)",
1257
- value: input.get
1258
- }), undefined === input.post || ("object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) || $report(_exceptionable, {
1259
- path: _path + ".post",
1260
- expected: "(ISwaggerRoute | undefined)",
1261
- value: input.post
1262
- })) && $vo38(input.post, _path + ".post", true && _exceptionable) || $report(_exceptionable, {
1263
- path: _path + ".post",
1264
- expected: "(ISwaggerRoute | undefined)",
1265
- value: input.post
1266
- }), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
1267
- path: _path + ".patch",
1268
- expected: "(ISwaggerRoute | undefined)",
1269
- value: input.patch
1270
- })) && $vo38(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
1271
- path: _path + ".patch",
1272
- expected: "(ISwaggerRoute | undefined)",
1273
- value: input.patch
1274
- }), undefined === input.put || ("object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) || $report(_exceptionable, {
1275
- path: _path + ".put",
1276
- expected: "(ISwaggerRoute | undefined)",
1277
- value: input.put
1278
- })) && $vo38(input.put, _path + ".put", true && _exceptionable) || $report(_exceptionable, {
1279
- path: _path + ".put",
1280
- expected: "(ISwaggerRoute | undefined)",
1281
- value: input.put
1282
- }), undefined === input["delete"] || ("object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) || $report(_exceptionable, {
1283
- path: _path + "[\"delete\"]",
1284
- expected: "(ISwaggerRoute | undefined)",
1285
- value: input["delete"]
1286
- })) && $vo38(input["delete"], _path + "[\"delete\"]", true && _exceptionable) || $report(_exceptionable, {
1287
- path: _path + "[\"delete\"]",
1288
- expected: "(ISwaggerRoute | undefined)",
1289
- value: input["delete"]
1290
- })].every(flag => flag);
1291
- const $vo38 = (input, _path, _exceptionable = true) => [undefined === input.parameters || (Array.isArray(input.parameters) || $report(_exceptionable, {
1292
- path: _path + ".parameters",
1293
- expected: "(Array<ISwaggerRouteParameter | IReference> | undefined)",
1294
- value: input.parameters
1295
- })) && input.parameters.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1296
- path: _path + ".parameters[" + _index11 + "]",
1297
- expected: "(ISwaggerRouteParameter | ISwaggerRouteParameter.IReference)",
1298
- value: elem
1299
- })) && $vu1(elem, _path + ".parameters[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
1300
- path: _path + ".parameters[" + _index11 + "]",
1301
- expected: "(ISwaggerRouteParameter | ISwaggerRouteParameter.IReference)",
1302
- value: elem
1303
- })).every(flag => flag) || $report(_exceptionable, {
1304
- path: _path + ".parameters",
1305
- expected: "(Array<ISwaggerRouteParameter | IReference> | undefined)",
1306
- value: input.parameters
1307
- }), undefined === input.requestBody || ("object" === typeof input.requestBody && null !== input.requestBody || $report(_exceptionable, {
1308
- path: _path + ".requestBody",
1309
- expected: "(ISwaggerRoute.IRequestBody | undefined)",
1310
- value: input.requestBody
1311
- })) && $vo40(input.requestBody, _path + ".requestBody", true && _exceptionable) || $report(_exceptionable, {
1312
- path: _path + ".requestBody",
1313
- expected: "(ISwaggerRoute.IRequestBody | undefined)",
1314
- value: input.requestBody
1315
- }), undefined === input.responses || ("object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) || $report(_exceptionable, {
1316
- path: _path + ".responses",
1317
- expected: "(ISwaggerRoute.IResponseBody | undefined)",
1318
- value: input.responses
1319
- })) && $vo47(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
1320
- path: _path + ".responses",
1321
- expected: "(ISwaggerRoute.IResponseBody | undefined)",
1322
- value: input.responses
1323
- }), undefined === input.summary || "string" === typeof input.summary || $report(_exceptionable, {
1324
- path: _path + ".summary",
1325
- expected: "(string | undefined)",
1326
- value: input.summary
1327
- }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1328
- path: _path + ".description",
1329
- expected: "(string | undefined)",
1330
- value: input.description
1331
- }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
1332
- path: _path + ".deprecated",
1333
- expected: "(boolean | undefined)",
1334
- value: input.deprecated
1335
- }), undefined === input.security || (Array.isArray(input.security) || $report(_exceptionable, {
1336
- path: _path + ".security",
1337
- expected: "(Array<Record<string, Array<string>>> | undefined)",
1338
- value: input.security
1339
- })) && input.security.map((elem, _index12) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1340
- path: _path + ".security[" + _index12 + "]",
1341
- expected: "Record<string, Array<string>>",
1342
- value: elem
1343
- })) && $vo49(elem, _path + ".security[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
1344
- path: _path + ".security[" + _index12 + "]",
1345
- expected: "Record<string, Array<string>>",
1346
- value: elem
1347
- })).every(flag => flag) || $report(_exceptionable, {
1348
- path: _path + ".security",
1349
- expected: "(Array<Record<string, Array<string>>> | undefined)",
1350
- value: input.security
1351
- }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
1352
- path: _path + ".tags",
1353
- expected: "(Array<string> | undefined)",
1354
- value: input.tags
1355
- })) && input.tags.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
1356
- path: _path + ".tags[" + _index13 + "]",
1357
- expected: "string",
1358
- value: elem
1359
- })).every(flag => flag) || $report(_exceptionable, {
1360
- path: _path + ".tags",
1361
- expected: "(Array<string> | undefined)",
1362
- value: input.tags
1363
- }), undefined === input["x-nestia-jsDocTags"] || (Array.isArray(input["x-nestia-jsDocTags"]) || $report(_exceptionable, {
1364
- path: _path + "[\"x-nestia-jsDocTags\"]",
1365
- expected: "(Array<IJsDocTagInfo> | undefined)",
1366
- value: input["x-nestia-jsDocTags"]
1367
- })) && input["x-nestia-jsDocTags"].map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1368
- path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
1369
- expected: "IJsDocTagInfo",
1370
- value: elem
1371
- })) && $vo50(elem, _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
1372
- path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
1373
- expected: "IJsDocTagInfo",
1374
- value: elem
1375
- })).every(flag => flag) || $report(_exceptionable, {
1376
- path: _path + "[\"x-nestia-jsDocTags\"]",
1377
- expected: "(Array<IJsDocTagInfo> | undefined)",
1378
- value: input["x-nestia-jsDocTags"]
1379
- })].every(flag => flag);
1380
- const $vo39 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) || $report(_exceptionable, {
1381
- path: _path + ".$ref",
1382
- expected: "`#/components/parameters/${string}`",
1383
- value: input.$ref
1384
- })].every(flag => flag);
1385
- const $vo40 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1386
- path: _path + ".description",
1387
- expected: "(string | undefined)",
1388
- value: input.description
1389
- }), ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
1390
- path: _path + ".content",
1391
- expected: "ISwaggerRoute.IContent",
1392
- value: input.content
1393
- })) && $vo41(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
1394
- path: _path + ".content",
1395
- expected: "ISwaggerRoute.IContent",
1396
- value: input.content
1397
- }), undefined === input.required || "boolean" === typeof input.required || $report(_exceptionable, {
1398
- path: _path + ".required",
1399
- expected: "(boolean | undefined)",
1400
- value: input.required
1401
- }), undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"] || $report(_exceptionable, {
1402
- path: _path + "[\"x-nestia-encrypted\"]",
1403
- expected: "(boolean | undefined)",
1404
- value: input["x-nestia-encrypted"]
1405
- })].every(flag => flag);
1406
- const $vo41 = (input, _path, _exceptionable = true) => [undefined === input["text/plain"] || ("object" === typeof input["text/plain"] && null !== input["text/plain"] || $report(_exceptionable, {
1407
- path: _path + "[\"text/plain\"]",
1408
- expected: "(__type | undefined)",
1409
- value: input["text/plain"]
1410
- })) && $vo42(input["text/plain"], _path + "[\"text/plain\"]", true && _exceptionable) || $report(_exceptionable, {
1411
- path: _path + "[\"text/plain\"]",
1412
- expected: "(__type | undefined)",
1413
- value: input["text/plain"]
1414
- }), undefined === input["application/json"] || ("object" === typeof input["application/json"] && null !== input["application/json"] || $report(_exceptionable, {
1415
- path: _path + "[\"application/json\"]",
1416
- expected: "(__type.o1 | undefined)",
1417
- value: input["application/json"]
1418
- })) && $vo43(input["application/json"], _path + "[\"application/json\"]", true && _exceptionable) || $report(_exceptionable, {
1419
- path: _path + "[\"application/json\"]",
1420
- expected: "(__type.o1 | undefined)",
1421
- value: input["application/json"]
1422
- }), undefined === input["application/x-www-form-urlencoded"] || ("object" === typeof input["application/x-www-form-urlencoded"] && null !== input["application/x-www-form-urlencoded"] || $report(_exceptionable, {
1423
- path: _path + "[\"application/x-www-form-urlencoded\"]",
1424
- expected: "(__type.o2 | undefined)",
1425
- value: input["application/x-www-form-urlencoded"]
1426
- })) && $vo44(input["application/x-www-form-urlencoded"], _path + "[\"application/x-www-form-urlencoded\"]", true && _exceptionable) || $report(_exceptionable, {
1427
- path: _path + "[\"application/x-www-form-urlencoded\"]",
1428
- expected: "(__type.o2 | undefined)",
1429
- value: input["application/x-www-form-urlencoded"]
1430
- }), undefined === input["multipart/form-data"] || ("object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] || $report(_exceptionable, {
1431
- path: _path + "[\"multipart/form-data\"]",
1432
- expected: "(__type.o3 | undefined)",
1433
- value: input["multipart/form-data"]
1434
- })) && $vo45(input["multipart/form-data"], _path + "[\"multipart/form-data\"]", true && _exceptionable) || $report(_exceptionable, {
1435
- path: _path + "[\"multipart/form-data\"]",
1436
- expected: "(__type.o3 | undefined)",
1437
- value: input["multipart/form-data"]
1438
- }), undefined === input["*/*"] || ("object" === typeof input["*/*"] && null !== input["*/*"] || $report(_exceptionable, {
1439
- path: _path + "[\"*/*\"]",
1440
- expected: "(__type.o4 | undefined)",
1441
- value: input["*/*"]
1442
- })) && $vo46(input["*/*"], _path + "[\"*/*\"]", true && _exceptionable) || $report(_exceptionable, {
1443
- path: _path + "[\"*/*\"]",
1444
- expected: "(__type.o4 | undefined)",
1445
- value: input["*/*"]
1446
- })].every(flag => flag);
1447
- const $vo42 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1448
- path: _path + ".schema",
1449
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1450
- value: input.schema
1451
- })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1452
- path: _path + ".schema",
1453
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1454
- value: input.schema
1455
- })].every(flag => flag);
1456
- const $vo43 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1457
- path: _path + ".schema",
1458
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1459
- value: input.schema
1460
- })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1461
- path: _path + ".schema",
1462
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1463
- value: input.schema
1464
- })].every(flag => flag);
1465
- const $vo44 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1466
- path: _path + ".schema",
1467
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1468
- value: input.schema
1469
- })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1470
- path: _path + ".schema",
1471
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1472
- value: input.schema
1473
- })].every(flag => flag);
1474
- const $vo45 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1475
- path: _path + ".schema",
1476
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1477
- value: input.schema
1478
- })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1479
- path: _path + ".schema",
1480
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1481
- value: input.schema
1482
- })].every(flag => flag);
1483
- const $vo46 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1484
- path: _path + ".schema",
1485
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1486
- value: input.schema
1487
- })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1488
- path: _path + ".schema",
1489
- expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
1490
- value: input.schema
1491
- })].every(flag => flag);
1492
- const $vo47 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1493
- const value = input[key];
1494
- if (undefined === value)
1495
- return true;
1496
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
1497
- path: _path + $join(key),
1498
- expected: "__type.o5",
1499
- value: value
1500
- })) && $vo48(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
1501
- path: _path + $join(key),
1502
- expected: "__type.o5",
1503
- value: value
1504
- });
1505
- }).every(flag => flag)].every(flag => flag);
1506
- const $vo48 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1507
- path: _path + ".description",
1508
- expected: "(string | undefined)",
1509
- value: input.description
1510
- }), undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
1511
- path: _path + ".content",
1512
- expected: "(ISwaggerRoute.IContent | undefined)",
1513
- value: input.content
1514
- })) && $vo41(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
1515
- path: _path + ".content",
1516
- expected: "(ISwaggerRoute.IContent | undefined)",
1517
- value: input.content
1518
- }), undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"] || $report(_exceptionable, {
1519
- path: _path + "[\"x-nestia-encrypted\"]",
1520
- expected: "(boolean | undefined)",
1521
- value: input["x-nestia-encrypted"]
1522
- })].every(flag => flag);
1523
- const $vo49 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1524
- const value = input[key];
1525
- if (undefined === value)
1526
- return true;
1527
- return (Array.isArray(value) || $report(_exceptionable, {
1528
- path: _path + $join(key),
1529
- expected: "Array<string>",
1530
- value: value
1531
- })) && value.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
1532
- path: _path + $join(key) + "[" + _index15 + "]",
1533
- expected: "string",
1534
- value: elem
1535
- })).every(flag => flag) || $report(_exceptionable, {
1536
- path: _path + $join(key),
1537
- expected: "Array<string>",
1538
- value: value
1539
- });
1540
- }).every(flag => flag)].every(flag => flag);
1541
- const $vo50 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
1542
- path: _path + ".name",
1543
- expected: "string",
1544
- value: input.name
1545
- }), undefined === input.text || (Array.isArray(input.text) || $report(_exceptionable, {
1546
- path: _path + ".text",
1547
- expected: "(Array<IJsDocTagInfo.IText> | undefined)",
1548
- value: input.text
1549
- })) && input.text.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1550
- path: _path + ".text[" + _index16 + "]",
1551
- expected: "IJsDocTagInfo.IText",
1552
- value: elem
1553
- })) && $vo51(elem, _path + ".text[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
1554
- path: _path + ".text[" + _index16 + "]",
1555
- expected: "IJsDocTagInfo.IText",
1556
- value: elem
1557
- })).every(flag => flag) || $report(_exceptionable, {
1558
- path: _path + ".text",
1559
- expected: "(Array<IJsDocTagInfo.IText> | undefined)",
1560
- value: input.text
1561
- })].every(flag => flag);
1562
- const $vo51 = (input, _path, _exceptionable = true) => ["string" === typeof input.text || $report(_exceptionable, {
1563
- path: _path + ".text",
1564
- expected: "string",
1565
- value: input.text
1566
- }), "string" === typeof input.kind || $report(_exceptionable, {
1567
- path: _path + ".kind",
1568
- expected: "string",
1569
- value: input.kind
1570
- })].every(flag => flag);
1571
- const $vu0 = (input, _path, _exceptionable = true) => (() => {
34
+ })(swagger) ? yield OpenApiConverter_1.OpenApiConverter.v2_0(swagger)
35
+ : (input => {
36
+ const $io0 = input => "string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi);
37
+ return "object" === typeof input && null !== input && $io0(input);
38
+ })(swagger) ? OpenApiConverter_1.OpenApiConverter.v3_1(swagger)
39
+ : swagger;
40
+ const result = (input => {
41
+ const errors = [];
42
+ const __is = input => {
43
+ 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) && $io38(input.paths)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io44(elem)));
44
+ 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;
45
+ const $io2 = input => (undefined === input.name || "string" === typeof input.name) && (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))) && (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));
46
+ const $io3 = input => "string" === typeof input.name && (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)));
47
+ const $io4 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description);
48
+ const $io5 = input => (undefined === input.parameters || "object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) && $io6(input.parameters)) && (undefined === input.requestBodies || "object" === typeof input.requestBodies && null !== input.requestBodies && false === Array.isArray(input.requestBodies) && $io21(input.requestBodies)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io25(input.responses)) && (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && $io18(input.schemas)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && $io27(input.securitySchemes)) && (undefined === input["x-nestia-namespace"] || "string" === typeof input["x-nestia-namespace"]);
49
+ const $io6 = input => Object.keys(input).every(key => {
50
+ const value = input[key];
51
+ if (undefined === value)
52
+ return true;
53
+ return "object" === typeof value && null !== value && $io7(value);
54
+ });
55
+ const $io7 = input => (undefined === input.name || "string" === typeof input.name) && ("cookie" === input["in"] || "header" === input["in"] || "path" === input["in"] || "query" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description);
56
+ const $io8 = input => null !== input.type && undefined === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
57
+ const $io9 = input => "null" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
58
+ const $io10 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
59
+ const $io11 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
60
+ const $io12 = input => (undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "boolean" === typeof elem)) && "boolean" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
61
+ const $io13 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295)) && "integer" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
62
+ const $io14 = input => (undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf) && "number" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
63
+ const $io15 = input => (undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "string" === typeof elem)) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295)) && "string" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
64
+ const $io16 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu0(input.items) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 4294967295)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295)) && (undefined === input["x-typia-tuple"] || "object" === typeof input["x-typia-tuple"] && null !== input["x-typia-tuple"] && $io20(input["x-typia-tuple"])) && "array" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
65
+ const $io17 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io18(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && $iu0(input.additionalProperties))) && (undefined === input["x-typia-patternProperties"] || "object" === typeof input["x-typia-patternProperties"] && null !== input["x-typia-patternProperties"] && false === Array.isArray(input["x-typia-patternProperties"]) && $io18(input["x-typia-patternProperties"])) && "object" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
66
+ const $io18 = input => Object.keys(input).every(key => {
67
+ const value = input[key];
68
+ if (undefined === value)
69
+ return true;
70
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu0(value);
71
+ });
72
+ const $io19 = input => "string" === typeof input.$ref && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
73
+ const $io20 = input => Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && "array" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
74
+ const $io21 = input => Object.keys(input).every(key => {
75
+ const value = input[key];
76
+ if (undefined === value)
77
+ return true;
78
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io22(value);
79
+ });
80
+ const $io22 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io23(input.content));
81
+ const $io23 = input => (undefined === input["text/plain"] || "object" === typeof input["text/plain"] && null !== input["text/plain"] && false === Array.isArray(input["text/plain"]) && $io24(input["text/plain"])) && (undefined === input["application/json"] || "object" === typeof input["application/json"] && null !== input["application/json"] && false === Array.isArray(input["application/json"]) && $io24(input["application/json"])) && (undefined === input["application/x-www-form-urlencoded"] || "object" === typeof input["application/x-www-form-urlencoded"] && null !== input["application/x-www-form-urlencoded"] && false === Array.isArray(input["application/x-www-form-urlencoded"]) && $io24(input["application/x-www-form-urlencoded"])) && (undefined === input["multipart/form-data"] || "object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] && false === Array.isArray(input["multipart/form-data"]) && $io24(input["multipart/form-data"])) && (undefined === input["*/*"] || "object" === typeof input["*/*"] && null !== input["*/*"] && false === Array.isArray(input["*/*"]) && $io24(input["*/*"]));
82
+ const $io24 = input => (undefined === input.schema || "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema)) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"]);
83
+ const $io25 = input => Object.keys(input).every(key => {
84
+ const value = input[key];
85
+ if (undefined === value)
86
+ return true;
87
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io26(value);
88
+ });
89
+ const $io26 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io23(input.content));
90
+ const $io27 = input => Object.keys(input).every(key => {
91
+ const value = input[key];
92
+ if (undefined === value)
93
+ return true;
94
+ return "object" === typeof value && null !== value && $iu2(value);
95
+ });
96
+ const $io28 = input => "http" === input.type && "basic" === input.scheme;
97
+ const $io29 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat);
98
+ const $io30 = input => "apiKey" === input.type && (undefined === input["in"] || "cookie" === input["in"] || "header" === input["in"] || "query" === input["in"]) && (undefined === input.name || "string" === typeof input.name);
99
+ const $io31 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl;
100
+ const $io32 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io33(input.flows)) && (undefined === input.description || "string" === typeof input.description);
101
+ const $io33 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && $io34(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && $io36(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) && $io37(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) && $io37(input.clientCredentials));
102
+ const $io34 = input => "string" === typeof input.authorizationUrl && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io35(input.scopes));
103
+ const $io35 = input => Object.keys(input).every(key => {
104
+ const value = input[key];
105
+ if (undefined === value)
106
+ return true;
107
+ return "string" === typeof value;
108
+ });
109
+ const $io36 = input => "string" === typeof input.authorizationUrl && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io35(input.scopes));
110
+ const $io37 = input => (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io35(input.scopes));
111
+ const $io38 = input => Object.keys(input).every(key => {
112
+ const value = input[key];
113
+ if (undefined === value)
114
+ return true;
115
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io39(value);
116
+ });
117
+ const $io39 = input => (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io40(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io40(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io40(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io40(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io40(input["delete"]));
118
+ const $io40 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu1(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && $io22(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io42(input.responses)) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io44(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input["x-nestia-jsDocTags"] || Array.isArray(input["x-nestia-jsDocTags"]) && input["x-nestia-jsDocTags"].every(elem => "object" === typeof elem && null !== elem && $io45(elem)));
119
+ const $io41 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref);
120
+ const $io42 = input => Object.keys(input).every(key => {
121
+ const value = input[key];
122
+ if (undefined === value)
123
+ return true;
124
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu3(value);
125
+ });
126
+ const $io43 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref);
127
+ const $io44 = input => Object.keys(input).every(key => {
128
+ const value = input[key];
129
+ if (undefined === value)
130
+ return true;
131
+ return Array.isArray(value) && value.every(elem => "string" === typeof elem);
132
+ });
133
+ const $io45 = input => "string" === typeof input.name && (undefined === input.text || Array.isArray(input.text) && input.text.every(elem => "object" === typeof elem && null !== elem && $io46(elem)));
134
+ const $io46 = input => "string" === typeof input.text && "string" === typeof input.kind;
135
+ const $iu0 = input => (() => {
1572
136
  if ("null" === input.type)
1573
- return $vo9(input, _path, true && _exceptionable);
137
+ return $io9(input);
1574
138
  else if (undefined !== input.anyOf)
1575
- return $vo10(input, _path, true && _exceptionable);
139
+ return $io10(input);
1576
140
  else if (undefined !== input.oneOf)
1577
- return $vo11(input, _path, true && _exceptionable);
141
+ return $io11(input);
1578
142
  else if ("boolean" === input.type)
1579
- return $vo12(input, _path, true && _exceptionable);
143
+ return $io12(input);
1580
144
  else if ("number" === input.type)
1581
- return $vo14(input, _path, true && _exceptionable);
145
+ return $io14(input);
1582
146
  else if ("integer" === input.type)
1583
- return $vo13(input, _path, true && _exceptionable);
147
+ return $io13(input);
1584
148
  else if ("string" === input.type)
1585
- return $vo15(input, _path, true && _exceptionable);
149
+ return $io15(input);
1586
150
  else if ("array" === input.type)
1587
- return $vo16(input, _path, true && _exceptionable);
151
+ return $io16(input);
1588
152
  else if ("object" === input.type)
1589
- return $vo17(input, _path, true && _exceptionable);
153
+ return $io17(input);
1590
154
  else if (undefined !== input.$ref)
1591
- return $vo19(input, _path, true && _exceptionable);
155
+ return $io19(input);
1592
156
  else
1593
- return $vo8(input, _path, true && _exceptionable);
157
+ return $io8(input);
1594
158
  })();
1595
- const $vu1 = (input, _path, _exceptionable = true) => (() => {
159
+ const $iu1 = input => (() => {
1596
160
  if (undefined !== input["in"])
1597
- return $vo7(input, _path, true && _exceptionable);
161
+ return $io7(input);
1598
162
  else if (undefined !== input.$ref)
1599
- return $vo39(input, _path, true && _exceptionable);
163
+ return $io41(input);
1600
164
  else
1601
- return $report(_exceptionable, {
1602
- path: _path,
1603
- expected: "(ISwaggerRouteParameter | ISwaggerRouteParameter.IReference)",
1604
- value: input
1605
- });
165
+ return false;
1606
166
  })();
1607
- const $vu2 = (input, _path, _exceptionable = true) => (() => {
167
+ const $iu2 = input => (() => {
1608
168
  if ("basic" === input.scheme)
1609
- return $vo26(input, _path, true && _exceptionable);
169
+ return $io28(input);
1610
170
  else if ("bearer" === input.scheme)
1611
- return $vo27(input, _path, true && _exceptionable);
171
+ return $io29(input);
1612
172
  else if ("apiKey" === input.type)
1613
- return $vo28(input, _path, true && _exceptionable);
173
+ return $io30(input);
1614
174
  else if ("openIdConnect" === input.type)
1615
- return $vo29(input, _path, true && _exceptionable);
175
+ return $io31(input);
1616
176
  else if ("oauth2" === input.type)
1617
- return $vo30(input, _path, true && _exceptionable);
177
+ return $io32(input);
1618
178
  else
1619
- return $report(_exceptionable, {
1620
- path: _path,
1621
- expected: "(ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IOpenId | ISwaggerSecurityScheme.IOAuth2)",
1622
- value: input
1623
- });
179
+ return false;
1624
180
  })();
1625
- return ("object" === typeof input && null !== input || $report(true, {
1626
- path: _path + "",
1627
- expected: "ISwagger",
1628
- value: input
1629
- })) && $vo0(input, _path + "", true) || $report(true, {
1630
- path: _path + "",
1631
- expected: "ISwagger",
1632
- value: input
1633
- });
1634
- })(input, "$input", true);
1635
- }
1636
- const success = 0 === errors.length;
1637
- return {
1638
- success,
1639
- errors,
1640
- data: success ? input : undefined
1641
- };
1642
- })(swagger);
1643
- if (result.success)
181
+ const $iu3 = input => (() => {
182
+ if (undefined !== input.$ref)
183
+ return $io43(input);
184
+ else
185
+ return $io26(input);
186
+ })();
187
+ return "object" === typeof input && null !== input && $io0(input);
188
+ };
189
+ if (false === __is(input)) {
190
+ const $report = typia_1.default.validate.report(errors);
191
+ ((input, _path, _exceptionable = true) => {
192
+ const $join = typia_1.default.validate.join;
193
+ const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) || $report(_exceptionable, {
194
+ path: _path + ".openapi",
195
+ expected: "`3.0.${number}`",
196
+ value: input.openapi
197
+ }), ("object" === typeof input.info && null !== input.info || $report(_exceptionable, {
198
+ path: _path + ".info",
199
+ expected: "ISwaggerInfo",
200
+ value: input.info
201
+ })) && $vo1(input.info, _path + ".info", true && _exceptionable) || $report(_exceptionable, {
202
+ path: _path + ".info",
203
+ expected: "ISwaggerInfo",
204
+ value: input.info
205
+ }), (Array.isArray(input.servers) || $report(_exceptionable, {
206
+ path: _path + ".servers",
207
+ expected: "Array<ISwagger.IServer>",
208
+ value: input.servers
209
+ })) && input.servers.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
210
+ path: _path + ".servers[" + _index1 + "]",
211
+ expected: "ISwagger.IServer",
212
+ value: elem
213
+ })) && $vo4(elem, _path + ".servers[" + _index1 + "]", true && _exceptionable) || $report(_exceptionable, {
214
+ path: _path + ".servers[" + _index1 + "]",
215
+ expected: "ISwagger.IServer",
216
+ value: elem
217
+ })).every(flag => flag) || $report(_exceptionable, {
218
+ path: _path + ".servers",
219
+ expected: "Array<ISwagger.IServer>",
220
+ value: input.servers
221
+ }), ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) || $report(_exceptionable, {
222
+ path: _path + ".components",
223
+ expected: "ISwaggerComponents",
224
+ value: input.components
225
+ })) && $vo5(input.components, _path + ".components", true && _exceptionable) || $report(_exceptionable, {
226
+ path: _path + ".components",
227
+ expected: "ISwaggerComponents",
228
+ value: input.components
229
+ }), ("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) || $report(_exceptionable, {
230
+ path: _path + ".paths",
231
+ expected: "Record<string, ISwagger.IPath>",
232
+ value: input.paths
233
+ })) && $vo38(input.paths, _path + ".paths", true && _exceptionable) || $report(_exceptionable, {
234
+ path: _path + ".paths",
235
+ expected: "Record<string, ISwagger.IPath>",
236
+ value: input.paths
237
+ }), undefined === input.security || (Array.isArray(input.security) || $report(_exceptionable, {
238
+ path: _path + ".security",
239
+ expected: "(Array<Record<string, Array<string>>> | undefined)",
240
+ value: input.security
241
+ })) && input.security.map((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
242
+ path: _path + ".security[" + _index2 + "]",
243
+ expected: "Record<string, Array<string>>",
244
+ value: elem
245
+ })) && $vo44(elem, _path + ".security[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
246
+ path: _path + ".security[" + _index2 + "]",
247
+ expected: "Record<string, Array<string>>",
248
+ value: elem
249
+ })).every(flag => flag) || $report(_exceptionable, {
250
+ path: _path + ".security",
251
+ expected: "(Array<Record<string, Array<string>>> | undefined)",
252
+ value: input.security
253
+ })].every(flag => flag);
254
+ const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.title || $report(_exceptionable, {
255
+ path: _path + ".title",
256
+ expected: "string",
257
+ value: input.title
258
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
259
+ path: _path + ".description",
260
+ expected: "(string | undefined)",
261
+ value: input.description
262
+ }), 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, {
263
+ path: _path + ".termsOfService",
264
+ expected: "string & Format<\"uri\">",
265
+ value: input.termsOfService
266
+ })) || $report(_exceptionable, {
267
+ path: _path + ".termsOfService",
268
+ expected: "((string & Format<\"uri\">) | undefined)",
269
+ value: input.termsOfService
270
+ }), undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || $report(_exceptionable, {
271
+ path: _path + ".contact",
272
+ expected: "(ISwaggerInfo.IContact | undefined)",
273
+ value: input.contact
274
+ })) && $vo2(input.contact, _path + ".contact", true && _exceptionable) || $report(_exceptionable, {
275
+ path: _path + ".contact",
276
+ expected: "(ISwaggerInfo.IContact | undefined)",
277
+ value: input.contact
278
+ }), undefined === input.license || ("object" === typeof input.license && null !== input.license || $report(_exceptionable, {
279
+ path: _path + ".license",
280
+ expected: "(ISwaggerInfo.ILicense | undefined)",
281
+ value: input.license
282
+ })) && $vo3(input.license, _path + ".license", true && _exceptionable) || $report(_exceptionable, {
283
+ path: _path + ".license",
284
+ expected: "(ISwaggerInfo.ILicense | undefined)",
285
+ value: input.license
286
+ }), "string" === typeof input.version || $report(_exceptionable, {
287
+ path: _path + ".version",
288
+ expected: "string",
289
+ value: input.version
290
+ })].every(flag => flag);
291
+ const $vo2 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
292
+ path: _path + ".name",
293
+ expected: "(string | undefined)",
294
+ value: input.name
295
+ }), 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, {
296
+ path: _path + ".url",
297
+ expected: "string & Format<\"uri\">",
298
+ value: input.url
299
+ })) || $report(_exceptionable, {
300
+ path: _path + ".url",
301
+ expected: "((string & Format<\"uri\">) | undefined)",
302
+ value: input.url
303
+ }), 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, {
304
+ path: _path + ".email",
305
+ expected: "string & Format<\"email\">",
306
+ value: input.email
307
+ })) || $report(_exceptionable, {
308
+ path: _path + ".email",
309
+ expected: "((string & Format<\"email\">) | undefined)",
310
+ value: input.email
311
+ })].every(flag => flag);
312
+ const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
313
+ path: _path + ".name",
314
+ expected: "string",
315
+ value: input.name
316
+ }), 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, {
317
+ path: _path + ".url",
318
+ expected: "string & Format<\"uri\">",
319
+ value: input.url
320
+ })) || $report(_exceptionable, {
321
+ path: _path + ".url",
322
+ expected: "((string & Format<\"uri\">) | undefined)",
323
+ value: input.url
324
+ })].every(flag => flag);
325
+ const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || $report(_exceptionable, {
326
+ path: _path + ".url",
327
+ expected: "string",
328
+ value: input.url
329
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
330
+ path: _path + ".description",
331
+ expected: "(string | undefined)",
332
+ value: input.description
333
+ })].every(flag => flag);
334
+ const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.parameters || ("object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) || $report(_exceptionable, {
335
+ path: _path + ".parameters",
336
+ expected: "(Record<string, ISwaggerRouteParameter> | undefined)",
337
+ value: input.parameters
338
+ })) && $vo6(input.parameters, _path + ".parameters", true && _exceptionable) || $report(_exceptionable, {
339
+ path: _path + ".parameters",
340
+ expected: "(Record<string, ISwaggerRouteParameter> | undefined)",
341
+ value: input.parameters
342
+ }), undefined === input.requestBodies || ("object" === typeof input.requestBodies && null !== input.requestBodies && false === Array.isArray(input.requestBodies) || $report(_exceptionable, {
343
+ path: _path + ".requestBodies",
344
+ expected: "(Record<string, ISwaggerRouteRequestBody> | undefined)",
345
+ value: input.requestBodies
346
+ })) && $vo21(input.requestBodies, _path + ".requestBodies", true && _exceptionable) || $report(_exceptionable, {
347
+ path: _path + ".requestBodies",
348
+ expected: "(Record<string, ISwaggerRouteRequestBody> | undefined)",
349
+ value: input.requestBodies
350
+ }), undefined === input.responses || ("object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) || $report(_exceptionable, {
351
+ path: _path + ".responses",
352
+ expected: "(Record<string, ISwaggerRouteResponse> | undefined)",
353
+ value: input.responses
354
+ })) && $vo25(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
355
+ path: _path + ".responses",
356
+ expected: "(Record<string, ISwaggerRouteResponse> | undefined)",
357
+ value: input.responses
358
+ }), undefined === input.schemas || ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || $report(_exceptionable, {
359
+ path: _path + ".schemas",
360
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
361
+ value: input.schemas
362
+ })) && $vo18(input.schemas, _path + ".schemas", true && _exceptionable) || $report(_exceptionable, {
363
+ path: _path + ".schemas",
364
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
365
+ value: input.schemas
366
+ }), undefined === input.securitySchemes || ("object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) || $report(_exceptionable, {
367
+ path: _path + ".securitySchemes",
368
+ expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
369
+ value: input.securitySchemes
370
+ })) && $vo27(input.securitySchemes, _path + ".securitySchemes", true && _exceptionable) || $report(_exceptionable, {
371
+ path: _path + ".securitySchemes",
372
+ expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
373
+ value: input.securitySchemes
374
+ }), undefined === input["x-nestia-namespace"] || "string" === typeof input["x-nestia-namespace"] || $report(_exceptionable, {
375
+ path: _path + "[\"x-nestia-namespace\"]",
376
+ expected: "(string | undefined)",
377
+ value: input["x-nestia-namespace"]
378
+ })].every(flag => flag);
379
+ const $vo6 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
380
+ const value = input[key];
381
+ if (undefined === value)
382
+ return true;
383
+ return ("object" === typeof value && null !== value || $report(_exceptionable, {
384
+ path: _path + $join(key),
385
+ expected: "ISwaggerRouteParameter",
386
+ value: value
387
+ })) && $vo7(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
388
+ path: _path + $join(key),
389
+ expected: "ISwaggerRouteParameter",
390
+ value: value
391
+ });
392
+ }).every(flag => flag)].every(flag => flag);
393
+ const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
394
+ path: _path + ".name",
395
+ expected: "(string | undefined)",
396
+ value: input.name
397
+ }), "cookie" === input["in"] || "header" === input["in"] || "path" === input["in"] || "query" === input["in"] || $report(_exceptionable, {
398
+ path: _path + "[\"in\"]",
399
+ expected: "(\"cookie\" | \"header\" | \"path\" | \"query\")",
400
+ value: input["in"]
401
+ }), ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
402
+ path: _path + ".schema",
403
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
404
+ value: input.schema
405
+ })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
406
+ path: _path + ".schema",
407
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
408
+ value: input.schema
409
+ }), undefined === input.required || "boolean" === typeof input.required || $report(_exceptionable, {
410
+ path: _path + ".required",
411
+ expected: "(boolean | undefined)",
412
+ value: input.required
413
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
414
+ path: _path + ".description",
415
+ expected: "(string | undefined)",
416
+ value: input.description
417
+ })].every(flag => flag);
418
+ const $vo8 = (input, _path, _exceptionable = true) => [(null !== input.type || $report(_exceptionable, {
419
+ path: _path + ".type",
420
+ expected: "undefined",
421
+ value: input.type
422
+ })) && (undefined === input.type || $report(_exceptionable, {
423
+ path: _path + ".type",
424
+ expected: "undefined",
425
+ value: input.type
426
+ })), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
427
+ path: _path + ".title",
428
+ expected: "(string | undefined)",
429
+ value: input.title
430
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
431
+ path: _path + ".description",
432
+ expected: "(string | undefined)",
433
+ value: input.description
434
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
435
+ path: _path + ".deprecated",
436
+ expected: "(boolean | undefined)",
437
+ value: input.deprecated
438
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
439
+ path: _path + "[\"x-typia-optional\"]",
440
+ expected: "(boolean | undefined)",
441
+ value: input["x-typia-optional"]
442
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
443
+ path: _path + "[\"x-typia-rest\"]",
444
+ expected: "(boolean | undefined)",
445
+ value: input["x-typia-rest"]
446
+ })].every(flag => flag);
447
+ const $vo9 = (input, _path, _exceptionable = true) => ["null" === input.type || $report(_exceptionable, {
448
+ path: _path + ".type",
449
+ expected: "\"null\"",
450
+ value: input.type
451
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
452
+ path: _path + ".title",
453
+ expected: "(string | undefined)",
454
+ value: input.title
455
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
456
+ path: _path + ".description",
457
+ expected: "(string | undefined)",
458
+ value: input.description
459
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
460
+ path: _path + ".deprecated",
461
+ expected: "(boolean | undefined)",
462
+ value: input.deprecated
463
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
464
+ path: _path + "[\"x-typia-optional\"]",
465
+ expected: "(boolean | undefined)",
466
+ value: input["x-typia-optional"]
467
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
468
+ path: _path + "[\"x-typia-rest\"]",
469
+ expected: "(boolean | undefined)",
470
+ value: input["x-typia-rest"]
471
+ })].every(flag => flag);
472
+ const $vo10 = (input, _path, _exceptionable = true) => [(Array.isArray(input.anyOf) || $report(_exceptionable, {
473
+ path: _path + ".anyOf",
474
+ expected: "Array<ISwaggerSchema>",
475
+ value: input.anyOf
476
+ })) && input.anyOf.map((elem, _index3) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
477
+ path: _path + ".anyOf[" + _index3 + "]",
478
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
479
+ value: elem
480
+ })) && $vu0(elem, _path + ".anyOf[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
481
+ path: _path + ".anyOf[" + _index3 + "]",
482
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
483
+ value: elem
484
+ })).every(flag => flag) || $report(_exceptionable, {
485
+ path: _path + ".anyOf",
486
+ expected: "Array<ISwaggerSchema>",
487
+ value: input.anyOf
488
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
489
+ path: _path + ".title",
490
+ expected: "(string | undefined)",
491
+ value: input.title
492
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
493
+ path: _path + ".description",
494
+ expected: "(string | undefined)",
495
+ value: input.description
496
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
497
+ path: _path + ".deprecated",
498
+ expected: "(boolean | undefined)",
499
+ value: input.deprecated
500
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
501
+ path: _path + "[\"x-typia-optional\"]",
502
+ expected: "(boolean | undefined)",
503
+ value: input["x-typia-optional"]
504
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
505
+ path: _path + "[\"x-typia-rest\"]",
506
+ expected: "(boolean | undefined)",
507
+ value: input["x-typia-rest"]
508
+ })].every(flag => flag);
509
+ const $vo11 = (input, _path, _exceptionable = true) => [(Array.isArray(input.oneOf) || $report(_exceptionable, {
510
+ path: _path + ".oneOf",
511
+ expected: "Array<ISwaggerSchema>",
512
+ value: input.oneOf
513
+ })) && input.oneOf.map((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
514
+ path: _path + ".oneOf[" + _index4 + "]",
515
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
516
+ value: elem
517
+ })) && $vu0(elem, _path + ".oneOf[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
518
+ path: _path + ".oneOf[" + _index4 + "]",
519
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
520
+ value: elem
521
+ })).every(flag => flag) || $report(_exceptionable, {
522
+ path: _path + ".oneOf",
523
+ expected: "Array<ISwaggerSchema>",
524
+ value: input.oneOf
525
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
526
+ path: _path + ".title",
527
+ expected: "(string | undefined)",
528
+ value: input.title
529
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
530
+ path: _path + ".description",
531
+ expected: "(string | undefined)",
532
+ value: input.description
533
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
534
+ path: _path + ".deprecated",
535
+ expected: "(boolean | undefined)",
536
+ value: input.deprecated
537
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
538
+ path: _path + "[\"x-typia-optional\"]",
539
+ expected: "(boolean | undefined)",
540
+ value: input["x-typia-optional"]
541
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
542
+ path: _path + "[\"x-typia-rest\"]",
543
+ expected: "(boolean | undefined)",
544
+ value: input["x-typia-rest"]
545
+ })].every(flag => flag);
546
+ const $vo12 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "boolean" === typeof input["default"] || $report(_exceptionable, {
547
+ path: _path + "[\"default\"]",
548
+ expected: "(boolean | undefined)",
549
+ value: input["default"]
550
+ }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
551
+ path: _path + "[\"enum\"]",
552
+ expected: "(Array<boolean> | undefined)",
553
+ value: input["enum"]
554
+ })) && input["enum"].map((elem, _index5) => "boolean" === typeof elem || $report(_exceptionable, {
555
+ path: _path + "[\"enum\"][" + _index5 + "]",
556
+ expected: "boolean",
557
+ value: elem
558
+ })).every(flag => flag) || $report(_exceptionable, {
559
+ path: _path + "[\"enum\"]",
560
+ expected: "(Array<boolean> | undefined)",
561
+ value: input["enum"]
562
+ }), "boolean" === input.type || $report(_exceptionable, {
563
+ path: _path + ".type",
564
+ expected: "\"boolean\"",
565
+ value: input.type
566
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
567
+ path: _path + ".nullable",
568
+ expected: "(boolean | undefined)",
569
+ value: input.nullable
570
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
571
+ path: _path + ".title",
572
+ expected: "(string | undefined)",
573
+ value: input.title
574
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
575
+ path: _path + ".description",
576
+ expected: "(string | undefined)",
577
+ value: input.description
578
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
579
+ path: _path + ".deprecated",
580
+ expected: "(boolean | undefined)",
581
+ value: input.deprecated
582
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
583
+ path: _path + "[\"x-typia-optional\"]",
584
+ expected: "(boolean | undefined)",
585
+ value: input["x-typia-optional"]
586
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
587
+ path: _path + "[\"x-typia-rest\"]",
588
+ expected: "(boolean | undefined)",
589
+ value: input["x-typia-rest"]
590
+ })].every(flag => flag);
591
+ const $vo13 = (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, {
592
+ path: _path + "[\"default\"]",
593
+ expected: "number & Type<\"int32\">",
594
+ value: input["default"]
595
+ })) || $report(_exceptionable, {
596
+ path: _path + "[\"default\"]",
597
+ expected: "((number & Type<\"int32\">) | undefined)",
598
+ value: input["default"]
599
+ }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
600
+ path: _path + "[\"enum\"]",
601
+ expected: "(Array<number> | undefined)",
602
+ value: input["enum"]
603
+ })) && input["enum"].map((elem, _index6) => "number" === typeof elem || $report(_exceptionable, {
604
+ path: _path + "[\"enum\"][" + _index6 + "]",
605
+ expected: "number",
606
+ value: elem
607
+ })).every(flag => flag) || $report(_exceptionable, {
608
+ path: _path + "[\"enum\"]",
609
+ expected: "(Array<number> | undefined)",
610
+ value: input["enum"]
611
+ }), undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647 || $report(_exceptionable, {
612
+ path: _path + ".minimum",
613
+ expected: "number & Type<\"int32\">",
614
+ value: input.minimum
615
+ })) || $report(_exceptionable, {
616
+ path: _path + ".minimum",
617
+ expected: "((number & Type<\"int32\">) | undefined)",
618
+ value: input.minimum
619
+ }), undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647 || $report(_exceptionable, {
620
+ path: _path + ".maximum",
621
+ expected: "number & Type<\"int32\">",
622
+ value: input.maximum
623
+ })) || $report(_exceptionable, {
624
+ path: _path + ".maximum",
625
+ expected: "((number & Type<\"int32\">) | undefined)",
626
+ value: input.maximum
627
+ }), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || $report(_exceptionable, {
628
+ path: _path + ".exclusiveMinimum",
629
+ expected: "(boolean | undefined)",
630
+ value: input.exclusiveMinimum
631
+ }), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || $report(_exceptionable, {
632
+ path: _path + ".exclusiveMaximum",
633
+ expected: "(boolean | undefined)",
634
+ value: input.exclusiveMaximum
635
+ }), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295 || $report(_exceptionable, {
636
+ path: _path + ".multipleOf",
637
+ expected: "number & Type<\"uint32\">",
638
+ value: input.multipleOf
639
+ })) || $report(_exceptionable, {
640
+ path: _path + ".multipleOf",
641
+ expected: "((number & Type<\"uint32\">) | undefined)",
642
+ value: input.multipleOf
643
+ }), "integer" === input.type || $report(_exceptionable, {
644
+ path: _path + ".type",
645
+ expected: "\"integer\"",
646
+ value: input.type
647
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
648
+ path: _path + ".nullable",
649
+ expected: "(boolean | undefined)",
650
+ value: input.nullable
651
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
652
+ path: _path + ".title",
653
+ expected: "(string | undefined)",
654
+ value: input.title
655
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
656
+ path: _path + ".description",
657
+ expected: "(string | undefined)",
658
+ value: input.description
659
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
660
+ path: _path + ".deprecated",
661
+ expected: "(boolean | undefined)",
662
+ value: input.deprecated
663
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
664
+ path: _path + "[\"x-typia-optional\"]",
665
+ expected: "(boolean | undefined)",
666
+ value: input["x-typia-optional"]
667
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
668
+ path: _path + "[\"x-typia-rest\"]",
669
+ expected: "(boolean | undefined)",
670
+ value: input["x-typia-rest"]
671
+ })].every(flag => flag);
672
+ const $vo14 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] || $report(_exceptionable, {
673
+ path: _path + "[\"default\"]",
674
+ expected: "(number | undefined)",
675
+ value: input["default"]
676
+ }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
677
+ path: _path + "[\"enum\"]",
678
+ expected: "(Array<number> | undefined)",
679
+ value: input["enum"]
680
+ })) && input["enum"].map((elem, _index7) => "number" === typeof elem || $report(_exceptionable, {
681
+ path: _path + "[\"enum\"][" + _index7 + "]",
682
+ expected: "number",
683
+ value: elem
684
+ })).every(flag => flag) || $report(_exceptionable, {
685
+ path: _path + "[\"enum\"]",
686
+ expected: "(Array<number> | undefined)",
687
+ value: input["enum"]
688
+ }), undefined === input.minimum || "number" === typeof input.minimum || $report(_exceptionable, {
689
+ path: _path + ".minimum",
690
+ expected: "(number | undefined)",
691
+ value: input.minimum
692
+ }), undefined === input.maximum || "number" === typeof input.maximum || $report(_exceptionable, {
693
+ path: _path + ".maximum",
694
+ expected: "(number | undefined)",
695
+ value: input.maximum
696
+ }), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || $report(_exceptionable, {
697
+ path: _path + ".exclusiveMinimum",
698
+ expected: "(boolean | undefined)",
699
+ value: input.exclusiveMinimum
700
+ }), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || $report(_exceptionable, {
701
+ path: _path + ".exclusiveMaximum",
702
+ expected: "(boolean | undefined)",
703
+ value: input.exclusiveMaximum
704
+ }), undefined === input.multipleOf || "number" === typeof input.multipleOf || $report(_exceptionable, {
705
+ path: _path + ".multipleOf",
706
+ expected: "(number | undefined)",
707
+ value: input.multipleOf
708
+ }), "number" === input.type || $report(_exceptionable, {
709
+ path: _path + ".type",
710
+ expected: "\"number\"",
711
+ value: input.type
712
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
713
+ path: _path + ".nullable",
714
+ expected: "(boolean | undefined)",
715
+ value: input.nullable
716
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
717
+ path: _path + ".title",
718
+ expected: "(string | undefined)",
719
+ value: input.title
720
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
721
+ path: _path + ".description",
722
+ expected: "(string | undefined)",
723
+ value: input.description
724
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
725
+ path: _path + ".deprecated",
726
+ expected: "(boolean | undefined)",
727
+ value: input.deprecated
728
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
729
+ path: _path + "[\"x-typia-optional\"]",
730
+ expected: "(boolean | undefined)",
731
+ value: input["x-typia-optional"]
732
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
733
+ path: _path + "[\"x-typia-rest\"]",
734
+ expected: "(boolean | undefined)",
735
+ value: input["x-typia-rest"]
736
+ })].every(flag => flag);
737
+ const $vo15 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "string" === typeof input["default"] || $report(_exceptionable, {
738
+ path: _path + "[\"default\"]",
739
+ expected: "(string | undefined)",
740
+ value: input["default"]
741
+ }), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
742
+ path: _path + "[\"enum\"]",
743
+ expected: "(Array<string> | undefined)",
744
+ value: input["enum"]
745
+ })) && input["enum"].map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
746
+ path: _path + "[\"enum\"][" + _index8 + "]",
747
+ expected: "string",
748
+ value: elem
749
+ })).every(flag => flag) || $report(_exceptionable, {
750
+ path: _path + "[\"enum\"]",
751
+ expected: "(Array<string> | undefined)",
752
+ value: input["enum"]
753
+ }), undefined === input.format || "string" === typeof input.format || $report(_exceptionable, {
754
+ path: _path + ".format",
755
+ expected: "(string | undefined)",
756
+ value: input.format
757
+ }), undefined === input.pattern || "string" === typeof input.pattern || $report(_exceptionable, {
758
+ path: _path + ".pattern",
759
+ expected: "(string | undefined)",
760
+ value: input.pattern
761
+ }), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295 || $report(_exceptionable, {
762
+ path: _path + ".minLength",
763
+ expected: "number & Type<\"uint32\">",
764
+ value: input.minLength
765
+ })) || $report(_exceptionable, {
766
+ path: _path + ".minLength",
767
+ expected: "((number & Type<\"uint32\">) | undefined)",
768
+ value: input.minLength
769
+ }), undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295 || $report(_exceptionable, {
770
+ path: _path + ".maxLength",
771
+ expected: "number & Type<\"uint32\">",
772
+ value: input.maxLength
773
+ })) || $report(_exceptionable, {
774
+ path: _path + ".maxLength",
775
+ expected: "((number & Type<\"uint32\">) | undefined)",
776
+ value: input.maxLength
777
+ }), "string" === input.type || $report(_exceptionable, {
778
+ path: _path + ".type",
779
+ expected: "\"string\"",
780
+ value: input.type
781
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
782
+ path: _path + ".nullable",
783
+ expected: "(boolean | undefined)",
784
+ value: input.nullable
785
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
786
+ path: _path + ".title",
787
+ expected: "(string | undefined)",
788
+ value: input.title
789
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
790
+ path: _path + ".description",
791
+ expected: "(string | undefined)",
792
+ value: input.description
793
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
794
+ path: _path + ".deprecated",
795
+ expected: "(boolean | undefined)",
796
+ value: input.deprecated
797
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
798
+ path: _path + "[\"x-typia-optional\"]",
799
+ expected: "(boolean | undefined)",
800
+ value: input["x-typia-optional"]
801
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
802
+ path: _path + "[\"x-typia-rest\"]",
803
+ expected: "(boolean | undefined)",
804
+ value: input["x-typia-rest"]
805
+ })].every(flag => flag);
806
+ const $vo16 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $report(_exceptionable, {
807
+ path: _path + ".items",
808
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
809
+ value: input.items
810
+ })) && $vu0(input.items, _path + ".items", true && _exceptionable) || $report(_exceptionable, {
811
+ path: _path + ".items",
812
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
813
+ value: input.items
814
+ }), undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 4294967295 || $report(_exceptionable, {
815
+ path: _path + ".minItems",
816
+ expected: "number & Type<\"uint32\">",
817
+ value: input.minItems
818
+ })) || $report(_exceptionable, {
819
+ path: _path + ".minItems",
820
+ expected: "((number & Type<\"uint32\">) | undefined)",
821
+ value: input.minItems
822
+ }), undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295 || $report(_exceptionable, {
823
+ path: _path + ".maxItems",
824
+ expected: "number & Type<\"uint32\">",
825
+ value: input.maxItems
826
+ })) || $report(_exceptionable, {
827
+ path: _path + ".maxItems",
828
+ expected: "((number & Type<\"uint32\">) | undefined)",
829
+ value: input.maxItems
830
+ }), undefined === input["x-typia-tuple"] || ("object" === typeof input["x-typia-tuple"] && null !== input["x-typia-tuple"] || $report(_exceptionable, {
831
+ path: _path + "[\"x-typia-tuple\"]",
832
+ expected: "(ISwaggerSchema.ITuple | undefined)",
833
+ value: input["x-typia-tuple"]
834
+ })) && $vo20(input["x-typia-tuple"], _path + "[\"x-typia-tuple\"]", true && _exceptionable) || $report(_exceptionable, {
835
+ path: _path + "[\"x-typia-tuple\"]",
836
+ expected: "(ISwaggerSchema.ITuple | undefined)",
837
+ value: input["x-typia-tuple"]
838
+ }), "array" === input.type || $report(_exceptionable, {
839
+ path: _path + ".type",
840
+ expected: "\"array\"",
841
+ value: input.type
842
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
843
+ path: _path + ".nullable",
844
+ expected: "(boolean | undefined)",
845
+ value: input.nullable
846
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
847
+ path: _path + ".title",
848
+ expected: "(string | undefined)",
849
+ value: input.title
850
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
851
+ path: _path + ".description",
852
+ expected: "(string | undefined)",
853
+ value: input.description
854
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
855
+ path: _path + ".deprecated",
856
+ expected: "(boolean | undefined)",
857
+ value: input.deprecated
858
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
859
+ path: _path + "[\"x-typia-optional\"]",
860
+ expected: "(boolean | undefined)",
861
+ value: input["x-typia-optional"]
862
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
863
+ path: _path + "[\"x-typia-rest\"]",
864
+ expected: "(boolean | undefined)",
865
+ value: input["x-typia-rest"]
866
+ })].every(flag => flag);
867
+ const $vo17 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $report(_exceptionable, {
868
+ path: _path + ".properties",
869
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
870
+ value: input.properties
871
+ })) && $vo18(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
872
+ path: _path + ".properties",
873
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
874
+ value: input.properties
875
+ }), undefined === input.required || (Array.isArray(input.required) || $report(_exceptionable, {
876
+ path: _path + ".required",
877
+ expected: "(Array<string> | undefined)",
878
+ value: input.required
879
+ })) && input.required.map((elem, _index9) => "string" === typeof elem || $report(_exceptionable, {
880
+ path: _path + ".required[" + _index9 + "]",
881
+ expected: "string",
882
+ value: elem
883
+ })).every(flag => flag) || $report(_exceptionable, {
884
+ path: _path + ".required",
885
+ expected: "(Array<string> | undefined)",
886
+ value: input.required
887
+ }), (null !== input.additionalProperties || $report(_exceptionable, {
888
+ path: _path + ".additionalProperties",
889
+ 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)",
890
+ value: input.additionalProperties
891
+ })) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || $report(_exceptionable, {
892
+ path: _path + ".additionalProperties",
893
+ 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)",
894
+ value: input.additionalProperties
895
+ })) && $vu0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || $report(_exceptionable, {
896
+ path: _path + ".additionalProperties",
897
+ 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)",
898
+ value: input.additionalProperties
899
+ })), 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, {
900
+ path: _path + "[\"x-typia-patternProperties\"]",
901
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
902
+ value: input["x-typia-patternProperties"]
903
+ })) && $vo18(input["x-typia-patternProperties"], _path + "[\"x-typia-patternProperties\"]", true && _exceptionable) || $report(_exceptionable, {
904
+ path: _path + "[\"x-typia-patternProperties\"]",
905
+ expected: "(Record<string, ISwaggerSchema> | undefined)",
906
+ value: input["x-typia-patternProperties"]
907
+ }), "object" === input.type || $report(_exceptionable, {
908
+ path: _path + ".type",
909
+ expected: "\"object\"",
910
+ value: input.type
911
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
912
+ path: _path + ".nullable",
913
+ expected: "(boolean | undefined)",
914
+ value: input.nullable
915
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
916
+ path: _path + ".title",
917
+ expected: "(string | undefined)",
918
+ value: input.title
919
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
920
+ path: _path + ".description",
921
+ expected: "(string | undefined)",
922
+ value: input.description
923
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
924
+ path: _path + ".deprecated",
925
+ expected: "(boolean | undefined)",
926
+ value: input.deprecated
927
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
928
+ path: _path + "[\"x-typia-optional\"]",
929
+ expected: "(boolean | undefined)",
930
+ value: input["x-typia-optional"]
931
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
932
+ path: _path + "[\"x-typia-rest\"]",
933
+ expected: "(boolean | undefined)",
934
+ value: input["x-typia-rest"]
935
+ })].every(flag => flag);
936
+ const $vo18 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
937
+ const value = input[key];
938
+ if (undefined === value)
939
+ return true;
940
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
941
+ path: _path + $join(key),
942
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
943
+ value: value
944
+ })) && $vu0(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
945
+ path: _path + $join(key),
946
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
947
+ value: value
948
+ });
949
+ }).every(flag => flag)].every(flag => flag);
950
+ const $vo19 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || $report(_exceptionable, {
951
+ path: _path + ".$ref",
952
+ expected: "string",
953
+ value: input.$ref
954
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
955
+ path: _path + ".title",
956
+ expected: "(string | undefined)",
957
+ value: input.title
958
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
959
+ path: _path + ".description",
960
+ expected: "(string | undefined)",
961
+ value: input.description
962
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
963
+ path: _path + ".deprecated",
964
+ expected: "(boolean | undefined)",
965
+ value: input.deprecated
966
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
967
+ path: _path + "[\"x-typia-optional\"]",
968
+ expected: "(boolean | undefined)",
969
+ value: input["x-typia-optional"]
970
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
971
+ path: _path + "[\"x-typia-rest\"]",
972
+ expected: "(boolean | undefined)",
973
+ value: input["x-typia-rest"]
974
+ })].every(flag => flag);
975
+ const $vo20 = (input, _path, _exceptionable = true) => [(Array.isArray(input.items) || $report(_exceptionable, {
976
+ path: _path + ".items",
977
+ expected: "Array<ISwaggerSchema>",
978
+ value: input.items
979
+ })) && input.items.map((elem, _index10) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
980
+ path: _path + ".items[" + _index10 + "]",
981
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
982
+ value: elem
983
+ })) && $vu0(elem, _path + ".items[" + _index10 + "]", true && _exceptionable) || $report(_exceptionable, {
984
+ path: _path + ".items[" + _index10 + "]",
985
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
986
+ value: elem
987
+ })).every(flag => flag) || $report(_exceptionable, {
988
+ path: _path + ".items",
989
+ expected: "Array<ISwaggerSchema>",
990
+ value: input.items
991
+ }), "array" === input.type || $report(_exceptionable, {
992
+ path: _path + ".type",
993
+ expected: "\"array\"",
994
+ value: input.type
995
+ }), undefined === input.nullable || "boolean" === typeof input.nullable || $report(_exceptionable, {
996
+ path: _path + ".nullable",
997
+ expected: "(boolean | undefined)",
998
+ value: input.nullable
999
+ }), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
1000
+ path: _path + ".title",
1001
+ expected: "(string | undefined)",
1002
+ value: input.title
1003
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1004
+ path: _path + ".description",
1005
+ expected: "(string | undefined)",
1006
+ value: input.description
1007
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
1008
+ path: _path + ".deprecated",
1009
+ expected: "(boolean | undefined)",
1010
+ value: input.deprecated
1011
+ }), undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $report(_exceptionable, {
1012
+ path: _path + "[\"x-typia-optional\"]",
1013
+ expected: "(boolean | undefined)",
1014
+ value: input["x-typia-optional"]
1015
+ }), undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $report(_exceptionable, {
1016
+ path: _path + "[\"x-typia-rest\"]",
1017
+ expected: "(boolean | undefined)",
1018
+ value: input["x-typia-rest"]
1019
+ })].every(flag => flag);
1020
+ const $vo21 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1021
+ const value = input[key];
1022
+ if (undefined === value)
1023
+ return true;
1024
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
1025
+ path: _path + $join(key),
1026
+ expected: "ISwaggerRouteRequestBody",
1027
+ value: value
1028
+ })) && $vo22(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
1029
+ path: _path + $join(key),
1030
+ expected: "ISwaggerRouteRequestBody",
1031
+ value: value
1032
+ });
1033
+ }).every(flag => flag)].every(flag => flag);
1034
+ const $vo22 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1035
+ path: _path + ".description",
1036
+ expected: "(string | undefined)",
1037
+ value: input.description
1038
+ }), undefined === input.required || "boolean" === typeof input.required || $report(_exceptionable, {
1039
+ path: _path + ".required",
1040
+ expected: "(boolean | undefined)",
1041
+ value: input.required
1042
+ }), undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
1043
+ path: _path + ".content",
1044
+ expected: "(ISwaggerRouteBodyContent | undefined)",
1045
+ value: input.content
1046
+ })) && $vo23(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
1047
+ path: _path + ".content",
1048
+ expected: "(ISwaggerRouteBodyContent | undefined)",
1049
+ value: input.content
1050
+ })].every(flag => flag);
1051
+ const $vo23 = (input, _path, _exceptionable = true) => [undefined === input["text/plain"] || ("object" === typeof input["text/plain"] && null !== input["text/plain"] && false === Array.isArray(input["text/plain"]) || $report(_exceptionable, {
1052
+ path: _path + "[\"text/plain\"]",
1053
+ expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1054
+ value: input["text/plain"]
1055
+ })) && $vo24(input["text/plain"], _path + "[\"text/plain\"]", true && _exceptionable) || $report(_exceptionable, {
1056
+ path: _path + "[\"text/plain\"]",
1057
+ expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1058
+ value: input["text/plain"]
1059
+ }), undefined === input["application/json"] || ("object" === typeof input["application/json"] && null !== input["application/json"] && false === Array.isArray(input["application/json"]) || $report(_exceptionable, {
1060
+ path: _path + "[\"application/json\"]",
1061
+ expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1062
+ value: input["application/json"]
1063
+ })) && $vo24(input["application/json"], _path + "[\"application/json\"]", true && _exceptionable) || $report(_exceptionable, {
1064
+ path: _path + "[\"application/json\"]",
1065
+ expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1066
+ value: input["application/json"]
1067
+ }), undefined === input["application/x-www-form-urlencoded"] || ("object" === typeof input["application/x-www-form-urlencoded"] && null !== input["application/x-www-form-urlencoded"] && false === Array.isArray(input["application/x-www-form-urlencoded"]) || $report(_exceptionable, {
1068
+ path: _path + "[\"application/x-www-form-urlencoded\"]",
1069
+ expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1070
+ value: input["application/x-www-form-urlencoded"]
1071
+ })) && $vo24(input["application/x-www-form-urlencoded"], _path + "[\"application/x-www-form-urlencoded\"]", true && _exceptionable) || $report(_exceptionable, {
1072
+ path: _path + "[\"application/x-www-form-urlencoded\"]",
1073
+ expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1074
+ value: input["application/x-www-form-urlencoded"]
1075
+ }), undefined === input["multipart/form-data"] || ("object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] && false === Array.isArray(input["multipart/form-data"]) || $report(_exceptionable, {
1076
+ path: _path + "[\"multipart/form-data\"]",
1077
+ expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1078
+ value: input["multipart/form-data"]
1079
+ })) && $vo24(input["multipart/form-data"], _path + "[\"multipart/form-data\"]", true && _exceptionable) || $report(_exceptionable, {
1080
+ path: _path + "[\"multipart/form-data\"]",
1081
+ expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1082
+ value: input["multipart/form-data"]
1083
+ }), undefined === input["*/*"] || ("object" === typeof input["*/*"] && null !== input["*/*"] && false === Array.isArray(input["*/*"]) || $report(_exceptionable, {
1084
+ path: _path + "[\"*/*\"]",
1085
+ expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1086
+ value: input["*/*"]
1087
+ })) && $vo24(input["*/*"], _path + "[\"*/*\"]", true && _exceptionable) || $report(_exceptionable, {
1088
+ path: _path + "[\"*/*\"]",
1089
+ expected: "(ISwaggerRouteBodyContent.IMediaType | undefined)",
1090
+ value: input["*/*"]
1091
+ })].every(flag => flag);
1092
+ const $vo24 = (input, _path, _exceptionable = true) => [undefined === input.schema || ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
1093
+ path: _path + ".schema",
1094
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | undefined)",
1095
+ value: input.schema
1096
+ })) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
1097
+ path: _path + ".schema",
1098
+ expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | undefined)",
1099
+ value: input.schema
1100
+ }), undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"] || $report(_exceptionable, {
1101
+ path: _path + "[\"x-nestia-encrypted\"]",
1102
+ expected: "(boolean | undefined)",
1103
+ value: input["x-nestia-encrypted"]
1104
+ })].every(flag => flag);
1105
+ const $vo25 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1106
+ const value = input[key];
1107
+ if (undefined === value)
1108
+ return true;
1109
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
1110
+ path: _path + $join(key),
1111
+ expected: "ISwaggerRouteResponse",
1112
+ value: value
1113
+ })) && $vo26(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
1114
+ path: _path + $join(key),
1115
+ expected: "ISwaggerRouteResponse",
1116
+ value: value
1117
+ });
1118
+ }).every(flag => flag)].every(flag => flag);
1119
+ const $vo26 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1120
+ path: _path + ".description",
1121
+ expected: "(string | undefined)",
1122
+ value: input.description
1123
+ }), undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
1124
+ path: _path + ".content",
1125
+ expected: "(ISwaggerRouteBodyContent | undefined)",
1126
+ value: input.content
1127
+ })) && $vo23(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
1128
+ path: _path + ".content",
1129
+ expected: "(ISwaggerRouteBodyContent | undefined)",
1130
+ value: input.content
1131
+ })].every(flag => flag);
1132
+ const $vo27 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1133
+ const value = input[key];
1134
+ if (undefined === value)
1135
+ return true;
1136
+ return ("object" === typeof value && null !== value || $report(_exceptionable, {
1137
+ path: _path + $join(key),
1138
+ expected: "(ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IOAuth2 | ISwaggerSecurityScheme.IOpenId)",
1139
+ value: value
1140
+ })) && $vu2(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
1141
+ path: _path + $join(key),
1142
+ expected: "(ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IOAuth2 | ISwaggerSecurityScheme.IOpenId)",
1143
+ value: value
1144
+ });
1145
+ }).every(flag => flag)].every(flag => flag);
1146
+ const $vo28 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
1147
+ path: _path + ".type",
1148
+ expected: "\"http\"",
1149
+ value: input.type
1150
+ }), "basic" === input.scheme || $report(_exceptionable, {
1151
+ path: _path + ".scheme",
1152
+ expected: "\"basic\"",
1153
+ value: input.scheme
1154
+ })].every(flag => flag);
1155
+ const $vo29 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
1156
+ path: _path + ".type",
1157
+ expected: "\"http\"",
1158
+ value: input.type
1159
+ }), "bearer" === input.scheme || $report(_exceptionable, {
1160
+ path: _path + ".scheme",
1161
+ expected: "\"bearer\"",
1162
+ value: input.scheme
1163
+ }), undefined === input.bearerFormat || "string" === typeof input.bearerFormat || $report(_exceptionable, {
1164
+ path: _path + ".bearerFormat",
1165
+ expected: "(string | undefined)",
1166
+ value: input.bearerFormat
1167
+ })].every(flag => flag);
1168
+ const $vo30 = (input, _path, _exceptionable = true) => ["apiKey" === input.type || $report(_exceptionable, {
1169
+ path: _path + ".type",
1170
+ expected: "\"apiKey\"",
1171
+ value: input.type
1172
+ }), undefined === input["in"] || "cookie" === input["in"] || "header" === input["in"] || "query" === input["in"] || $report(_exceptionable, {
1173
+ path: _path + "[\"in\"]",
1174
+ expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
1175
+ value: input["in"]
1176
+ }), undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
1177
+ path: _path + ".name",
1178
+ expected: "(string | undefined)",
1179
+ value: input.name
1180
+ })].every(flag => flag);
1181
+ const $vo31 = (input, _path, _exceptionable = true) => ["openIdConnect" === input.type || $report(_exceptionable, {
1182
+ path: _path + ".type",
1183
+ expected: "\"openIdConnect\"",
1184
+ value: input.type
1185
+ }), "string" === typeof input.openIdConnectUrl || $report(_exceptionable, {
1186
+ path: _path + ".openIdConnectUrl",
1187
+ expected: "string",
1188
+ value: input.openIdConnectUrl
1189
+ })].every(flag => flag);
1190
+ const $vo32 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
1191
+ path: _path + ".type",
1192
+ expected: "\"oauth2\"",
1193
+ value: input.type
1194
+ }), ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) || $report(_exceptionable, {
1195
+ path: _path + ".flows",
1196
+ expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
1197
+ value: input.flows
1198
+ })) && $vo33(input.flows, _path + ".flows", true && _exceptionable) || $report(_exceptionable, {
1199
+ path: _path + ".flows",
1200
+ expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
1201
+ value: input.flows
1202
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1203
+ path: _path + ".description",
1204
+ expected: "(string | undefined)",
1205
+ value: input.description
1206
+ })].every(flag => flag);
1207
+ const $vo33 = (input, _path, _exceptionable = true) => [undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode || $report(_exceptionable, {
1208
+ path: _path + ".authorizationCode",
1209
+ expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
1210
+ value: input.authorizationCode
1211
+ })) && $vo34(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $report(_exceptionable, {
1212
+ path: _path + ".authorizationCode",
1213
+ expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
1214
+ value: input.authorizationCode
1215
+ }), undefined === input.implicit || ("object" === typeof input.implicit && null !== input.implicit || $report(_exceptionable, {
1216
+ path: _path + ".implicit",
1217
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
1218
+ value: input.implicit
1219
+ })) && $vo36(input.implicit, _path + ".implicit", true && _exceptionable) || $report(_exceptionable, {
1220
+ path: _path + ".implicit",
1221
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
1222
+ value: input.implicit
1223
+ }), undefined === input.password || ("object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) || $report(_exceptionable, {
1224
+ path: _path + ".password",
1225
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1226
+ value: input.password
1227
+ })) && $vo37(input.password, _path + ".password", true && _exceptionable) || $report(_exceptionable, {
1228
+ path: _path + ".password",
1229
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1230
+ value: input.password
1231
+ }), undefined === input.clientCredentials || ("object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) || $report(_exceptionable, {
1232
+ path: _path + ".clientCredentials",
1233
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1234
+ value: input.clientCredentials
1235
+ })) && $vo37(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $report(_exceptionable, {
1236
+ path: _path + ".clientCredentials",
1237
+ expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
1238
+ value: input.clientCredentials
1239
+ })].every(flag => flag);
1240
+ const $vo34 = (input, _path, _exceptionable = true) => ["string" === typeof input.authorizationUrl || $report(_exceptionable, {
1241
+ path: _path + ".authorizationUrl",
1242
+ expected: "string",
1243
+ value: input.authorizationUrl
1244
+ }), undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $report(_exceptionable, {
1245
+ path: _path + ".tokenUrl",
1246
+ expected: "(string | undefined)",
1247
+ value: input.tokenUrl
1248
+ }), undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $report(_exceptionable, {
1249
+ path: _path + ".refreshUrl",
1250
+ expected: "(string | undefined)",
1251
+ value: input.refreshUrl
1252
+ }), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
1253
+ path: _path + ".scopes",
1254
+ expected: "(Record<string, string> | undefined)",
1255
+ value: input.scopes
1256
+ })) && $vo35(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
1257
+ path: _path + ".scopes",
1258
+ expected: "(Record<string, string> | undefined)",
1259
+ value: input.scopes
1260
+ })].every(flag => flag);
1261
+ const $vo35 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1262
+ const value = input[key];
1263
+ if (undefined === value)
1264
+ return true;
1265
+ return "string" === typeof value || $report(_exceptionable, {
1266
+ path: _path + $join(key),
1267
+ expected: "string",
1268
+ value: value
1269
+ });
1270
+ }).every(flag => flag)].every(flag => flag);
1271
+ const $vo36 = (input, _path, _exceptionable = true) => ["string" === typeof input.authorizationUrl || $report(_exceptionable, {
1272
+ path: _path + ".authorizationUrl",
1273
+ expected: "string",
1274
+ value: input.authorizationUrl
1275
+ }), undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $report(_exceptionable, {
1276
+ path: _path + ".refreshUrl",
1277
+ expected: "(string | undefined)",
1278
+ value: input.refreshUrl
1279
+ }), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
1280
+ path: _path + ".scopes",
1281
+ expected: "(Record<string, string> | undefined)",
1282
+ value: input.scopes
1283
+ })) && $vo35(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
1284
+ path: _path + ".scopes",
1285
+ expected: "(Record<string, string> | undefined)",
1286
+ value: input.scopes
1287
+ })].every(flag => flag);
1288
+ const $vo37 = (input, _path, _exceptionable = true) => [undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $report(_exceptionable, {
1289
+ path: _path + ".tokenUrl",
1290
+ expected: "(string | undefined)",
1291
+ value: input.tokenUrl
1292
+ }), undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $report(_exceptionable, {
1293
+ path: _path + ".refreshUrl",
1294
+ expected: "(string | undefined)",
1295
+ value: input.refreshUrl
1296
+ }), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
1297
+ path: _path + ".scopes",
1298
+ expected: "(Record<string, string> | undefined)",
1299
+ value: input.scopes
1300
+ })) && $vo35(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
1301
+ path: _path + ".scopes",
1302
+ expected: "(Record<string, string> | undefined)",
1303
+ value: input.scopes
1304
+ })].every(flag => flag);
1305
+ const $vo38 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1306
+ const value = input[key];
1307
+ if (undefined === value)
1308
+ return true;
1309
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
1310
+ path: _path + $join(key),
1311
+ expected: "ISwagger.IPath",
1312
+ value: value
1313
+ })) && $vo39(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
1314
+ path: _path + $join(key),
1315
+ expected: "ISwagger.IPath",
1316
+ value: value
1317
+ });
1318
+ }).every(flag => flag)].every(flag => flag);
1319
+ const $vo39 = (input, _path, _exceptionable = true) => [undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || $report(_exceptionable, {
1320
+ path: _path + ".get",
1321
+ expected: "(ISwaggerRoute | undefined)",
1322
+ value: input.get
1323
+ })) && $vo40(input.get, _path + ".get", true && _exceptionable) || $report(_exceptionable, {
1324
+ path: _path + ".get",
1325
+ expected: "(ISwaggerRoute | undefined)",
1326
+ value: input.get
1327
+ }), undefined === input.post || ("object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) || $report(_exceptionable, {
1328
+ path: _path + ".post",
1329
+ expected: "(ISwaggerRoute | undefined)",
1330
+ value: input.post
1331
+ })) && $vo40(input.post, _path + ".post", true && _exceptionable) || $report(_exceptionable, {
1332
+ path: _path + ".post",
1333
+ expected: "(ISwaggerRoute | undefined)",
1334
+ value: input.post
1335
+ }), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
1336
+ path: _path + ".patch",
1337
+ expected: "(ISwaggerRoute | undefined)",
1338
+ value: input.patch
1339
+ })) && $vo40(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
1340
+ path: _path + ".patch",
1341
+ expected: "(ISwaggerRoute | undefined)",
1342
+ value: input.patch
1343
+ }), undefined === input.put || ("object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) || $report(_exceptionable, {
1344
+ path: _path + ".put",
1345
+ expected: "(ISwaggerRoute | undefined)",
1346
+ value: input.put
1347
+ })) && $vo40(input.put, _path + ".put", true && _exceptionable) || $report(_exceptionable, {
1348
+ path: _path + ".put",
1349
+ expected: "(ISwaggerRoute | undefined)",
1350
+ value: input.put
1351
+ }), undefined === input["delete"] || ("object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) || $report(_exceptionable, {
1352
+ path: _path + "[\"delete\"]",
1353
+ expected: "(ISwaggerRoute | undefined)",
1354
+ value: input["delete"]
1355
+ })) && $vo40(input["delete"], _path + "[\"delete\"]", true && _exceptionable) || $report(_exceptionable, {
1356
+ path: _path + "[\"delete\"]",
1357
+ expected: "(ISwaggerRoute | undefined)",
1358
+ value: input["delete"]
1359
+ })].every(flag => flag);
1360
+ const $vo40 = (input, _path, _exceptionable = true) => [undefined === input.parameters || (Array.isArray(input.parameters) || $report(_exceptionable, {
1361
+ path: _path + ".parameters",
1362
+ expected: "(Array<ISwaggerRouteParameter | IReference> | undefined)",
1363
+ value: input.parameters
1364
+ })) && input.parameters.map((elem, _index11) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1365
+ path: _path + ".parameters[" + _index11 + "]",
1366
+ expected: "(ISwaggerRouteParameter | ISwaggerRouteParameter.IReference)",
1367
+ value: elem
1368
+ })) && $vu1(elem, _path + ".parameters[" + _index11 + "]", true && _exceptionable) || $report(_exceptionable, {
1369
+ path: _path + ".parameters[" + _index11 + "]",
1370
+ expected: "(ISwaggerRouteParameter | ISwaggerRouteParameter.IReference)",
1371
+ value: elem
1372
+ })).every(flag => flag) || $report(_exceptionable, {
1373
+ path: _path + ".parameters",
1374
+ expected: "(Array<ISwaggerRouteParameter | IReference> | undefined)",
1375
+ value: input.parameters
1376
+ }), undefined === input.requestBody || ("object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) || $report(_exceptionable, {
1377
+ path: _path + ".requestBody",
1378
+ expected: "(ISwaggerRouteRequestBody | undefined)",
1379
+ value: input.requestBody
1380
+ })) && $vo22(input.requestBody, _path + ".requestBody", true && _exceptionable) || $report(_exceptionable, {
1381
+ path: _path + ".requestBody",
1382
+ expected: "(ISwaggerRouteRequestBody | undefined)",
1383
+ value: input.requestBody
1384
+ }), undefined === input.responses || ("object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) || $report(_exceptionable, {
1385
+ path: _path + ".responses",
1386
+ expected: "(Record<string, ISwaggerRouteResponse | IReference> | undefined)",
1387
+ value: input.responses
1388
+ })) && $vo42(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
1389
+ path: _path + ".responses",
1390
+ expected: "(Record<string, ISwaggerRouteResponse | IReference> | undefined)",
1391
+ value: input.responses
1392
+ }), undefined === input.summary || "string" === typeof input.summary || $report(_exceptionable, {
1393
+ path: _path + ".summary",
1394
+ expected: "(string | undefined)",
1395
+ value: input.summary
1396
+ }), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
1397
+ path: _path + ".description",
1398
+ expected: "(string | undefined)",
1399
+ value: input.description
1400
+ }), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
1401
+ path: _path + ".deprecated",
1402
+ expected: "(boolean | undefined)",
1403
+ value: input.deprecated
1404
+ }), undefined === input.security || (Array.isArray(input.security) || $report(_exceptionable, {
1405
+ path: _path + ".security",
1406
+ expected: "(Array<Record<string, Array<string>>> | undefined)",
1407
+ value: input.security
1408
+ })) && input.security.map((elem, _index12) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
1409
+ path: _path + ".security[" + _index12 + "]",
1410
+ expected: "Record<string, Array<string>>",
1411
+ value: elem
1412
+ })) && $vo44(elem, _path + ".security[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
1413
+ path: _path + ".security[" + _index12 + "]",
1414
+ expected: "Record<string, Array<string>>",
1415
+ value: elem
1416
+ })).every(flag => flag) || $report(_exceptionable, {
1417
+ path: _path + ".security",
1418
+ expected: "(Array<Record<string, Array<string>>> | undefined)",
1419
+ value: input.security
1420
+ }), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
1421
+ path: _path + ".tags",
1422
+ expected: "(Array<string> | undefined)",
1423
+ value: input.tags
1424
+ })) && input.tags.map((elem, _index13) => "string" === typeof elem || $report(_exceptionable, {
1425
+ path: _path + ".tags[" + _index13 + "]",
1426
+ expected: "string",
1427
+ value: elem
1428
+ })).every(flag => flag) || $report(_exceptionable, {
1429
+ path: _path + ".tags",
1430
+ expected: "(Array<string> | undefined)",
1431
+ value: input.tags
1432
+ }), undefined === input["x-nestia-jsDocTags"] || (Array.isArray(input["x-nestia-jsDocTags"]) || $report(_exceptionable, {
1433
+ path: _path + "[\"x-nestia-jsDocTags\"]",
1434
+ expected: "(Array<IJsDocTagInfo> | undefined)",
1435
+ value: input["x-nestia-jsDocTags"]
1436
+ })) && input["x-nestia-jsDocTags"].map((elem, _index14) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1437
+ path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
1438
+ expected: "IJsDocTagInfo",
1439
+ value: elem
1440
+ })) && $vo45(elem, _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
1441
+ path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
1442
+ expected: "IJsDocTagInfo",
1443
+ value: elem
1444
+ })).every(flag => flag) || $report(_exceptionable, {
1445
+ path: _path + "[\"x-nestia-jsDocTags\"]",
1446
+ expected: "(Array<IJsDocTagInfo> | undefined)",
1447
+ value: input["x-nestia-jsDocTags"]
1448
+ })].every(flag => flag);
1449
+ const $vo41 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) || $report(_exceptionable, {
1450
+ path: _path + ".$ref",
1451
+ expected: "`#/components/parameters/${string}`",
1452
+ value: input.$ref
1453
+ })].every(flag => flag);
1454
+ const $vo42 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1455
+ const value = input[key];
1456
+ if (undefined === value)
1457
+ return true;
1458
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
1459
+ path: _path + $join(key),
1460
+ expected: "(ISwaggerRouteResponse | ISwaggerRouteResponse.IReference)",
1461
+ value: value
1462
+ })) && $vu3(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
1463
+ path: _path + $join(key),
1464
+ expected: "(ISwaggerRouteResponse | ISwaggerRouteResponse.IReference)",
1465
+ value: value
1466
+ });
1467
+ }).every(flag => flag)].every(flag => flag);
1468
+ const $vo43 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) || $report(_exceptionable, {
1469
+ path: _path + ".$ref",
1470
+ expected: "`#/components/responses/${string}`",
1471
+ value: input.$ref
1472
+ })].every(flag => flag);
1473
+ const $vo44 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
1474
+ const value = input[key];
1475
+ if (undefined === value)
1476
+ return true;
1477
+ return (Array.isArray(value) || $report(_exceptionable, {
1478
+ path: _path + $join(key),
1479
+ expected: "Array<string>",
1480
+ value: value
1481
+ })) && value.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable, {
1482
+ path: _path + $join(key) + "[" + _index15 + "]",
1483
+ expected: "string",
1484
+ value: elem
1485
+ })).every(flag => flag) || $report(_exceptionable, {
1486
+ path: _path + $join(key),
1487
+ expected: "Array<string>",
1488
+ value: value
1489
+ });
1490
+ }).every(flag => flag)].every(flag => flag);
1491
+ const $vo45 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
1492
+ path: _path + ".name",
1493
+ expected: "string",
1494
+ value: input.name
1495
+ }), undefined === input.text || (Array.isArray(input.text) || $report(_exceptionable, {
1496
+ path: _path + ".text",
1497
+ expected: "(Array<IJsDocTagInfo.IText> | undefined)",
1498
+ value: input.text
1499
+ })) && input.text.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
1500
+ path: _path + ".text[" + _index16 + "]",
1501
+ expected: "IJsDocTagInfo.IText",
1502
+ value: elem
1503
+ })) && $vo46(elem, _path + ".text[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
1504
+ path: _path + ".text[" + _index16 + "]",
1505
+ expected: "IJsDocTagInfo.IText",
1506
+ value: elem
1507
+ })).every(flag => flag) || $report(_exceptionable, {
1508
+ path: _path + ".text",
1509
+ expected: "(Array<IJsDocTagInfo.IText> | undefined)",
1510
+ value: input.text
1511
+ })].every(flag => flag);
1512
+ const $vo46 = (input, _path, _exceptionable = true) => ["string" === typeof input.text || $report(_exceptionable, {
1513
+ path: _path + ".text",
1514
+ expected: "string",
1515
+ value: input.text
1516
+ }), "string" === typeof input.kind || $report(_exceptionable, {
1517
+ path: _path + ".kind",
1518
+ expected: "string",
1519
+ value: input.kind
1520
+ })].every(flag => flag);
1521
+ const $vu0 = (input, _path, _exceptionable = true) => (() => {
1522
+ if ("null" === input.type)
1523
+ return $vo9(input, _path, true && _exceptionable);
1524
+ else if (undefined !== input.anyOf)
1525
+ return $vo10(input, _path, true && _exceptionable);
1526
+ else if (undefined !== input.oneOf)
1527
+ return $vo11(input, _path, true && _exceptionable);
1528
+ else if ("boolean" === input.type)
1529
+ return $vo12(input, _path, true && _exceptionable);
1530
+ else if ("number" === input.type)
1531
+ return $vo14(input, _path, true && _exceptionable);
1532
+ else if ("integer" === input.type)
1533
+ return $vo13(input, _path, true && _exceptionable);
1534
+ else if ("string" === input.type)
1535
+ return $vo15(input, _path, true && _exceptionable);
1536
+ else if ("array" === input.type)
1537
+ return $vo16(input, _path, true && _exceptionable);
1538
+ else if ("object" === input.type)
1539
+ return $vo17(input, _path, true && _exceptionable);
1540
+ else if (undefined !== input.$ref)
1541
+ return $vo19(input, _path, true && _exceptionable);
1542
+ else
1543
+ return $vo8(input, _path, true && _exceptionable);
1544
+ })();
1545
+ const $vu1 = (input, _path, _exceptionable = true) => (() => {
1546
+ if (undefined !== input["in"])
1547
+ return $vo7(input, _path, true && _exceptionable);
1548
+ else if (undefined !== input.$ref)
1549
+ return $vo41(input, _path, true && _exceptionable);
1550
+ else
1551
+ return $report(_exceptionable, {
1552
+ path: _path,
1553
+ expected: "(ISwaggerRouteParameter | ISwaggerRouteParameter.IReference)",
1554
+ value: input
1555
+ });
1556
+ })();
1557
+ const $vu2 = (input, _path, _exceptionable = true) => (() => {
1558
+ if ("basic" === input.scheme)
1559
+ return $vo28(input, _path, true && _exceptionable);
1560
+ else if ("bearer" === input.scheme)
1561
+ return $vo29(input, _path, true && _exceptionable);
1562
+ else if ("apiKey" === input.type)
1563
+ return $vo30(input, _path, true && _exceptionable);
1564
+ else if ("openIdConnect" === input.type)
1565
+ return $vo31(input, _path, true && _exceptionable);
1566
+ else if ("oauth2" === input.type)
1567
+ return $vo32(input, _path, true && _exceptionable);
1568
+ else
1569
+ return $report(_exceptionable, {
1570
+ path: _path,
1571
+ expected: "(ISwaggerSecurityScheme.IHttpBasic | ISwaggerSecurityScheme.IHttpBearer | ISwaggerSecurityScheme.IApiKey | ISwaggerSecurityScheme.IOpenId | ISwaggerSecurityScheme.IOAuth2)",
1572
+ value: input
1573
+ });
1574
+ })();
1575
+ const $vu3 = (input, _path, _exceptionable = true) => (() => {
1576
+ if (undefined !== input.$ref)
1577
+ return $vo43(input, _path, true && _exceptionable);
1578
+ else
1579
+ return $vo26(input, _path, true && _exceptionable);
1580
+ })();
1581
+ return ("object" === typeof input && null !== input || $report(true, {
1582
+ path: _path + "",
1583
+ expected: "ISwagger",
1584
+ value: input
1585
+ })) && $vo0(input, _path + "", true) || $report(true, {
1586
+ path: _path + "",
1587
+ expected: "ISwagger",
1588
+ value: input
1589
+ });
1590
+ })(input, "$input", true);
1591
+ }
1592
+ const success = 0 === errors.length;
1593
+ return {
1594
+ success,
1595
+ errors,
1596
+ data: success ? input : undefined
1597
+ };
1598
+ })(swagger);
1599
+ if (result.success === false)
1600
+ return result;
1644
1601
  return {
1645
1602
  success: true,
1646
1603
  data: new MigrateApplication(swagger),
1647
1604
  errors: [],
1648
1605
  };
1649
- return result;
1606
+ });
1650
1607
  }
1651
1608
  nest(config) {
1652
1609
  const program = MigrateAnalyzer_1.MigrateAnalyzer.analyze({