@nestia/migrate 0.9.7 → 0.10.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/lib/MigrateApplication.js +194 -100
- package/lib/MigrateApplication.js.map +1 -1
- package/lib/analyzers/MigrateMethodAnalyzer.js +31 -18
- package/lib/analyzers/MigrateMethodAnalyzer.js.map +1 -1
- package/lib/programmers/MigrateSchemaProgrammer.js +1 -1
- package/lib/programmers/MigrateSchemaProgrammer.js.map +1 -1
- package/lib/structures/ISwaggerComponents.d.ts +5 -1
- package/lib/structures/ISwaggerRoute.d.ts +4 -33
- package/lib/structures/ISwaggerRouteBodyContent.d.ts +14 -0
- package/lib/structures/ISwaggerRouteBodyContent.js +3 -0
- package/lib/structures/ISwaggerRouteBodyContent.js.map +1 -0
- package/lib/structures/ISwaggerRouteHeader.js +2 -0
- package/lib/structures/ISwaggerRouteHeader.js.map +1 -0
- package/lib/structures/ISwaggerRouteRequestBody.d.ts +11 -0
- package/lib/structures/ISwaggerRouteRequestBody.js +3 -0
- package/lib/structures/ISwaggerRouteRequestBody.js.map +1 -0
- package/lib/structures/ISwaggerRouteResponse.d.ts +10 -0
- package/lib/structures/ISwaggerRouteResponse.js +3 -0
- package/lib/structures/ISwaggerRouteResponse.js.map +1 -0
- package/lib/utils/SwaggerComponentsExplorer.d.ts +9 -0
- package/lib/utils/SwaggerComponentsExplorer.js +29 -0
- package/lib/utils/SwaggerComponentsExplorer.js.map +1 -0
- package/lib/utils/SwaggerExplorer.d.ts +0 -0
- package/lib/utils/SwaggerExplorer.js +2 -0
- package/lib/utils/SwaggerExplorer.js.map +1 -0
- package/lib/utils/SwaggerTypeChecker.d.ts +0 -2
- package/lib/utils/SwaggerTypeChecker.js +0 -6
- package/lib/utils/SwaggerTypeChecker.js.map +1 -1
- package/package.json +1 -1
- package/src/analyzers/MigrateMethodAnalyzer.ts +59 -19
- package/src/bundles/NEST_TEMPLATE.ts +1 -1
- package/src/programmers/MigrateSchemaProgrammer.ts +4 -1
- package/src/structures/ISwaggerComponents.ts +5 -1
- package/src/structures/ISwaggerRoute.ts +7 -36
- package/src/structures/ISwaggerRouteBodyContent.ts +15 -0
- package/src/structures/ISwaggerRouteHeader.ts +0 -0
- package/src/structures/ISwaggerRouteRequestBody.ts +12 -0
- package/src/structures/ISwaggerRouteResponse.ts +11 -0
- package/src/utils/SwaggerComponentsExplorer.ts +43 -0
- package/src/utils/SwaggerTypeChecker.ts +0 -12
- /package/{src/structures/ISwaggerRouteHeaders.ts → lib/structures/ISwaggerRouteHeader.d.ts} +0 -0
@@ -20,12 +20,12 @@ class MigrateApplication {
|
|
20
20
|
const result = (input => {
|
21
21
|
const errors = [];
|
22
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) && $
|
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
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
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
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
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.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) && $
|
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
29
|
const $io6 = input => Object.keys(input).every(key => {
|
30
30
|
const value = input[key];
|
31
31
|
if (undefined === value)
|
@@ -52,57 +52,66 @@ class MigrateApplication {
|
|
52
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
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
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 => {
|
55
64
|
const value = input[key];
|
56
65
|
if (undefined === value)
|
57
66
|
return true;
|
58
67
|
return "object" === typeof value && null !== value && $iu2(value);
|
59
68
|
});
|
60
|
-
const $
|
61
|
-
const $
|
62
|
-
const $
|
63
|
-
const $
|
64
|
-
const $
|
65
|
-
const $
|
66
|
-
const $
|
67
|
-
const $
|
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 => {
|
68
77
|
const value = input[key];
|
69
78
|
if (undefined === value)
|
70
79
|
return true;
|
71
80
|
return "string" === typeof value;
|
72
81
|
});
|
73
|
-
const $
|
74
|
-
const $
|
75
|
-
const $
|
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 => {
|
76
85
|
const value = input[key];
|
77
86
|
if (undefined === value)
|
78
87
|
return true;
|
79
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
88
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io37(value);
|
80
89
|
});
|
81
|
-
const $
|
82
|
-
const $
|
83
|
-
const $
|
84
|
-
const $
|
85
|
-
const $
|
86
|
-
const $io38 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
|
87
|
-
const $io39 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
|
88
|
-
const $io40 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
|
89
|
-
const $io41 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
|
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["*/*"]));
|
90
95
|
const $io42 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
|
91
|
-
const $io43 = input =>
|
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 => {
|
92
101
|
const value = input[key];
|
93
102
|
if (undefined === value)
|
94
103
|
return true;
|
95
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
104
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io48(value);
|
96
105
|
});
|
97
|
-
const $
|
98
|
-
const $
|
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 => {
|
99
108
|
const value = input[key];
|
100
109
|
if (undefined === value)
|
101
110
|
return true;
|
102
111
|
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
103
112
|
});
|
104
|
-
const $
|
105
|
-
const $
|
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;
|
106
115
|
const $iu0 = input => (() => {
|
107
116
|
if ("null" === input.type)
|
108
117
|
return $io9(input);
|
@@ -131,21 +140,21 @@ class MigrateApplication {
|
|
131
140
|
if (undefined !== input["in"])
|
132
141
|
return $io7(input);
|
133
142
|
else if (undefined !== input.$ref)
|
134
|
-
return $
|
143
|
+
return $io39(input);
|
135
144
|
else
|
136
145
|
return false;
|
137
146
|
})();
|
138
147
|
const $iu2 = input => (() => {
|
139
148
|
if ("basic" === input.scheme)
|
140
|
-
return $
|
149
|
+
return $io26(input);
|
141
150
|
else if ("bearer" === input.scheme)
|
142
|
-
return $
|
151
|
+
return $io27(input);
|
143
152
|
else if ("apiKey" === input.type)
|
144
|
-
return $
|
153
|
+
return $io28(input);
|
145
154
|
else if ("openIdConnect" === input.type)
|
146
|
-
return $
|
155
|
+
return $io29(input);
|
147
156
|
else if ("oauth2" === input.type)
|
148
|
-
return $
|
157
|
+
return $io30(input);
|
149
158
|
else
|
150
159
|
return false;
|
151
160
|
})();
|
@@ -195,7 +204,7 @@ class MigrateApplication {
|
|
195
204
|
path: _path + ".paths",
|
196
205
|
expected: "Record<string, ISwagger.IPath>",
|
197
206
|
value: input.paths
|
198
|
-
})) && $
|
207
|
+
})) && $vo36(input.paths, _path + ".paths", true && _exceptionable) || $report(_exceptionable, {
|
199
208
|
path: _path + ".paths",
|
200
209
|
expected: "Record<string, ISwagger.IPath>",
|
201
210
|
value: input.paths
|
@@ -207,7 +216,7 @@ class MigrateApplication {
|
|
207
216
|
path: _path + ".security[" + _index2 + "]",
|
208
217
|
expected: "Record<string, Array<string>>",
|
209
218
|
value: elem
|
210
|
-
})) && $
|
219
|
+
})) && $vo49(elem, _path + ".security[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
211
220
|
path: _path + ".security[" + _index2 + "]",
|
212
221
|
expected: "Record<string, Array<string>>",
|
213
222
|
value: elem
|
@@ -304,6 +313,14 @@ class MigrateApplication {
|
|
304
313
|
path: _path + ".parameters",
|
305
314
|
expected: "(Record<string, ISwaggerRouteParameter> | undefined)",
|
306
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
|
307
324
|
}), undefined === input.schemas || ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || $report(_exceptionable, {
|
308
325
|
path: _path + ".schemas",
|
309
326
|
expected: "(Record<string, ISwaggerSchema> | undefined)",
|
@@ -316,14 +333,14 @@ class MigrateApplication {
|
|
316
333
|
path: _path + ".securitySchemes",
|
317
334
|
expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
|
318
335
|
value: input.securitySchemes
|
319
|
-
})) && $
|
336
|
+
})) && $vo25(input.securitySchemes, _path + ".securitySchemes", true && _exceptionable) || $report(_exceptionable, {
|
320
337
|
path: _path + ".securitySchemes",
|
321
338
|
expected: "(Record<string, ISwaggerSecurityScheme> | undefined)",
|
322
339
|
value: input.securitySchemes
|
323
|
-
}), undefined === input
|
324
|
-
path: _path + "
|
340
|
+
}), undefined === input["x-nestia-namespace"] || "string" === typeof input["x-nestia-namespace"] || $report(_exceptionable, {
|
341
|
+
path: _path + "[\"x-nestia-namespace\"]",
|
325
342
|
expected: "(string | undefined)",
|
326
|
-
value: input
|
343
|
+
value: input["x-nestia-namespace"]
|
327
344
|
})].every(flag => flag);
|
328
345
|
const $vo6 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
329
346
|
const value = input[key];
|
@@ -967,6 +984,83 @@ class MigrateApplication {
|
|
967
984
|
value: input["x-typia-rest"]
|
968
985
|
})].every(flag => flag);
|
969
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 => {
|
970
1064
|
const value = input[key];
|
971
1065
|
if (undefined === value)
|
972
1066
|
return true;
|
@@ -980,7 +1074,7 @@ class MigrateApplication {
|
|
980
1074
|
value: value
|
981
1075
|
});
|
982
1076
|
}).every(flag => flag)].every(flag => flag);
|
983
|
-
const $
|
1077
|
+
const $vo26 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
|
984
1078
|
path: _path + ".type",
|
985
1079
|
expected: "\"http\"",
|
986
1080
|
value: input.type
|
@@ -989,7 +1083,7 @@ class MigrateApplication {
|
|
989
1083
|
expected: "\"basic\"",
|
990
1084
|
value: input.scheme
|
991
1085
|
})].every(flag => flag);
|
992
|
-
const $
|
1086
|
+
const $vo27 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
|
993
1087
|
path: _path + ".type",
|
994
1088
|
expected: "\"http\"",
|
995
1089
|
value: input.type
|
@@ -1002,7 +1096,7 @@ class MigrateApplication {
|
|
1002
1096
|
expected: "(string | undefined)",
|
1003
1097
|
value: input.bearerFormat
|
1004
1098
|
})].every(flag => flag);
|
1005
|
-
const $
|
1099
|
+
const $vo28 = (input, _path, _exceptionable = true) => ["apiKey" === input.type || $report(_exceptionable, {
|
1006
1100
|
path: _path + ".type",
|
1007
1101
|
expected: "\"apiKey\"",
|
1008
1102
|
value: input.type
|
@@ -1015,7 +1109,7 @@ class MigrateApplication {
|
|
1015
1109
|
expected: "(string | undefined)",
|
1016
1110
|
value: input.name
|
1017
1111
|
})].every(flag => flag);
|
1018
|
-
const $
|
1112
|
+
const $vo29 = (input, _path, _exceptionable = true) => ["openIdConnect" === input.type || $report(_exceptionable, {
|
1019
1113
|
path: _path + ".type",
|
1020
1114
|
expected: "\"openIdConnect\"",
|
1021
1115
|
value: input.type
|
@@ -1024,7 +1118,7 @@ class MigrateApplication {
|
|
1024
1118
|
expected: "string",
|
1025
1119
|
value: input.openIdConnectUrl
|
1026
1120
|
})].every(flag => flag);
|
1027
|
-
const $
|
1121
|
+
const $vo30 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
1028
1122
|
path: _path + ".type",
|
1029
1123
|
expected: "\"oauth2\"",
|
1030
1124
|
value: input.type
|
@@ -1032,7 +1126,7 @@ class MigrateApplication {
|
|
1032
1126
|
path: _path + ".flows",
|
1033
1127
|
expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
|
1034
1128
|
value: input.flows
|
1035
|
-
})) && $
|
1129
|
+
})) && $vo31(input.flows, _path + ".flows", true && _exceptionable) || $report(_exceptionable, {
|
1036
1130
|
path: _path + ".flows",
|
1037
1131
|
expected: "ISwaggerSecurityScheme.IOAuth2.IFlowSet",
|
1038
1132
|
value: input.flows
|
@@ -1041,11 +1135,11 @@ class MigrateApplication {
|
|
1041
1135
|
expected: "(string | undefined)",
|
1042
1136
|
value: input.description
|
1043
1137
|
})].every(flag => flag);
|
1044
|
-
const $
|
1138
|
+
const $vo31 = (input, _path, _exceptionable = true) => [undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode || $report(_exceptionable, {
|
1045
1139
|
path: _path + ".authorizationCode",
|
1046
1140
|
expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
|
1047
1141
|
value: input.authorizationCode
|
1048
|
-
})) && $
|
1142
|
+
})) && $vo32(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $report(_exceptionable, {
|
1049
1143
|
path: _path + ".authorizationCode",
|
1050
1144
|
expected: "(ISwaggerSecurityScheme.IOAuth2.IFlow | undefined)",
|
1051
1145
|
value: input.authorizationCode
|
@@ -1053,7 +1147,7 @@ class MigrateApplication {
|
|
1053
1147
|
path: _path + ".implicit",
|
1054
1148
|
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
1055
1149
|
value: input.implicit
|
1056
|
-
})) && $
|
1150
|
+
})) && $vo34(input.implicit, _path + ".implicit", true && _exceptionable) || $report(_exceptionable, {
|
1057
1151
|
path: _path + ".implicit",
|
1058
1152
|
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
1059
1153
|
value: input.implicit
|
@@ -1061,7 +1155,7 @@ class MigrateApplication {
|
|
1061
1155
|
path: _path + ".password",
|
1062
1156
|
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
1063
1157
|
value: input.password
|
1064
|
-
})) && $
|
1158
|
+
})) && $vo35(input.password, _path + ".password", true && _exceptionable) || $report(_exceptionable, {
|
1065
1159
|
path: _path + ".password",
|
1066
1160
|
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
1067
1161
|
value: input.password
|
@@ -1069,12 +1163,12 @@ class MigrateApplication {
|
|
1069
1163
|
path: _path + ".clientCredentials",
|
1070
1164
|
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
1071
1165
|
value: input.clientCredentials
|
1072
|
-
})) && $
|
1166
|
+
})) && $vo35(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $report(_exceptionable, {
|
1073
1167
|
path: _path + ".clientCredentials",
|
1074
1168
|
expected: "(Omit<ISwaggerSecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
1075
1169
|
value: input.clientCredentials
|
1076
1170
|
})].every(flag => flag);
|
1077
|
-
const $
|
1171
|
+
const $vo32 = (input, _path, _exceptionable = true) => ["string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
1078
1172
|
path: _path + ".authorizationUrl",
|
1079
1173
|
expected: "string",
|
1080
1174
|
value: input.authorizationUrl
|
@@ -1090,12 +1184,12 @@ class MigrateApplication {
|
|
1090
1184
|
path: _path + ".scopes",
|
1091
1185
|
expected: "(Record<string, string> | undefined)",
|
1092
1186
|
value: input.scopes
|
1093
|
-
})) && $
|
1187
|
+
})) && $vo33(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
1094
1188
|
path: _path + ".scopes",
|
1095
1189
|
expected: "(Record<string, string> | undefined)",
|
1096
1190
|
value: input.scopes
|
1097
1191
|
})].every(flag => flag);
|
1098
|
-
const $
|
1192
|
+
const $vo33 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
1099
1193
|
const value = input[key];
|
1100
1194
|
if (undefined === value)
|
1101
1195
|
return true;
|
@@ -1105,7 +1199,7 @@ class MigrateApplication {
|
|
1105
1199
|
value: value
|
1106
1200
|
});
|
1107
1201
|
}).every(flag => flag)].every(flag => flag);
|
1108
|
-
const $
|
1202
|
+
const $vo34 = (input, _path, _exceptionable = true) => ["string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
1109
1203
|
path: _path + ".authorizationUrl",
|
1110
1204
|
expected: "string",
|
1111
1205
|
value: input.authorizationUrl
|
@@ -1117,12 +1211,12 @@ class MigrateApplication {
|
|
1117
1211
|
path: _path + ".scopes",
|
1118
1212
|
expected: "(Record<string, string> | undefined)",
|
1119
1213
|
value: input.scopes
|
1120
|
-
})) && $
|
1214
|
+
})) && $vo33(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
1121
1215
|
path: _path + ".scopes",
|
1122
1216
|
expected: "(Record<string, string> | undefined)",
|
1123
1217
|
value: input.scopes
|
1124
1218
|
})].every(flag => flag);
|
1125
|
-
const $
|
1219
|
+
const $vo35 = (input, _path, _exceptionable = true) => [undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $report(_exceptionable, {
|
1126
1220
|
path: _path + ".tokenUrl",
|
1127
1221
|
expected: "(string | undefined)",
|
1128
1222
|
value: input.tokenUrl
|
@@ -1134,12 +1228,12 @@ class MigrateApplication {
|
|
1134
1228
|
path: _path + ".scopes",
|
1135
1229
|
expected: "(Record<string, string> | undefined)",
|
1136
1230
|
value: input.scopes
|
1137
|
-
})) && $
|
1231
|
+
})) && $vo33(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
1138
1232
|
path: _path + ".scopes",
|
1139
1233
|
expected: "(Record<string, string> | undefined)",
|
1140
1234
|
value: input.scopes
|
1141
1235
|
})].every(flag => flag);
|
1142
|
-
const $
|
1236
|
+
const $vo36 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
1143
1237
|
const value = input[key];
|
1144
1238
|
if (undefined === value)
|
1145
1239
|
return true;
|
@@ -1147,17 +1241,17 @@ class MigrateApplication {
|
|
1147
1241
|
path: _path + $join(key),
|
1148
1242
|
expected: "ISwagger.IPath",
|
1149
1243
|
value: value
|
1150
|
-
})) && $
|
1244
|
+
})) && $vo37(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
1151
1245
|
path: _path + $join(key),
|
1152
1246
|
expected: "ISwagger.IPath",
|
1153
1247
|
value: value
|
1154
1248
|
});
|
1155
1249
|
}).every(flag => flag)].every(flag => flag);
|
1156
|
-
const $
|
1250
|
+
const $vo37 = (input, _path, _exceptionable = true) => [undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || $report(_exceptionable, {
|
1157
1251
|
path: _path + ".get",
|
1158
1252
|
expected: "(ISwaggerRoute | undefined)",
|
1159
1253
|
value: input.get
|
1160
|
-
})) && $
|
1254
|
+
})) && $vo38(input.get, _path + ".get", true && _exceptionable) || $report(_exceptionable, {
|
1161
1255
|
path: _path + ".get",
|
1162
1256
|
expected: "(ISwaggerRoute | undefined)",
|
1163
1257
|
value: input.get
|
@@ -1165,7 +1259,7 @@ class MigrateApplication {
|
|
1165
1259
|
path: _path + ".post",
|
1166
1260
|
expected: "(ISwaggerRoute | undefined)",
|
1167
1261
|
value: input.post
|
1168
|
-
})) && $
|
1262
|
+
})) && $vo38(input.post, _path + ".post", true && _exceptionable) || $report(_exceptionable, {
|
1169
1263
|
path: _path + ".post",
|
1170
1264
|
expected: "(ISwaggerRoute | undefined)",
|
1171
1265
|
value: input.post
|
@@ -1173,7 +1267,7 @@ class MigrateApplication {
|
|
1173
1267
|
path: _path + ".patch",
|
1174
1268
|
expected: "(ISwaggerRoute | undefined)",
|
1175
1269
|
value: input.patch
|
1176
|
-
})) && $
|
1270
|
+
})) && $vo38(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
1177
1271
|
path: _path + ".patch",
|
1178
1272
|
expected: "(ISwaggerRoute | undefined)",
|
1179
1273
|
value: input.patch
|
@@ -1181,7 +1275,7 @@ class MigrateApplication {
|
|
1181
1275
|
path: _path + ".put",
|
1182
1276
|
expected: "(ISwaggerRoute | undefined)",
|
1183
1277
|
value: input.put
|
1184
|
-
})) && $
|
1278
|
+
})) && $vo38(input.put, _path + ".put", true && _exceptionable) || $report(_exceptionable, {
|
1185
1279
|
path: _path + ".put",
|
1186
1280
|
expected: "(ISwaggerRoute | undefined)",
|
1187
1281
|
value: input.put
|
@@ -1189,12 +1283,12 @@ class MigrateApplication {
|
|
1189
1283
|
path: _path + "[\"delete\"]",
|
1190
1284
|
expected: "(ISwaggerRoute | undefined)",
|
1191
1285
|
value: input["delete"]
|
1192
|
-
})) && $
|
1286
|
+
})) && $vo38(input["delete"], _path + "[\"delete\"]", true && _exceptionable) || $report(_exceptionable, {
|
1193
1287
|
path: _path + "[\"delete\"]",
|
1194
1288
|
expected: "(ISwaggerRoute | undefined)",
|
1195
1289
|
value: input["delete"]
|
1196
1290
|
})].every(flag => flag);
|
1197
|
-
const $
|
1291
|
+
const $vo38 = (input, _path, _exceptionable = true) => [undefined === input.parameters || (Array.isArray(input.parameters) || $report(_exceptionable, {
|
1198
1292
|
path: _path + ".parameters",
|
1199
1293
|
expected: "(Array<ISwaggerRouteParameter | IReference> | undefined)",
|
1200
1294
|
value: input.parameters
|
@@ -1214,7 +1308,7 @@ class MigrateApplication {
|
|
1214
1308
|
path: _path + ".requestBody",
|
1215
1309
|
expected: "(ISwaggerRoute.IRequestBody | undefined)",
|
1216
1310
|
value: input.requestBody
|
1217
|
-
})) && $
|
1311
|
+
})) && $vo40(input.requestBody, _path + ".requestBody", true && _exceptionable) || $report(_exceptionable, {
|
1218
1312
|
path: _path + ".requestBody",
|
1219
1313
|
expected: "(ISwaggerRoute.IRequestBody | undefined)",
|
1220
1314
|
value: input.requestBody
|
@@ -1222,7 +1316,7 @@ class MigrateApplication {
|
|
1222
1316
|
path: _path + ".responses",
|
1223
1317
|
expected: "(ISwaggerRoute.IResponseBody | undefined)",
|
1224
1318
|
value: input.responses
|
1225
|
-
})) && $
|
1319
|
+
})) && $vo47(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
1226
1320
|
path: _path + ".responses",
|
1227
1321
|
expected: "(ISwaggerRoute.IResponseBody | undefined)",
|
1228
1322
|
value: input.responses
|
@@ -1246,7 +1340,7 @@ class MigrateApplication {
|
|
1246
1340
|
path: _path + ".security[" + _index12 + "]",
|
1247
1341
|
expected: "Record<string, Array<string>>",
|
1248
1342
|
value: elem
|
1249
|
-
})) && $
|
1343
|
+
})) && $vo49(elem, _path + ".security[" + _index12 + "]", true && _exceptionable) || $report(_exceptionable, {
|
1250
1344
|
path: _path + ".security[" + _index12 + "]",
|
1251
1345
|
expected: "Record<string, Array<string>>",
|
1252
1346
|
value: elem
|
@@ -1274,7 +1368,7 @@ class MigrateApplication {
|
|
1274
1368
|
path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
|
1275
1369
|
expected: "IJsDocTagInfo",
|
1276
1370
|
value: elem
|
1277
|
-
})) && $
|
1371
|
+
})) && $vo50(elem, _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]", true && _exceptionable) || $report(_exceptionable, {
|
1278
1372
|
path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
|
1279
1373
|
expected: "IJsDocTagInfo",
|
1280
1374
|
value: elem
|
@@ -1283,12 +1377,12 @@ class MigrateApplication {
|
|
1283
1377
|
expected: "(Array<IJsDocTagInfo> | undefined)",
|
1284
1378
|
value: input["x-nestia-jsDocTags"]
|
1285
1379
|
})].every(flag => flag);
|
1286
|
-
const $
|
1380
|
+
const $vo39 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
1287
1381
|
path: _path + ".$ref",
|
1288
1382
|
expected: "`#/components/parameters/${string}`",
|
1289
1383
|
value: input.$ref
|
1290
1384
|
})].every(flag => flag);
|
1291
|
-
const $
|
1385
|
+
const $vo40 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
1292
1386
|
path: _path + ".description",
|
1293
1387
|
expected: "(string | undefined)",
|
1294
1388
|
value: input.description
|
@@ -1296,7 +1390,7 @@ class MigrateApplication {
|
|
1296
1390
|
path: _path + ".content",
|
1297
1391
|
expected: "ISwaggerRoute.IContent",
|
1298
1392
|
value: input.content
|
1299
|
-
})) && $
|
1393
|
+
})) && $vo41(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
1300
1394
|
path: _path + ".content",
|
1301
1395
|
expected: "ISwaggerRoute.IContent",
|
1302
1396
|
value: input.content
|
@@ -1309,11 +1403,11 @@ class MigrateApplication {
|
|
1309
1403
|
expected: "(boolean | undefined)",
|
1310
1404
|
value: input["x-nestia-encrypted"]
|
1311
1405
|
})].every(flag => flag);
|
1312
|
-
const $
|
1406
|
+
const $vo41 = (input, _path, _exceptionable = true) => [undefined === input["text/plain"] || ("object" === typeof input["text/plain"] && null !== input["text/plain"] || $report(_exceptionable, {
|
1313
1407
|
path: _path + "[\"text/plain\"]",
|
1314
1408
|
expected: "(__type | undefined)",
|
1315
1409
|
value: input["text/plain"]
|
1316
|
-
})) && $
|
1410
|
+
})) && $vo42(input["text/plain"], _path + "[\"text/plain\"]", true && _exceptionable) || $report(_exceptionable, {
|
1317
1411
|
path: _path + "[\"text/plain\"]",
|
1318
1412
|
expected: "(__type | undefined)",
|
1319
1413
|
value: input["text/plain"]
|
@@ -1321,7 +1415,7 @@ class MigrateApplication {
|
|
1321
1415
|
path: _path + "[\"application/json\"]",
|
1322
1416
|
expected: "(__type.o1 | undefined)",
|
1323
1417
|
value: input["application/json"]
|
1324
|
-
})) && $
|
1418
|
+
})) && $vo43(input["application/json"], _path + "[\"application/json\"]", true && _exceptionable) || $report(_exceptionable, {
|
1325
1419
|
path: _path + "[\"application/json\"]",
|
1326
1420
|
expected: "(__type.o1 | undefined)",
|
1327
1421
|
value: input["application/json"]
|
@@ -1329,7 +1423,7 @@ class MigrateApplication {
|
|
1329
1423
|
path: _path + "[\"application/x-www-form-urlencoded\"]",
|
1330
1424
|
expected: "(__type.o2 | undefined)",
|
1331
1425
|
value: input["application/x-www-form-urlencoded"]
|
1332
|
-
})) && $
|
1426
|
+
})) && $vo44(input["application/x-www-form-urlencoded"], _path + "[\"application/x-www-form-urlencoded\"]", true && _exceptionable) || $report(_exceptionable, {
|
1333
1427
|
path: _path + "[\"application/x-www-form-urlencoded\"]",
|
1334
1428
|
expected: "(__type.o2 | undefined)",
|
1335
1429
|
value: input["application/x-www-form-urlencoded"]
|
@@ -1337,7 +1431,7 @@ class MigrateApplication {
|
|
1337
1431
|
path: _path + "[\"multipart/form-data\"]",
|
1338
1432
|
expected: "(__type.o3 | undefined)",
|
1339
1433
|
value: input["multipart/form-data"]
|
1340
|
-
})) && $
|
1434
|
+
})) && $vo45(input["multipart/form-data"], _path + "[\"multipart/form-data\"]", true && _exceptionable) || $report(_exceptionable, {
|
1341
1435
|
path: _path + "[\"multipart/form-data\"]",
|
1342
1436
|
expected: "(__type.o3 | undefined)",
|
1343
1437
|
value: input["multipart/form-data"]
|
@@ -1345,12 +1439,12 @@ class MigrateApplication {
|
|
1345
1439
|
path: _path + "[\"*/*\"]",
|
1346
1440
|
expected: "(__type.o4 | undefined)",
|
1347
1441
|
value: input["*/*"]
|
1348
|
-
})) && $
|
1442
|
+
})) && $vo46(input["*/*"], _path + "[\"*/*\"]", true && _exceptionable) || $report(_exceptionable, {
|
1349
1443
|
path: _path + "[\"*/*\"]",
|
1350
1444
|
expected: "(__type.o4 | undefined)",
|
1351
1445
|
value: input["*/*"]
|
1352
1446
|
})].every(flag => flag);
|
1353
|
-
const $
|
1447
|
+
const $vo42 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
1354
1448
|
path: _path + ".schema",
|
1355
1449
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1356
1450
|
value: input.schema
|
@@ -1359,7 +1453,7 @@ class MigrateApplication {
|
|
1359
1453
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1360
1454
|
value: input.schema
|
1361
1455
|
})].every(flag => flag);
|
1362
|
-
const $
|
1456
|
+
const $vo43 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
1363
1457
|
path: _path + ".schema",
|
1364
1458
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1365
1459
|
value: input.schema
|
@@ -1368,7 +1462,7 @@ class MigrateApplication {
|
|
1368
1462
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1369
1463
|
value: input.schema
|
1370
1464
|
})].every(flag => flag);
|
1371
|
-
const $
|
1465
|
+
const $vo44 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
1372
1466
|
path: _path + ".schema",
|
1373
1467
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1374
1468
|
value: input.schema
|
@@ -1377,7 +1471,7 @@ class MigrateApplication {
|
|
1377
1471
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1378
1472
|
value: input.schema
|
1379
1473
|
})].every(flag => flag);
|
1380
|
-
const $
|
1474
|
+
const $vo45 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
1381
1475
|
path: _path + ".schema",
|
1382
1476
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1383
1477
|
value: input.schema
|
@@ -1386,7 +1480,7 @@ class MigrateApplication {
|
|
1386
1480
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1387
1481
|
value: input.schema
|
1388
1482
|
})].every(flag => flag);
|
1389
|
-
const $
|
1483
|
+
const $vo46 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
1390
1484
|
path: _path + ".schema",
|
1391
1485
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1392
1486
|
value: input.schema
|
@@ -1395,7 +1489,7 @@ class MigrateApplication {
|
|
1395
1489
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INullOnly | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1396
1490
|
value: input.schema
|
1397
1491
|
})].every(flag => flag);
|
1398
|
-
const $
|
1492
|
+
const $vo47 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
1399
1493
|
const value = input[key];
|
1400
1494
|
if (undefined === value)
|
1401
1495
|
return true;
|
@@ -1403,13 +1497,13 @@ class MigrateApplication {
|
|
1403
1497
|
path: _path + $join(key),
|
1404
1498
|
expected: "__type.o5",
|
1405
1499
|
value: value
|
1406
|
-
})) && $
|
1500
|
+
})) && $vo48(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
1407
1501
|
path: _path + $join(key),
|
1408
1502
|
expected: "__type.o5",
|
1409
1503
|
value: value
|
1410
1504
|
});
|
1411
1505
|
}).every(flag => flag)].every(flag => flag);
|
1412
|
-
const $
|
1506
|
+
const $vo48 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
1413
1507
|
path: _path + ".description",
|
1414
1508
|
expected: "(string | undefined)",
|
1415
1509
|
value: input.description
|
@@ -1417,7 +1511,7 @@ class MigrateApplication {
|
|
1417
1511
|
path: _path + ".content",
|
1418
1512
|
expected: "(ISwaggerRoute.IContent | undefined)",
|
1419
1513
|
value: input.content
|
1420
|
-
})) && $
|
1514
|
+
})) && $vo41(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
1421
1515
|
path: _path + ".content",
|
1422
1516
|
expected: "(ISwaggerRoute.IContent | undefined)",
|
1423
1517
|
value: input.content
|
@@ -1426,7 +1520,7 @@ class MigrateApplication {
|
|
1426
1520
|
expected: "(boolean | undefined)",
|
1427
1521
|
value: input["x-nestia-encrypted"]
|
1428
1522
|
})].every(flag => flag);
|
1429
|
-
const $
|
1523
|
+
const $vo49 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
1430
1524
|
const value = input[key];
|
1431
1525
|
if (undefined === value)
|
1432
1526
|
return true;
|
@@ -1444,7 +1538,7 @@ class MigrateApplication {
|
|
1444
1538
|
value: value
|
1445
1539
|
});
|
1446
1540
|
}).every(flag => flag)].every(flag => flag);
|
1447
|
-
const $
|
1541
|
+
const $vo50 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
1448
1542
|
path: _path + ".name",
|
1449
1543
|
expected: "string",
|
1450
1544
|
value: input.name
|
@@ -1456,7 +1550,7 @@ class MigrateApplication {
|
|
1456
1550
|
path: _path + ".text[" + _index16 + "]",
|
1457
1551
|
expected: "IJsDocTagInfo.IText",
|
1458
1552
|
value: elem
|
1459
|
-
})) && $
|
1553
|
+
})) && $vo51(elem, _path + ".text[" + _index16 + "]", true && _exceptionable) || $report(_exceptionable, {
|
1460
1554
|
path: _path + ".text[" + _index16 + "]",
|
1461
1555
|
expected: "IJsDocTagInfo.IText",
|
1462
1556
|
value: elem
|
@@ -1465,7 +1559,7 @@ class MigrateApplication {
|
|
1465
1559
|
expected: "(Array<IJsDocTagInfo.IText> | undefined)",
|
1466
1560
|
value: input.text
|
1467
1561
|
})].every(flag => flag);
|
1468
|
-
const $
|
1562
|
+
const $vo51 = (input, _path, _exceptionable = true) => ["string" === typeof input.text || $report(_exceptionable, {
|
1469
1563
|
path: _path + ".text",
|
1470
1564
|
expected: "string",
|
1471
1565
|
value: input.text
|
@@ -1502,7 +1596,7 @@ class MigrateApplication {
|
|
1502
1596
|
if (undefined !== input["in"])
|
1503
1597
|
return $vo7(input, _path, true && _exceptionable);
|
1504
1598
|
else if (undefined !== input.$ref)
|
1505
|
-
return $
|
1599
|
+
return $vo39(input, _path, true && _exceptionable);
|
1506
1600
|
else
|
1507
1601
|
return $report(_exceptionable, {
|
1508
1602
|
path: _path,
|
@@ -1512,15 +1606,15 @@ class MigrateApplication {
|
|
1512
1606
|
})();
|
1513
1607
|
const $vu2 = (input, _path, _exceptionable = true) => (() => {
|
1514
1608
|
if ("basic" === input.scheme)
|
1515
|
-
return $
|
1609
|
+
return $vo26(input, _path, true && _exceptionable);
|
1516
1610
|
else if ("bearer" === input.scheme)
|
1517
|
-
return $
|
1611
|
+
return $vo27(input, _path, true && _exceptionable);
|
1518
1612
|
else if ("apiKey" === input.type)
|
1519
|
-
return $
|
1613
|
+
return $vo28(input, _path, true && _exceptionable);
|
1520
1614
|
else if ("openIdConnect" === input.type)
|
1521
|
-
return $
|
1615
|
+
return $vo29(input, _path, true && _exceptionable);
|
1522
1616
|
else if ("oauth2" === input.type)
|
1523
|
-
return $
|
1617
|
+
return $vo30(input, _path, true && _exceptionable);
|
1524
1618
|
else
|
1525
1619
|
return $report(_exceptionable, {
|
1526
1620
|
path: _path,
|