@nestia/migrate 0.2.14 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/NestiaMigrateApplication.js +227 -258
- package/lib/NestiaMigrateApplication.js.map +1 -1
- package/lib/bundles/TEMPLATE.js +3 -3
- package/lib/bundles/TEMPLATE.js.map +1 -1
- package/lib/programmers/ControllerProgrammer.js +5 -15
- package/lib/programmers/ControllerProgrammer.js.map +1 -1
- package/lib/programmers/DtoProgrammer.js +8 -13
- package/lib/programmers/DtoProgrammer.js.map +1 -1
- package/lib/programmers/ImportProgrammer.d.ts +9 -3
- package/lib/programmers/ImportProgrammer.js +32 -8
- package/lib/programmers/ImportProgrammer.js.map +1 -1
- package/lib/programmers/MigrateProgrammer.js +5 -5
- package/lib/programmers/MigrateProgrammer.js.map +1 -1
- package/lib/programmers/RouteProgrammer.d.ts +2 -1
- package/lib/programmers/RouteProgrammer.js +19 -19
- package/lib/programmers/RouteProgrammer.js.map +1 -1
- package/lib/programmers/SchemaProgrammer.d.ts +2 -1
- package/lib/programmers/SchemaProgrammer.js +107 -60
- package/lib/programmers/SchemaProgrammer.js.map +1 -1
- package/lib/structures/IMigrateRoute.d.ts +1 -1
- package/lib/structures/ISwaggeSchema.d.ts +4 -1
- package/lib/structures/ISwaggerRoute.d.ts +1 -1
- package/lib/utils/JsonTypeChecker.d.ts +1 -0
- package/lib/utils/JsonTypeChecker.js +1 -0
- package/lib/utils/JsonTypeChecker.js.map +1 -1
- package/package.json +5 -5
- package/src/bundles/TEMPLATE.ts +3 -3
- package/src/programmers/ControllerProgrammer.ts +14 -30
- package/src/programmers/DtoProgrammer.ts +9 -17
- package/src/programmers/ImportProgrammer.ts +44 -13
- package/src/programmers/MigrateProgrammer.ts +5 -5
- package/src/programmers/RouteProgrammer.ts +31 -31
- package/src/programmers/SchemaProgrammer.ts +156 -66
- package/src/structures/IMigrateRoute.ts +1 -1
- package/src/structures/ISwaggeSchema.ts +5 -0
- package/src/structures/ISwaggerRoute.ts +1 -1
- package/src/utils/JsonTypeChecker.ts +4 -0
@@ -34,15 +34,12 @@ class NestiaMigrateApplication {
|
|
34
34
|
};
|
35
35
|
this.swagger = (input => {
|
36
36
|
const __is = input => {
|
37
|
-
const $
|
38
|
-
const $
|
39
|
-
const $
|
40
|
-
const $
|
41
|
-
const $io1 = input => "string" === typeof input.title && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && $is_url(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;
|
42
|
-
const $io2 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url && $is_url(input.url)) && (undefined === input.email || "string" === typeof input.email && $is_email(input.email));
|
43
|
-
const $io3 = input => "string" === typeof input.name && (undefined === input.url || "string" === typeof input.url && $is_url(input.url));
|
37
|
+
const $io0 = input => "string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) && ("object" === typeof input.info && null !== input.info && $io1(input.info)) && (Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && $io5(input.components)) && ("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io30(input.paths)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io40(elem)));
|
38
|
+
const $io1 = input => "string" === typeof input.title && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.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;
|
39
|
+
const $io2 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url && /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url)) && (undefined === input.email || "string" === typeof input.email && /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(input.email));
|
40
|
+
const $io3 = input => "string" === typeof input.name && (undefined === input.url || "string" === typeof input.url && /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url));
|
44
41
|
const $io4 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description);
|
45
|
-
const $io5 = input => (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && $io6(input.schemas)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && $
|
42
|
+
const $io5 = input => (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && $io6(input.schemas)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && $io19(input.securitySchemes));
|
46
43
|
const $io6 = input => Object.keys(input).every(key => {
|
47
44
|
const value = input[key];
|
48
45
|
if (undefined === value)
|
@@ -52,17 +49,18 @@ class NestiaMigrateApplication {
|
|
52
49
|
return true;
|
53
50
|
});
|
54
51
|
const $io7 = 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"]);
|
55
|
-
const $io8 = input =>
|
56
|
-
const $io9 = input => Array.isArray(input.
|
57
|
-
const $io10 = input =>
|
58
|
-
const $io11 = input => (undefined === input["default"] || "
|
59
|
-
const $io12 = 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) && "
|
60
|
-
const $io13 = input => (undefined === input["default"] || "
|
61
|
-
const $io14 = input => "
|
62
|
-
const $io15 = input =>
|
63
|
-
const $io16 = input => "string" === typeof input
|
64
|
-
const $io17 = input =>
|
65
|
-
const $io18 = input =>
|
52
|
+
const $io8 = 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"]);
|
53
|
+
const $io9 = 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"]);
|
54
|
+
const $io10 = 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"]);
|
55
|
+
const $io11 = 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"]);
|
56
|
+
const $io12 = 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"]);
|
57
|
+
const $io13 = 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"]);
|
58
|
+
const $io14 = 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"]);
|
59
|
+
const $io15 = 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"] && $io18(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"]);
|
60
|
+
const $io16 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io6(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"]) && $io6(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"]);
|
61
|
+
const $io17 = 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"]);
|
62
|
+
const $io18 = 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"]);
|
63
|
+
const $io19 = input => Object.keys(input).every(key => {
|
66
64
|
const value = input[key];
|
67
65
|
if (undefined === value)
|
68
66
|
return true;
|
@@ -70,14 +68,14 @@ class NestiaMigrateApplication {
|
|
70
68
|
return "object" === typeof value && null !== value && $iu1(value);
|
71
69
|
return true;
|
72
70
|
});
|
73
|
-
const $
|
74
|
-
const $
|
75
|
-
const $
|
76
|
-
const $
|
77
|
-
const $
|
78
|
-
const $
|
79
|
-
const $
|
80
|
-
const $
|
71
|
+
const $io20 = input => "http" === input.type && "basic" === input.scheme;
|
72
|
+
const $io21 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat);
|
73
|
+
const $io22 = input => "apiKey" === input.type && ("header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && "string" === typeof input.name;
|
74
|
+
const $io23 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl;
|
75
|
+
const $io24 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io25(input.flows)) && (undefined === input.description || "string" === typeof input.description);
|
76
|
+
const $io25 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && $io26(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && $io28(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && $io29(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && $io29(input.clientCredentials));
|
77
|
+
const $io26 = input => "string" === typeof input.authorizationUrl && "string" === typeof input.tokenUrl && "string" === typeof input.refreshUrl && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io27(input.scopes));
|
78
|
+
const $io27 = input => Object.keys(input).every(key => {
|
81
79
|
const value = input[key];
|
82
80
|
if (undefined === value)
|
83
81
|
return true;
|
@@ -85,40 +83,40 @@ class NestiaMigrateApplication {
|
|
85
83
|
return "string" === typeof value;
|
86
84
|
return true;
|
87
85
|
});
|
88
|
-
const $
|
89
|
-
const $
|
90
|
-
const $
|
86
|
+
const $io28 = input => "string" === typeof input.authorizationUrl && "string" === typeof input.refreshUrl && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io27(input.scopes));
|
87
|
+
const $io29 = input => "string" === typeof input.tokenUrl && "string" === typeof input.refreshUrl && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io27(input.scopes));
|
88
|
+
const $io30 = input => Object.keys(input).every(key => {
|
91
89
|
const value = input[key];
|
92
90
|
if (undefined === value)
|
93
91
|
return true;
|
94
92
|
if (RegExp(/(.*)/).test(key))
|
95
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
93
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io31(value);
|
96
94
|
return true;
|
97
95
|
});
|
98
|
-
const $
|
96
|
+
const $io31 = input => Object.keys(input).every(key => {
|
99
97
|
const value = input[key];
|
100
98
|
if (undefined === value)
|
101
99
|
return true;
|
102
100
|
if (RegExp(/(.*)/).test(key))
|
103
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
101
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io32(value);
|
104
102
|
return true;
|
105
103
|
});
|
106
|
-
const $
|
107
|
-
const $
|
108
|
-
const $
|
109
|
-
const $
|
110
|
-
const $io35 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
|
104
|
+
const $io32 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $io33(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && $io34(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io38(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) && $io40(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 && $io41(elem)));
|
105
|
+
const $io33 = input => (undefined === input.name || "string" === typeof input.name) && ("header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || "path" === 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);
|
106
|
+
const $io34 = input => (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io35(input.content)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"]);
|
107
|
+
const $io35 = input => (undefined === input["text/plain"] || "object" === typeof input["text/plain"] && null !== input["text/plain"] && $io36(input["text/plain"])) && (undefined === input["application/json"] || "object" === typeof input["application/json"] && null !== input["application/json"] && $io37(input["application/json"]));
|
111
108
|
const $io36 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
|
112
|
-
const $io37 = input =>
|
109
|
+
const $io37 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
|
110
|
+
const $io38 = input => Object.keys(input).every(key => {
|
113
111
|
const value = input[key];
|
114
112
|
if (undefined === value)
|
115
113
|
return true;
|
116
114
|
if (RegExp(/(.*)/).test(key))
|
117
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
115
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io39(value);
|
118
116
|
return true;
|
119
117
|
});
|
120
|
-
const $
|
121
|
-
const $
|
118
|
+
const $io39 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io35(input.content)) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"]);
|
119
|
+
const $io40 = input => Object.keys(input).every(key => {
|
122
120
|
const value = input[key];
|
123
121
|
if (undefined === value)
|
124
122
|
return true;
|
@@ -126,49 +124,51 @@ class NestiaMigrateApplication {
|
|
126
124
|
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
127
125
|
return true;
|
128
126
|
});
|
129
|
-
const $
|
130
|
-
const $
|
127
|
+
const $io41 = input => "string" === typeof input.name && (undefined === input.text || Array.isArray(input.text) && input.text.every(elem => "object" === typeof elem && null !== elem && $io42(elem)));
|
128
|
+
const $io42 = input => "string" === typeof input.text && "string" === typeof input.kind;
|
131
129
|
const $iu0 = input => (() => {
|
132
|
-
if (
|
130
|
+
if ("null" === input.type)
|
133
131
|
return $io8(input);
|
134
|
-
if (undefined !== input.
|
132
|
+
else if (undefined !== input.anyOf)
|
135
133
|
return $io9(input);
|
136
|
-
if (
|
134
|
+
else if (undefined !== input.oneOf)
|
137
135
|
return $io10(input);
|
138
|
-
if ("
|
139
|
-
return $io12(input);
|
140
|
-
if ("integer" === input.type)
|
136
|
+
else if ("boolean" === input.type)
|
141
137
|
return $io11(input);
|
142
|
-
if ("
|
138
|
+
else if ("number" === input.type)
|
143
139
|
return $io13(input);
|
144
|
-
if ("
|
140
|
+
else if ("integer" === input.type)
|
141
|
+
return $io12(input);
|
142
|
+
else if ("string" === input.type)
|
145
143
|
return $io14(input);
|
146
|
-
if ("
|
144
|
+
else if ("array" === input.type)
|
147
145
|
return $io15(input);
|
148
|
-
if (
|
146
|
+
else if ("object" === input.type)
|
149
147
|
return $io16(input);
|
150
|
-
|
148
|
+
else if (undefined !== input.$ref)
|
149
|
+
return $io17(input);
|
150
|
+
else
|
151
|
+
return $io7(input);
|
151
152
|
})();
|
152
153
|
const $iu1 = input => (() => {
|
153
154
|
if ("basic" === input.scheme)
|
154
|
-
return $io19(input);
|
155
|
-
if ("bearer" === input.scheme)
|
156
155
|
return $io20(input);
|
157
|
-
if ("
|
156
|
+
else if ("bearer" === input.scheme)
|
158
157
|
return $io21(input);
|
159
|
-
if ("
|
158
|
+
else if ("apiKey" === input.type)
|
160
159
|
return $io22(input);
|
161
|
-
if ("
|
160
|
+
else if ("openIdConnect" === input.type)
|
162
161
|
return $io23(input);
|
163
|
-
|
162
|
+
else if ("oauth2" === input.type)
|
163
|
+
return $io24(input);
|
164
|
+
else
|
165
|
+
return false;
|
164
166
|
})();
|
165
167
|
return "object" === typeof input && null !== input && $io0(input);
|
166
168
|
};
|
167
169
|
if (false === __is(input))
|
168
170
|
((input, _path, _exceptionable = true) => {
|
169
171
|
const $guard = typia_1.default.assert.guard;
|
170
|
-
const $is_url = typia_1.default.assert.is_url;
|
171
|
-
const $is_email = typia_1.default.assert.is_email;
|
172
172
|
const $join = typia_1.default.assert.join;
|
173
173
|
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) || $guard(_exceptionable, {
|
174
174
|
path: _path + ".openapi",
|
@@ -210,7 +210,7 @@ class NestiaMigrateApplication {
|
|
210
210
|
path: _path + ".paths",
|
211
211
|
expected: "Record<string, ISwagger.IPath>",
|
212
212
|
value: input.paths
|
213
|
-
})) && $
|
213
|
+
})) && $ao30(input.paths, _path + ".paths", true && _exceptionable) || $guard(_exceptionable, {
|
214
214
|
path: _path + ".paths",
|
215
215
|
expected: "Record<string, ISwagger.IPath>",
|
216
216
|
value: input.paths
|
@@ -222,7 +222,7 @@ class NestiaMigrateApplication {
|
|
222
222
|
path: _path + ".security[" + _index2 + "]",
|
223
223
|
expected: "Record<string, Array<string>>",
|
224
224
|
value: elem
|
225
|
-
})) && $
|
225
|
+
})) && $ao40(elem, _path + ".security[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
226
226
|
path: _path + ".security[" + _index2 + "]",
|
227
227
|
expected: "Record<string, Array<string>>",
|
228
228
|
value: elem
|
@@ -239,13 +239,13 @@ class NestiaMigrateApplication {
|
|
239
239
|
path: _path + ".description",
|
240
240
|
expected: "(string | undefined)",
|
241
241
|
value: input.description
|
242
|
-
})) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && (
|
242
|
+
})) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && (/^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.termsOfService) || $guard(_exceptionable, {
|
243
243
|
path: _path + ".termsOfService",
|
244
|
-
expected: "string
|
244
|
+
expected: "string & Format<\"url\">",
|
245
245
|
value: input.termsOfService
|
246
246
|
})) || $guard(_exceptionable, {
|
247
247
|
path: _path + ".termsOfService",
|
248
|
-
expected: "(string | undefined)",
|
248
|
+
expected: "((string & Format<\"url\">) | undefined)",
|
249
249
|
value: input.termsOfService
|
250
250
|
})) && (undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || $guard(_exceptionable, {
|
251
251
|
path: _path + ".contact",
|
@@ -272,34 +272,34 @@ class NestiaMigrateApplication {
|
|
272
272
|
path: _path + ".name",
|
273
273
|
expected: "(string | undefined)",
|
274
274
|
value: input.name
|
275
|
-
})) && (undefined === input.url || "string" === typeof input.url && (
|
275
|
+
})) && (undefined === input.url || "string" === typeof input.url && (/^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url) || $guard(_exceptionable, {
|
276
276
|
path: _path + ".url",
|
277
|
-
expected: "string
|
277
|
+
expected: "string & Format<\"url\">",
|
278
278
|
value: input.url
|
279
279
|
})) || $guard(_exceptionable, {
|
280
280
|
path: _path + ".url",
|
281
|
-
expected: "(string | undefined)",
|
281
|
+
expected: "((string & Format<\"url\">) | undefined)",
|
282
282
|
value: input.url
|
283
|
-
})) && (undefined === input.email || "string" === typeof input.email && (
|
283
|
+
})) && (undefined === input.email || "string" === typeof input.email && (/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(input.email) || $guard(_exceptionable, {
|
284
284
|
path: _path + ".email",
|
285
|
-
expected: "string
|
285
|
+
expected: "string & Format<\"email\">",
|
286
286
|
value: input.email
|
287
287
|
})) || $guard(_exceptionable, {
|
288
288
|
path: _path + ".email",
|
289
|
-
expected: "(string | undefined)",
|
289
|
+
expected: "((string & Format<\"email\">) | undefined)",
|
290
290
|
value: input.email
|
291
291
|
}));
|
292
292
|
const $ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
293
293
|
path: _path + ".name",
|
294
294
|
expected: "string",
|
295
295
|
value: input.name
|
296
|
-
})) && (undefined === input.url || "string" === typeof input.url && (
|
296
|
+
})) && (undefined === input.url || "string" === typeof input.url && (/^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url) || $guard(_exceptionable, {
|
297
297
|
path: _path + ".url",
|
298
|
-
expected: "string
|
298
|
+
expected: "string & Format<\"url\">",
|
299
299
|
value: input.url
|
300
300
|
})) || $guard(_exceptionable, {
|
301
301
|
path: _path + ".url",
|
302
|
-
expected: "(string | undefined)",
|
302
|
+
expected: "((string & Format<\"url\">) | undefined)",
|
303
303
|
value: input.url
|
304
304
|
}));
|
305
305
|
const $ao4 = (input, _path, _exceptionable = true) => ("string" === typeof input.url || $guard(_exceptionable, {
|
@@ -323,7 +323,7 @@ class NestiaMigrateApplication {
|
|
323
323
|
path: _path + ".securitySchemes",
|
324
324
|
expected: "(Record<string, ISwaggerSecurity> | undefined)",
|
325
325
|
value: input.securitySchemes
|
326
|
-
})) && $
|
326
|
+
})) && $ao19(input.securitySchemes, _path + ".securitySchemes", true && _exceptionable) || $guard(_exceptionable, {
|
327
327
|
path: _path + ".securitySchemes",
|
328
328
|
expected: "(Record<string, ISwaggerSecurity> | undefined)",
|
329
329
|
value: input.securitySchemes
|
@@ -335,11 +335,11 @@ class NestiaMigrateApplication {
|
|
335
335
|
if (RegExp(/(.*)/).test(key))
|
336
336
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
|
337
337
|
path: _path + $join(key),
|
338
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
338
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
339
339
|
value: value
|
340
340
|
})) && $au0(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
341
341
|
path: _path + $join(key),
|
342
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
342
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
343
343
|
value: value
|
344
344
|
});
|
345
345
|
return true;
|
@@ -373,17 +373,42 @@ class NestiaMigrateApplication {
|
|
373
373
|
expected: "(boolean | undefined)",
|
374
374
|
value: input["x-typia-rest"]
|
375
375
|
}));
|
376
|
-
const $ao8 = (input, _path, _exceptionable = true) => (
|
376
|
+
const $ao8 = (input, _path, _exceptionable = true) => ("null" === input.type || $guard(_exceptionable, {
|
377
|
+
path: _path + ".type",
|
378
|
+
expected: "\"null\"",
|
379
|
+
value: input.type
|
380
|
+
})) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
|
381
|
+
path: _path + ".title",
|
382
|
+
expected: "(string | undefined)",
|
383
|
+
value: input.title
|
384
|
+
})) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
385
|
+
path: _path + ".description",
|
386
|
+
expected: "(string | undefined)",
|
387
|
+
value: input.description
|
388
|
+
})) && (undefined === input.deprecated || "boolean" === typeof input.deprecated || $guard(_exceptionable, {
|
389
|
+
path: _path + ".deprecated",
|
390
|
+
expected: "(boolean | undefined)",
|
391
|
+
value: input.deprecated
|
392
|
+
})) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"] || $guard(_exceptionable, {
|
393
|
+
path: _path + "[\"x-typia-optional\"]",
|
394
|
+
expected: "(boolean | undefined)",
|
395
|
+
value: input["x-typia-optional"]
|
396
|
+
})) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"] || $guard(_exceptionable, {
|
397
|
+
path: _path + "[\"x-typia-rest\"]",
|
398
|
+
expected: "(boolean | undefined)",
|
399
|
+
value: input["x-typia-rest"]
|
400
|
+
}));
|
401
|
+
const $ao9 = (input, _path, _exceptionable = true) => ((Array.isArray(input.anyOf) || $guard(_exceptionable, {
|
377
402
|
path: _path + ".anyOf",
|
378
403
|
expected: "Array<ISwaggerSchema>",
|
379
404
|
value: input.anyOf
|
380
405
|
})) && input.anyOf.every((elem, _index3) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
381
406
|
path: _path + ".anyOf[" + _index3 + "]",
|
382
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
407
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
383
408
|
value: elem
|
384
409
|
})) && $au0(elem, _path + ".anyOf[" + _index3 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
385
410
|
path: _path + ".anyOf[" + _index3 + "]",
|
386
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
411
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
387
412
|
value: elem
|
388
413
|
})) || $guard(_exceptionable, {
|
389
414
|
path: _path + ".anyOf",
|
@@ -410,17 +435,17 @@ class NestiaMigrateApplication {
|
|
410
435
|
expected: "(boolean | undefined)",
|
411
436
|
value: input["x-typia-rest"]
|
412
437
|
}));
|
413
|
-
const $
|
438
|
+
const $ao10 = (input, _path, _exceptionable = true) => ((Array.isArray(input.oneOf) || $guard(_exceptionable, {
|
414
439
|
path: _path + ".oneOf",
|
415
440
|
expected: "Array<ISwaggerSchema>",
|
416
441
|
value: input.oneOf
|
417
442
|
})) && input.oneOf.every((elem, _index4) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
418
443
|
path: _path + ".oneOf[" + _index4 + "]",
|
419
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
444
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
420
445
|
value: elem
|
421
446
|
})) && $au0(elem, _path + ".oneOf[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
422
447
|
path: _path + ".oneOf[" + _index4 + "]",
|
423
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
448
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
424
449
|
value: elem
|
425
450
|
})) || $guard(_exceptionable, {
|
426
451
|
path: _path + ".oneOf",
|
@@ -447,7 +472,7 @@ class NestiaMigrateApplication {
|
|
447
472
|
expected: "(boolean | undefined)",
|
448
473
|
value: input["x-typia-rest"]
|
449
474
|
}));
|
450
|
-
const $
|
475
|
+
const $ao11 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "boolean" === typeof input["default"] || $guard(_exceptionable, {
|
451
476
|
path: _path + "[\"default\"]",
|
452
477
|
expected: "(boolean | undefined)",
|
453
478
|
value: input["default"]
|
@@ -492,31 +517,19 @@ class NestiaMigrateApplication {
|
|
492
517
|
expected: "(boolean | undefined)",
|
493
518
|
value: input["x-typia-rest"]
|
494
519
|
}));
|
495
|
-
const $
|
496
|
-
path: _path + "[\"default\"]",
|
497
|
-
expected: "number (@type int)",
|
498
|
-
value: input["default"]
|
499
|
-
})) && (-2147483648 <= input["default"] && input["default"] <= 2147483647 || $guard(_exceptionable, {
|
520
|
+
const $ao12 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647 || $guard(_exceptionable, {
|
500
521
|
path: _path + "[\"default\"]",
|
501
|
-
expected: "number
|
522
|
+
expected: "number & Type<\"int32\">",
|
502
523
|
value: input["default"]
|
503
524
|
})) || $guard(_exceptionable, {
|
504
525
|
path: _path + "[\"default\"]",
|
505
|
-
expected: "(number | undefined)",
|
526
|
+
expected: "((number & Type<\"int32\">) | undefined)",
|
506
527
|
value: input["default"]
|
507
528
|
})) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || $guard(_exceptionable, {
|
508
529
|
path: _path + "[\"enum\"]",
|
509
530
|
expected: "(Array<number> | undefined)",
|
510
531
|
value: input["enum"]
|
511
|
-
})) && input["enum"].every((elem, _index6) => "number" === typeof elem
|
512
|
-
path: _path + "[\"enum\"][" + _index6 + "]",
|
513
|
-
expected: "number (@type int)",
|
514
|
-
value: elem
|
515
|
-
})) && (-2147483648 <= elem && elem <= 2147483647 || $guard(_exceptionable, {
|
516
|
-
path: _path + "[\"enum\"][" + _index6 + "]",
|
517
|
-
expected: "number (@type int)",
|
518
|
-
value: elem
|
519
|
-
})) || $guard(_exceptionable, {
|
532
|
+
})) && input["enum"].every((elem, _index6) => "number" === typeof elem || $guard(_exceptionable, {
|
520
533
|
path: _path + "[\"enum\"][" + _index6 + "]",
|
521
534
|
expected: "number",
|
522
535
|
value: elem
|
@@ -524,29 +537,21 @@ class NestiaMigrateApplication {
|
|
524
537
|
path: _path + "[\"enum\"]",
|
525
538
|
expected: "(Array<number> | undefined)",
|
526
539
|
value: input["enum"]
|
527
|
-
})) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum || $guard(_exceptionable, {
|
540
|
+
})) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647 || $guard(_exceptionable, {
|
528
541
|
path: _path + ".minimum",
|
529
|
-
expected: "number
|
530
|
-
value: input.minimum
|
531
|
-
})) && (-2147483648 <= input.minimum && input.minimum <= 2147483647 || $guard(_exceptionable, {
|
532
|
-
path: _path + ".minimum",
|
533
|
-
expected: "number (@type int)",
|
542
|
+
expected: "number & Type<\"int32\">",
|
534
543
|
value: input.minimum
|
535
544
|
})) || $guard(_exceptionable, {
|
536
545
|
path: _path + ".minimum",
|
537
|
-
expected: "(number | undefined)",
|
546
|
+
expected: "((number & Type<\"int32\">) | undefined)",
|
538
547
|
value: input.minimum
|
539
|
-
})) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum || $guard(_exceptionable, {
|
540
|
-
path: _path + ".maximum",
|
541
|
-
expected: "number (@type int)",
|
542
|
-
value: input.maximum
|
543
|
-
})) && (-2147483648 <= input.maximum && input.maximum <= 2147483647 || $guard(_exceptionable, {
|
548
|
+
})) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647 || $guard(_exceptionable, {
|
544
549
|
path: _path + ".maximum",
|
545
|
-
expected: "number
|
550
|
+
expected: "number & Type<\"int32\">",
|
546
551
|
value: input.maximum
|
547
552
|
})) || $guard(_exceptionable, {
|
548
553
|
path: _path + ".maximum",
|
549
|
-
expected: "(number | undefined)",
|
554
|
+
expected: "((number & Type<\"int32\">) | undefined)",
|
550
555
|
value: input.maximum
|
551
556
|
})) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || $guard(_exceptionable, {
|
552
557
|
path: _path + ".exclusiveMinimum",
|
@@ -556,21 +561,13 @@ class NestiaMigrateApplication {
|
|
556
561
|
path: _path + ".exclusiveMaximum",
|
557
562
|
expected: "(boolean | undefined)",
|
558
563
|
value: input.exclusiveMaximum
|
559
|
-
})) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf || $guard(_exceptionable, {
|
564
|
+
})) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295 || $guard(_exceptionable, {
|
560
565
|
path: _path + ".multipleOf",
|
561
|
-
expected: "number
|
562
|
-
value: input.multipleOf
|
563
|
-
})) && (0 <= input.multipleOf || $guard(_exceptionable, {
|
564
|
-
path: _path + ".multipleOf",
|
565
|
-
expected: "number (@type uint)",
|
566
|
-
value: input.multipleOf
|
567
|
-
})) && (input.multipleOf <= 4294967295 || $guard(_exceptionable, {
|
568
|
-
path: _path + ".multipleOf",
|
569
|
-
expected: "number (@type uint)",
|
566
|
+
expected: "number & Type<\"uint32\">",
|
570
567
|
value: input.multipleOf
|
571
568
|
})) || $guard(_exceptionable, {
|
572
569
|
path: _path + ".multipleOf",
|
573
|
-
expected: "(number | undefined)",
|
570
|
+
expected: "((number & Type<\"uint32\">) | undefined)",
|
574
571
|
value: input.multipleOf
|
575
572
|
})) && ("integer" === input.type || $guard(_exceptionable, {
|
576
573
|
path: _path + ".type",
|
@@ -601,7 +598,7 @@ class NestiaMigrateApplication {
|
|
601
598
|
expected: "(boolean | undefined)",
|
602
599
|
value: input["x-typia-rest"]
|
603
600
|
}));
|
604
|
-
const $
|
601
|
+
const $ao13 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "number" === typeof input["default"] || $guard(_exceptionable, {
|
605
602
|
path: _path + "[\"default\"]",
|
606
603
|
expected: "(number | undefined)",
|
607
604
|
value: input["default"]
|
@@ -666,7 +663,7 @@ class NestiaMigrateApplication {
|
|
666
663
|
expected: "(boolean | undefined)",
|
667
664
|
value: input["x-typia-rest"]
|
668
665
|
}));
|
669
|
-
const $
|
666
|
+
const $ao14 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "string" === typeof input["default"] || $guard(_exceptionable, {
|
670
667
|
path: _path + "[\"default\"]",
|
671
668
|
expected: "(string | undefined)",
|
672
669
|
value: input["default"]
|
@@ -690,37 +687,21 @@ class NestiaMigrateApplication {
|
|
690
687
|
path: _path + ".pattern",
|
691
688
|
expected: "(string | undefined)",
|
692
689
|
value: input.pattern
|
693
|
-
})) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength || $guard(_exceptionable, {
|
690
|
+
})) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295 || $guard(_exceptionable, {
|
694
691
|
path: _path + ".minLength",
|
695
|
-
expected: "number
|
696
|
-
value: input.minLength
|
697
|
-
})) && (0 <= input.minLength || $guard(_exceptionable, {
|
698
|
-
path: _path + ".minLength",
|
699
|
-
expected: "number (@type uint)",
|
700
|
-
value: input.minLength
|
701
|
-
})) && (input.minLength <= 4294967295 || $guard(_exceptionable, {
|
702
|
-
path: _path + ".minLength",
|
703
|
-
expected: "number (@type uint)",
|
692
|
+
expected: "number & Type<\"uint32\">",
|
704
693
|
value: input.minLength
|
705
694
|
})) || $guard(_exceptionable, {
|
706
695
|
path: _path + ".minLength",
|
707
|
-
expected: "(number | undefined)",
|
696
|
+
expected: "((number & Type<\"uint32\">) | undefined)",
|
708
697
|
value: input.minLength
|
709
|
-
})) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength || $guard(_exceptionable, {
|
710
|
-
path: _path + ".maxLength",
|
711
|
-
expected: "number (@type uint)",
|
712
|
-
value: input.maxLength
|
713
|
-
})) && (0 <= input.maxLength || $guard(_exceptionable, {
|
714
|
-
path: _path + ".maxLength",
|
715
|
-
expected: "number (@type uint)",
|
716
|
-
value: input.maxLength
|
717
|
-
})) && (input.maxLength <= 4294967295 || $guard(_exceptionable, {
|
698
|
+
})) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295 || $guard(_exceptionable, {
|
718
699
|
path: _path + ".maxLength",
|
719
|
-
expected: "number
|
700
|
+
expected: "number & Type<\"uint32\">",
|
720
701
|
value: input.maxLength
|
721
702
|
})) || $guard(_exceptionable, {
|
722
703
|
path: _path + ".maxLength",
|
723
|
-
expected: "(number | undefined)",
|
704
|
+
expected: "((number & Type<\"uint32\">) | undefined)",
|
724
705
|
value: input.maxLength
|
725
706
|
})) && ("string" === input.type || $guard(_exceptionable, {
|
726
707
|
path: _path + ".type",
|
@@ -751,51 +732,35 @@ class NestiaMigrateApplication {
|
|
751
732
|
expected: "(boolean | undefined)",
|
752
733
|
value: input["x-typia-rest"]
|
753
734
|
}));
|
754
|
-
const $
|
735
|
+
const $ao15 = (input, _path, _exceptionable = true) => (("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $guard(_exceptionable, {
|
755
736
|
path: _path + ".items",
|
756
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
737
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
757
738
|
value: input.items
|
758
739
|
})) && $au0(input.items, _path + ".items", true && _exceptionable) || $guard(_exceptionable, {
|
759
740
|
path: _path + ".items",
|
760
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
741
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
761
742
|
value: input.items
|
762
|
-
})) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems || $guard(_exceptionable, {
|
743
|
+
})) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 4294967295 || $guard(_exceptionable, {
|
763
744
|
path: _path + ".minItems",
|
764
|
-
expected: "number
|
765
|
-
value: input.minItems
|
766
|
-
})) && (0 <= input.minItems || $guard(_exceptionable, {
|
767
|
-
path: _path + ".minItems",
|
768
|
-
expected: "number (@type uint)",
|
769
|
-
value: input.minItems
|
770
|
-
})) && (input.minItems <= 4294967295 || $guard(_exceptionable, {
|
771
|
-
path: _path + ".minItems",
|
772
|
-
expected: "number (@type uint)",
|
745
|
+
expected: "number & Type<\"uint32\">",
|
773
746
|
value: input.minItems
|
774
747
|
})) || $guard(_exceptionable, {
|
775
748
|
path: _path + ".minItems",
|
776
|
-
expected: "(number | undefined)",
|
749
|
+
expected: "((number & Type<\"uint32\">) | undefined)",
|
777
750
|
value: input.minItems
|
778
|
-
})) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems || $guard(_exceptionable, {
|
779
|
-
path: _path + ".maxItems",
|
780
|
-
expected: "number (@type uint)",
|
781
|
-
value: input.maxItems
|
782
|
-
})) && (0 <= input.maxItems || $guard(_exceptionable, {
|
783
|
-
path: _path + ".maxItems",
|
784
|
-
expected: "number (@type uint)",
|
785
|
-
value: input.maxItems
|
786
|
-
})) && (input.maxItems <= 4294967295 || $guard(_exceptionable, {
|
751
|
+
})) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295 || $guard(_exceptionable, {
|
787
752
|
path: _path + ".maxItems",
|
788
|
-
expected: "number
|
753
|
+
expected: "number & Type<\"uint32\">",
|
789
754
|
value: input.maxItems
|
790
755
|
})) || $guard(_exceptionable, {
|
791
756
|
path: _path + ".maxItems",
|
792
|
-
expected: "(number | undefined)",
|
757
|
+
expected: "((number & Type<\"uint32\">) | undefined)",
|
793
758
|
value: input.maxItems
|
794
759
|
})) && (undefined === input["x-typia-tuple"] || ("object" === typeof input["x-typia-tuple"] && null !== input["x-typia-tuple"] || $guard(_exceptionable, {
|
795
760
|
path: _path + "[\"x-typia-tuple\"]",
|
796
761
|
expected: "(ISwaggerSchema.ITuple | undefined)",
|
797
762
|
value: input["x-typia-tuple"]
|
798
|
-
})) && $
|
763
|
+
})) && $ao18(input["x-typia-tuple"], _path + "[\"x-typia-tuple\"]", true && _exceptionable) || $guard(_exceptionable, {
|
799
764
|
path: _path + "[\"x-typia-tuple\"]",
|
800
765
|
expected: "(ISwaggerSchema.ITuple | undefined)",
|
801
766
|
value: input["x-typia-tuple"]
|
@@ -828,7 +793,7 @@ class NestiaMigrateApplication {
|
|
828
793
|
expected: "(boolean | undefined)",
|
829
794
|
value: input["x-typia-rest"]
|
830
795
|
}));
|
831
|
-
const $
|
796
|
+
const $ao16 = (input, _path, _exceptionable = true) => (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
|
832
797
|
path: _path + ".properties",
|
833
798
|
expected: "(Record<string, ISwaggerSchema> | undefined)",
|
834
799
|
value: input.properties
|
@@ -850,15 +815,15 @@ class NestiaMigrateApplication {
|
|
850
815
|
value: input.required
|
851
816
|
})) && ((null !== input.additionalProperties || $guard(_exceptionable, {
|
852
817
|
path: _path + ".additionalProperties",
|
853
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | boolean | undefined)",
|
818
|
+
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)",
|
854
819
|
value: input.additionalProperties
|
855
820
|
})) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || $guard(_exceptionable, {
|
856
821
|
path: _path + ".additionalProperties",
|
857
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | boolean | undefined)",
|
822
|
+
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)",
|
858
823
|
value: input.additionalProperties
|
859
824
|
})) && $au0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || $guard(_exceptionable, {
|
860
825
|
path: _path + ".additionalProperties",
|
861
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown | boolean | undefined)",
|
826
|
+
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)",
|
862
827
|
value: input.additionalProperties
|
863
828
|
}))) && (undefined === input["x-typia-patternProperties"] || ("object" === typeof input["x-typia-patternProperties"] && null !== input["x-typia-patternProperties"] && false === Array.isArray(input["x-typia-patternProperties"]) || $guard(_exceptionable, {
|
864
829
|
path: _path + "[\"x-typia-patternProperties\"]",
|
@@ -897,7 +862,7 @@ class NestiaMigrateApplication {
|
|
897
862
|
expected: "(boolean | undefined)",
|
898
863
|
value: input["x-typia-rest"]
|
899
864
|
}));
|
900
|
-
const $
|
865
|
+
const $ao17 = (input, _path, _exceptionable = true) => ("string" === typeof input.$ref || $guard(_exceptionable, {
|
901
866
|
path: _path + ".$ref",
|
902
867
|
expected: "string",
|
903
868
|
value: input.$ref
|
@@ -922,17 +887,17 @@ class NestiaMigrateApplication {
|
|
922
887
|
expected: "(boolean | undefined)",
|
923
888
|
value: input["x-typia-rest"]
|
924
889
|
}));
|
925
|
-
const $
|
890
|
+
const $ao18 = (input, _path, _exceptionable = true) => ((Array.isArray(input.items) || $guard(_exceptionable, {
|
926
891
|
path: _path + ".items",
|
927
892
|
expected: "Array<ISwaggerSchema>",
|
928
893
|
value: input.items
|
929
894
|
})) && input.items.every((elem, _index10) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
|
930
895
|
path: _path + ".items[" + _index10 + "]",
|
931
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
896
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
932
897
|
value: elem
|
933
898
|
})) && $au0(elem, _path + ".items[" + _index10 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
934
899
|
path: _path + ".items[" + _index10 + "]",
|
935
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
900
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
936
901
|
value: elem
|
937
902
|
})) || $guard(_exceptionable, {
|
938
903
|
path: _path + ".items",
|
@@ -967,7 +932,7 @@ class NestiaMigrateApplication {
|
|
967
932
|
expected: "(boolean | undefined)",
|
968
933
|
value: input["x-typia-rest"]
|
969
934
|
}));
|
970
|
-
const $
|
935
|
+
const $ao19 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
971
936
|
const value = input[key];
|
972
937
|
if (undefined === value)
|
973
938
|
return true;
|
@@ -983,7 +948,7 @@ class NestiaMigrateApplication {
|
|
983
948
|
});
|
984
949
|
return true;
|
985
950
|
});
|
986
|
-
const $
|
951
|
+
const $ao20 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
|
987
952
|
path: _path + ".type",
|
988
953
|
expected: "\"http\"",
|
989
954
|
value: input.type
|
@@ -992,7 +957,7 @@ class NestiaMigrateApplication {
|
|
992
957
|
expected: "\"basic\"",
|
993
958
|
value: input.scheme
|
994
959
|
}));
|
995
|
-
const $
|
960
|
+
const $ao21 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
|
996
961
|
path: _path + ".type",
|
997
962
|
expected: "\"http\"",
|
998
963
|
value: input.type
|
@@ -1005,7 +970,7 @@ class NestiaMigrateApplication {
|
|
1005
970
|
expected: "(string | undefined)",
|
1006
971
|
value: input.bearerFormat
|
1007
972
|
}));
|
1008
|
-
const $
|
973
|
+
const $ao22 = (input, _path, _exceptionable = true) => ("apiKey" === input.type || $guard(_exceptionable, {
|
1009
974
|
path: _path + ".type",
|
1010
975
|
expected: "\"apiKey\"",
|
1011
976
|
value: input.type
|
@@ -1018,7 +983,7 @@ class NestiaMigrateApplication {
|
|
1018
983
|
expected: "string",
|
1019
984
|
value: input.name
|
1020
985
|
}));
|
1021
|
-
const $
|
986
|
+
const $ao23 = (input, _path, _exceptionable = true) => ("openIdConnect" === input.type || $guard(_exceptionable, {
|
1022
987
|
path: _path + ".type",
|
1023
988
|
expected: "\"openIdConnect\"",
|
1024
989
|
value: input.type
|
@@ -1027,7 +992,7 @@ class NestiaMigrateApplication {
|
|
1027
992
|
expected: "string",
|
1028
993
|
value: input.openIdConnectUrl
|
1029
994
|
}));
|
1030
|
-
const $
|
995
|
+
const $ao24 = (input, _path, _exceptionable = true) => ("oauth2" === input.type || $guard(_exceptionable, {
|
1031
996
|
path: _path + ".type",
|
1032
997
|
expected: "\"oauth2\"",
|
1033
998
|
value: input.type
|
@@ -1035,7 +1000,7 @@ class NestiaMigrateApplication {
|
|
1035
1000
|
path: _path + ".flows",
|
1036
1001
|
expected: "ISwaggerSecurity.IOAuth2.IFlowSet",
|
1037
1002
|
value: input.flows
|
1038
|
-
})) && $
|
1003
|
+
})) && $ao25(input.flows, _path + ".flows", true && _exceptionable) || $guard(_exceptionable, {
|
1039
1004
|
path: _path + ".flows",
|
1040
1005
|
expected: "ISwaggerSecurity.IOAuth2.IFlowSet",
|
1041
1006
|
value: input.flows
|
@@ -1044,11 +1009,11 @@ class NestiaMigrateApplication {
|
|
1044
1009
|
expected: "(string | undefined)",
|
1045
1010
|
value: input.description
|
1046
1011
|
}));
|
1047
|
-
const $
|
1012
|
+
const $ao25 = (input, _path, _exceptionable = true) => (undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode || $guard(_exceptionable, {
|
1048
1013
|
path: _path + ".authorizationCode",
|
1049
1014
|
expected: "(ISwaggerSecurity.IOAuth2.IFlow | undefined)",
|
1050
1015
|
value: input.authorizationCode
|
1051
|
-
})) && $
|
1016
|
+
})) && $ao26(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $guard(_exceptionable, {
|
1052
1017
|
path: _path + ".authorizationCode",
|
1053
1018
|
expected: "(ISwaggerSecurity.IOAuth2.IFlow | undefined)",
|
1054
1019
|
value: input.authorizationCode
|
@@ -1056,7 +1021,7 @@ class NestiaMigrateApplication {
|
|
1056
1021
|
path: _path + ".implicit",
|
1057
1022
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
1058
1023
|
value: input.implicit
|
1059
|
-
})) && $
|
1024
|
+
})) && $ao28(input.implicit, _path + ".implicit", true && _exceptionable) || $guard(_exceptionable, {
|
1060
1025
|
path: _path + ".implicit",
|
1061
1026
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
1062
1027
|
value: input.implicit
|
@@ -1064,7 +1029,7 @@ class NestiaMigrateApplication {
|
|
1064
1029
|
path: _path + ".password",
|
1065
1030
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
1066
1031
|
value: input.password
|
1067
|
-
})) && $
|
1032
|
+
})) && $ao29(input.password, _path + ".password", true && _exceptionable) || $guard(_exceptionable, {
|
1068
1033
|
path: _path + ".password",
|
1069
1034
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
1070
1035
|
value: input.password
|
@@ -1072,12 +1037,12 @@ class NestiaMigrateApplication {
|
|
1072
1037
|
path: _path + ".clientCredentials",
|
1073
1038
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
1074
1039
|
value: input.clientCredentials
|
1075
|
-
})) && $
|
1040
|
+
})) && $ao29(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $guard(_exceptionable, {
|
1076
1041
|
path: _path + ".clientCredentials",
|
1077
1042
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
1078
1043
|
value: input.clientCredentials
|
1079
1044
|
}));
|
1080
|
-
const $
|
1045
|
+
const $ao26 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
|
1081
1046
|
path: _path + ".authorizationUrl",
|
1082
1047
|
expected: "string",
|
1083
1048
|
value: input.authorizationUrl
|
@@ -1093,12 +1058,12 @@ class NestiaMigrateApplication {
|
|
1093
1058
|
path: _path + ".scopes",
|
1094
1059
|
expected: "(Record<string, string> | undefined)",
|
1095
1060
|
value: input.scopes
|
1096
|
-
})) && $
|
1061
|
+
})) && $ao27(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
1097
1062
|
path: _path + ".scopes",
|
1098
1063
|
expected: "(Record<string, string> | undefined)",
|
1099
1064
|
value: input.scopes
|
1100
1065
|
}));
|
1101
|
-
const $
|
1066
|
+
const $ao27 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
1102
1067
|
const value = input[key];
|
1103
1068
|
if (undefined === value)
|
1104
1069
|
return true;
|
@@ -1110,7 +1075,7 @@ class NestiaMigrateApplication {
|
|
1110
1075
|
});
|
1111
1076
|
return true;
|
1112
1077
|
});
|
1113
|
-
const $
|
1078
|
+
const $ao28 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
|
1114
1079
|
path: _path + ".authorizationUrl",
|
1115
1080
|
expected: "string",
|
1116
1081
|
value: input.authorizationUrl
|
@@ -1122,12 +1087,12 @@ class NestiaMigrateApplication {
|
|
1122
1087
|
path: _path + ".scopes",
|
1123
1088
|
expected: "(Record<string, string> | undefined)",
|
1124
1089
|
value: input.scopes
|
1125
|
-
})) && $
|
1090
|
+
})) && $ao27(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
1126
1091
|
path: _path + ".scopes",
|
1127
1092
|
expected: "(Record<string, string> | undefined)",
|
1128
1093
|
value: input.scopes
|
1129
1094
|
}));
|
1130
|
-
const $
|
1095
|
+
const $ao29 = (input, _path, _exceptionable = true) => ("string" === typeof input.tokenUrl || $guard(_exceptionable, {
|
1131
1096
|
path: _path + ".tokenUrl",
|
1132
1097
|
expected: "string",
|
1133
1098
|
value: input.tokenUrl
|
@@ -1139,12 +1104,12 @@ class NestiaMigrateApplication {
|
|
1139
1104
|
path: _path + ".scopes",
|
1140
1105
|
expected: "(Record<string, string> | undefined)",
|
1141
1106
|
value: input.scopes
|
1142
|
-
})) && $
|
1107
|
+
})) && $ao27(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
1143
1108
|
path: _path + ".scopes",
|
1144
1109
|
expected: "(Record<string, string> | undefined)",
|
1145
1110
|
value: input.scopes
|
1146
1111
|
}));
|
1147
|
-
const $
|
1112
|
+
const $ao30 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
1148
1113
|
const value = input[key];
|
1149
1114
|
if (undefined === value)
|
1150
1115
|
return true;
|
@@ -1153,14 +1118,14 @@ class NestiaMigrateApplication {
|
|
1153
1118
|
path: _path + $join(key),
|
1154
1119
|
expected: "ISwagger.IPath",
|
1155
1120
|
value: value
|
1156
|
-
})) && $
|
1121
|
+
})) && $ao31(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
1157
1122
|
path: _path + $join(key),
|
1158
1123
|
expected: "ISwagger.IPath",
|
1159
1124
|
value: value
|
1160
1125
|
});
|
1161
1126
|
return true;
|
1162
1127
|
});
|
1163
|
-
const $
|
1128
|
+
const $ao31 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
1164
1129
|
const value = input[key];
|
1165
1130
|
if (undefined === value)
|
1166
1131
|
return true;
|
@@ -1169,14 +1134,14 @@ class NestiaMigrateApplication {
|
|
1169
1134
|
path: _path + $join(key),
|
1170
1135
|
expected: "ISwaggerRoute",
|
1171
1136
|
value: value
|
1172
|
-
})) && $
|
1137
|
+
})) && $ao32(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
1173
1138
|
path: _path + $join(key),
|
1174
1139
|
expected: "ISwaggerRoute",
|
1175
1140
|
value: value
|
1176
1141
|
});
|
1177
1142
|
return true;
|
1178
1143
|
});
|
1179
|
-
const $
|
1144
|
+
const $ao32 = (input, _path, _exceptionable = true) => (undefined === input.parameters || (Array.isArray(input.parameters) || $guard(_exceptionable, {
|
1180
1145
|
path: _path + ".parameters",
|
1181
1146
|
expected: "(Array<ISwaggerRoute.IParameter> | undefined)",
|
1182
1147
|
value: input.parameters
|
@@ -1184,7 +1149,7 @@ class NestiaMigrateApplication {
|
|
1184
1149
|
path: _path + ".parameters[" + _index11 + "]",
|
1185
1150
|
expected: "ISwaggerRoute.IParameter",
|
1186
1151
|
value: elem
|
1187
|
-
})) && $
|
1152
|
+
})) && $ao33(elem, _path + ".parameters[" + _index11 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
1188
1153
|
path: _path + ".parameters[" + _index11 + "]",
|
1189
1154
|
expected: "ISwaggerRoute.IParameter",
|
1190
1155
|
value: elem
|
@@ -1196,7 +1161,7 @@ class NestiaMigrateApplication {
|
|
1196
1161
|
path: _path + ".requestBody",
|
1197
1162
|
expected: "(ISwaggerRoute.IRequestBody | undefined)",
|
1198
1163
|
value: input.requestBody
|
1199
|
-
})) && $
|
1164
|
+
})) && $ao34(input.requestBody, _path + ".requestBody", true && _exceptionable) || $guard(_exceptionable, {
|
1200
1165
|
path: _path + ".requestBody",
|
1201
1166
|
expected: "(ISwaggerRoute.IRequestBody | undefined)",
|
1202
1167
|
value: input.requestBody
|
@@ -1204,7 +1169,7 @@ class NestiaMigrateApplication {
|
|
1204
1169
|
path: _path + ".responses",
|
1205
1170
|
expected: "(ISwaggerRoute.IResponseBody | undefined)",
|
1206
1171
|
value: input.responses
|
1207
|
-
})) && $
|
1172
|
+
})) && $ao38(input.responses, _path + ".responses", true && _exceptionable) || $guard(_exceptionable, {
|
1208
1173
|
path: _path + ".responses",
|
1209
1174
|
expected: "(ISwaggerRoute.IResponseBody | undefined)",
|
1210
1175
|
value: input.responses
|
@@ -1228,7 +1193,7 @@ class NestiaMigrateApplication {
|
|
1228
1193
|
path: _path + ".security[" + _index12 + "]",
|
1229
1194
|
expected: "Record<string, Array<string>>",
|
1230
1195
|
value: elem
|
1231
|
-
})) && $
|
1196
|
+
})) && $ao40(elem, _path + ".security[" + _index12 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
1232
1197
|
path: _path + ".security[" + _index12 + "]",
|
1233
1198
|
expected: "Record<string, Array<string>>",
|
1234
1199
|
value: elem
|
@@ -1256,7 +1221,7 @@ class NestiaMigrateApplication {
|
|
1256
1221
|
path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
|
1257
1222
|
expected: "IJsDocTagInfo",
|
1258
1223
|
value: elem
|
1259
|
-
})) && $
|
1224
|
+
})) && $ao41(elem, _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
1260
1225
|
path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
|
1261
1226
|
expected: "IJsDocTagInfo",
|
1262
1227
|
value: elem
|
@@ -1265,7 +1230,7 @@ class NestiaMigrateApplication {
|
|
1265
1230
|
expected: "(Array<IJsDocTagInfo> | undefined)",
|
1266
1231
|
value: input["x-nestia-jsDocTags"]
|
1267
1232
|
}));
|
1268
|
-
const $
|
1233
|
+
const $ao33 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
1269
1234
|
path: _path + ".name",
|
1270
1235
|
expected: "(string | undefined)",
|
1271
1236
|
value: input.name
|
@@ -1275,11 +1240,11 @@ class NestiaMigrateApplication {
|
|
1275
1240
|
value: input["in"]
|
1276
1241
|
})) && (("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $guard(_exceptionable, {
|
1277
1242
|
path: _path + ".schema",
|
1278
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1243
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1279
1244
|
value: input.schema
|
1280
1245
|
})) && $au0(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
|
1281
1246
|
path: _path + ".schema",
|
1282
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1247
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1283
1248
|
value: input.schema
|
1284
1249
|
})) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
|
1285
1250
|
path: _path + ".required",
|
@@ -1290,7 +1255,7 @@ class NestiaMigrateApplication {
|
|
1290
1255
|
expected: "(string | undefined)",
|
1291
1256
|
value: input.description
|
1292
1257
|
}));
|
1293
|
-
const $
|
1258
|
+
const $ao34 = (input, _path, _exceptionable = true) => (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
1294
1259
|
path: _path + ".description",
|
1295
1260
|
expected: "(string | undefined)",
|
1296
1261
|
value: input.description
|
@@ -1298,7 +1263,7 @@ class NestiaMigrateApplication {
|
|
1298
1263
|
path: _path + ".content",
|
1299
1264
|
expected: "ISwaggerRoute.IContent",
|
1300
1265
|
value: input.content
|
1301
|
-
})) && $
|
1266
|
+
})) && $ao35(input.content, _path + ".content", true && _exceptionable) || $guard(_exceptionable, {
|
1302
1267
|
path: _path + ".content",
|
1303
1268
|
expected: "ISwaggerRoute.IContent",
|
1304
1269
|
value: input.content
|
@@ -1311,11 +1276,11 @@ class NestiaMigrateApplication {
|
|
1311
1276
|
expected: "(boolean | undefined)",
|
1312
1277
|
value: input["x-nestia-encrypted"]
|
1313
1278
|
}));
|
1314
|
-
const $
|
1279
|
+
const $ao35 = (input, _path, _exceptionable = true) => (undefined === input["text/plain"] || ("object" === typeof input["text/plain"] && null !== input["text/plain"] || $guard(_exceptionable, {
|
1315
1280
|
path: _path + "[\"text/plain\"]",
|
1316
1281
|
expected: "(__type | undefined)",
|
1317
1282
|
value: input["text/plain"]
|
1318
|
-
})) && $
|
1283
|
+
})) && $ao36(input["text/plain"], _path + "[\"text/plain\"]", true && _exceptionable) || $guard(_exceptionable, {
|
1319
1284
|
path: _path + "[\"text/plain\"]",
|
1320
1285
|
expected: "(__type | undefined)",
|
1321
1286
|
value: input["text/plain"]
|
@@ -1323,30 +1288,30 @@ class NestiaMigrateApplication {
|
|
1323
1288
|
path: _path + "[\"application/json\"]",
|
1324
1289
|
expected: "(__type.o1 | undefined)",
|
1325
1290
|
value: input["application/json"]
|
1326
|
-
})) && $
|
1291
|
+
})) && $ao37(input["application/json"], _path + "[\"application/json\"]", true && _exceptionable) || $guard(_exceptionable, {
|
1327
1292
|
path: _path + "[\"application/json\"]",
|
1328
1293
|
expected: "(__type.o1 | undefined)",
|
1329
1294
|
value: input["application/json"]
|
1330
1295
|
}));
|
1331
|
-
const $
|
1296
|
+
const $ao36 = (input, _path, _exceptionable = true) => ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $guard(_exceptionable, {
|
1332
1297
|
path: _path + ".schema",
|
1333
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1298
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1334
1299
|
value: input.schema
|
1335
1300
|
})) && $au0(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
|
1336
1301
|
path: _path + ".schema",
|
1337
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1302
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1338
1303
|
value: input.schema
|
1339
1304
|
});
|
1340
|
-
const $
|
1305
|
+
const $ao37 = (input, _path, _exceptionable = true) => ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $guard(_exceptionable, {
|
1341
1306
|
path: _path + ".schema",
|
1342
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1307
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1343
1308
|
value: input.schema
|
1344
1309
|
})) && $au0(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
|
1345
1310
|
path: _path + ".schema",
|
1346
|
-
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1311
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1347
1312
|
value: input.schema
|
1348
1313
|
});
|
1349
|
-
const $
|
1314
|
+
const $ao38 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
1350
1315
|
const value = input[key];
|
1351
1316
|
if (undefined === value)
|
1352
1317
|
return true;
|
@@ -1355,14 +1320,14 @@ class NestiaMigrateApplication {
|
|
1355
1320
|
path: _path + $join(key),
|
1356
1321
|
expected: "__type.o2",
|
1357
1322
|
value: value
|
1358
|
-
})) && $
|
1323
|
+
})) && $ao39(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
1359
1324
|
path: _path + $join(key),
|
1360
1325
|
expected: "__type.o2",
|
1361
1326
|
value: value
|
1362
1327
|
});
|
1363
1328
|
return true;
|
1364
1329
|
});
|
1365
|
-
const $
|
1330
|
+
const $ao39 = (input, _path, _exceptionable = true) => (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
1366
1331
|
path: _path + ".description",
|
1367
1332
|
expected: "(string | undefined)",
|
1368
1333
|
value: input.description
|
@@ -1370,7 +1335,7 @@ class NestiaMigrateApplication {
|
|
1370
1335
|
path: _path + ".content",
|
1371
1336
|
expected: "(ISwaggerRoute.IContent | undefined)",
|
1372
1337
|
value: input.content
|
1373
|
-
})) && $
|
1338
|
+
})) && $ao35(input.content, _path + ".content", true && _exceptionable) || $guard(_exceptionable, {
|
1374
1339
|
path: _path + ".content",
|
1375
1340
|
expected: "(ISwaggerRoute.IContent | undefined)",
|
1376
1341
|
value: input.content
|
@@ -1379,7 +1344,7 @@ class NestiaMigrateApplication {
|
|
1379
1344
|
expected: "(boolean | undefined)",
|
1380
1345
|
value: input["x-nestia-encrypted"]
|
1381
1346
|
}));
|
1382
|
-
const $
|
1347
|
+
const $ao40 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
1383
1348
|
const value = input[key];
|
1384
1349
|
if (undefined === value)
|
1385
1350
|
return true;
|
@@ -1399,7 +1364,7 @@ class NestiaMigrateApplication {
|
|
1399
1364
|
});
|
1400
1365
|
return true;
|
1401
1366
|
});
|
1402
|
-
const $
|
1367
|
+
const $ao41 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
1403
1368
|
path: _path + ".name",
|
1404
1369
|
expected: "string",
|
1405
1370
|
value: input.name
|
@@ -1411,7 +1376,7 @@ class NestiaMigrateApplication {
|
|
1411
1376
|
path: _path + ".text[" + _index16 + "]",
|
1412
1377
|
expected: "IJsDocTagInfo.IText",
|
1413
1378
|
value: elem
|
1414
|
-
})) && $
|
1379
|
+
})) && $ao42(elem, _path + ".text[" + _index16 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
1415
1380
|
path: _path + ".text[" + _index16 + "]",
|
1416
1381
|
expected: "IJsDocTagInfo.IText",
|
1417
1382
|
value: elem
|
@@ -1420,7 +1385,7 @@ class NestiaMigrateApplication {
|
|
1420
1385
|
expected: "(Array<IJsDocTagInfo.IText> | undefined)",
|
1421
1386
|
value: input.text
|
1422
1387
|
}));
|
1423
|
-
const $
|
1388
|
+
const $ao42 = (input, _path, _exceptionable = true) => ("string" === typeof input.text || $guard(_exceptionable, {
|
1424
1389
|
path: _path + ".text",
|
1425
1390
|
expected: "string",
|
1426
1391
|
value: input.text
|
@@ -1430,42 +1395,46 @@ class NestiaMigrateApplication {
|
|
1430
1395
|
value: input.kind
|
1431
1396
|
}));
|
1432
1397
|
const $au0 = (input, _path, _exceptionable = true) => (() => {
|
1433
|
-
if (
|
1398
|
+
if ("null" === input.type)
|
1434
1399
|
return $ao8(input, _path, true && _exceptionable);
|
1435
|
-
if (undefined !== input.
|
1400
|
+
else if (undefined !== input.anyOf)
|
1436
1401
|
return $ao9(input, _path, true && _exceptionable);
|
1437
|
-
if (
|
1402
|
+
else if (undefined !== input.oneOf)
|
1438
1403
|
return $ao10(input, _path, true && _exceptionable);
|
1439
|
-
if ("
|
1440
|
-
return $ao12(input, _path, true && _exceptionable);
|
1441
|
-
if ("integer" === input.type)
|
1404
|
+
else if ("boolean" === input.type)
|
1442
1405
|
return $ao11(input, _path, true && _exceptionable);
|
1443
|
-
if ("
|
1406
|
+
else if ("number" === input.type)
|
1444
1407
|
return $ao13(input, _path, true && _exceptionable);
|
1445
|
-
if ("
|
1408
|
+
else if ("integer" === input.type)
|
1409
|
+
return $ao12(input, _path, true && _exceptionable);
|
1410
|
+
else if ("string" === input.type)
|
1446
1411
|
return $ao14(input, _path, true && _exceptionable);
|
1447
|
-
if ("
|
1412
|
+
else if ("array" === input.type)
|
1448
1413
|
return $ao15(input, _path, true && _exceptionable);
|
1449
|
-
if (
|
1414
|
+
else if ("object" === input.type)
|
1450
1415
|
return $ao16(input, _path, true && _exceptionable);
|
1451
|
-
|
1416
|
+
else if (undefined !== input.$ref)
|
1417
|
+
return $ao17(input, _path, true && _exceptionable);
|
1418
|
+
else
|
1419
|
+
return $ao7(input, _path, true && _exceptionable);
|
1452
1420
|
})();
|
1453
1421
|
const $au1 = (input, _path, _exceptionable = true) => (() => {
|
1454
1422
|
if ("basic" === input.scheme)
|
1455
|
-
return $ao19(input, _path, true && _exceptionable);
|
1456
|
-
if ("bearer" === input.scheme)
|
1457
1423
|
return $ao20(input, _path, true && _exceptionable);
|
1458
|
-
if ("
|
1424
|
+
else if ("bearer" === input.scheme)
|
1459
1425
|
return $ao21(input, _path, true && _exceptionable);
|
1460
|
-
if ("
|
1426
|
+
else if ("apiKey" === input.type)
|
1461
1427
|
return $ao22(input, _path, true && _exceptionable);
|
1462
|
-
if ("
|
1428
|
+
else if ("openIdConnect" === input.type)
|
1463
1429
|
return $ao23(input, _path, true && _exceptionable);
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1430
|
+
else if ("oauth2" === input.type)
|
1431
|
+
return $ao24(input, _path, true && _exceptionable);
|
1432
|
+
else
|
1433
|
+
return $guard(_exceptionable, {
|
1434
|
+
path: _path,
|
1435
|
+
expected: "(ISwaggerSecurity.IHttpBasic | ISwaggerSecurity.IHttpBearer | ISwaggerSecurity.IApiKey | ISwaggerSecurity.IOpenId | ISwaggerSecurity.IOAuth2)",
|
1436
|
+
value: input
|
1437
|
+
});
|
1469
1438
|
})();
|
1470
1439
|
return ("object" === typeof input && null !== input || $guard(true, {
|
1471
1440
|
path: _path + "",
|