@nestia/migrate 0.13.17 → 0.14.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.d.ts +1 -0
- package/lib/MigrateApplication.js +823 -873
- package/lib/MigrateApplication.js.map +1 -1
- package/lib/analyzers/MigrateAnalyzer.js +5 -2
- package/lib/analyzers/MigrateAnalyzer.js.map +1 -1
- package/lib/analyzers/MigrateControllerAnalyzer.d.ts +2 -2
- package/lib/analyzers/MigrateControllerAnalyzer.js +14 -88
- package/lib/analyzers/MigrateControllerAnalyzer.js.map +1 -1
- package/lib/bundles/NEST_TEMPLATE.js +3 -3
- package/lib/bundles/SDK_TEMPLATE.js +1 -1
- package/lib/executable/bundle.js +1 -1
- package/lib/internal/MigrateCommander.js +5 -2
- package/lib/internal/MigrateCommander.js.map +1 -1
- package/lib/programmers/MigrateApiFileProgrammer.d.ts +2 -9
- package/lib/programmers/MigrateApiFileProgrammer.js +4 -4
- package/lib/programmers/MigrateApiFileProgrammer.js.map +1 -1
- package/lib/programmers/MigrateApiFunctionProgrammer.d.ts +2 -8
- package/lib/programmers/MigrateApiFunctionProgrammer.js +33 -30
- package/lib/programmers/MigrateApiFunctionProgrammer.js.map +1 -1
- package/lib/programmers/MigrateApiNamespaceProgrammer.d.ts +2 -8
- package/lib/programmers/MigrateApiNamespaceProgrammer.js +31 -37
- package/lib/programmers/MigrateApiNamespaceProgrammer.js.map +1 -1
- package/lib/programmers/MigrateApiProgrammer.js +19 -70
- package/lib/programmers/MigrateApiProgrammer.js.map +1 -1
- package/lib/programmers/MigrateApiSimulatationProgrammer.d.ts +2 -8
- package/lib/programmers/MigrateApiSimulatationProgrammer.js +16 -16
- package/lib/programmers/MigrateApiSimulatationProgrammer.js.map +1 -1
- package/lib/programmers/MigrateApiStartProgrammer.js +1 -1
- package/lib/programmers/MigrateApiStartProgrammer.js.map +1 -1
- package/lib/programmers/MigrateE2eProgrammer.js +1 -3
- package/lib/programmers/MigrateE2eProgrammer.js.map +1 -1
- package/lib/programmers/MigrateNestMethodProgrammer.js +4 -4
- package/lib/programmers/MigrateNestMethodProgrammer.js.map +1 -1
- package/lib/programmers/MigrateNestProgrammer.js +27 -23
- package/lib/programmers/MigrateNestProgrammer.js.map +1 -1
- package/lib/programmers/MigrateSchemaProgrammer.js +22 -22
- package/lib/structures/IMigrateProgram.d.ts +8 -8
- package/lib/structures/IMigrateRoute.d.ts +1 -46
- package/lib/utils/OpenApiTypeChecker.d.ts +1 -1
- package/lib/utils/StringUtil.d.ts +0 -4
- package/lib/utils/StringUtil.js +0 -31
- package/lib/utils/StringUtil.js.map +1 -1
- package/lib/utils/openapi-down-convert/RefVisitor.js +4 -5
- package/lib/utils/openapi-down-convert/RefVisitor.js.map +1 -1
- package/package.json +8 -8
- package/src/MigrateApplication.ts +3 -2
- package/src/analyzers/MigrateAnalyzer.ts +10 -5
- package/src/analyzers/MigrateControllerAnalyzer.ts +17 -122
- package/src/bundles/NEST_TEMPLATE.ts +3 -3
- package/src/bundles/SDK_TEMPLATE.ts +1 -1
- package/src/internal/MigrateCommander.ts +8 -2
- package/src/programmers/MigrateApiFileProgrammer.ts +10 -14
- package/src/programmers/MigrateApiFunctionProgrammer.ts +43 -41
- package/src/programmers/MigrateApiNamespaceProgrammer.ts +33 -51
- package/src/programmers/MigrateApiProgrammer.ts +26 -95
- package/src/programmers/MigrateApiSimulatationProgrammer.ts +17 -25
- package/src/programmers/MigrateApiStartProgrammer.ts +1 -1
- package/src/programmers/MigrateE2eProgrammer.ts +1 -3
- package/src/programmers/MigrateNestMethodProgrammer.ts +4 -4
- package/src/programmers/MigrateNestProgrammer.ts +10 -4
- package/src/structures/IMigrateProgram.ts +8 -8
- package/src/structures/IMigrateRoute.ts +1 -51
- package/src/utils/StringUtil.ts +0 -42
- package/lib/analyzers/MigrateMethodAnalyzer.d.ts +0 -9
- package/lib/analyzers/MigrateMethodAnalyzer.js +0 -304
- package/lib/analyzers/MigrateMethodAnalyzer.js.map +0 -1
- package/src/analyzers/MigrateMethodAnalyzer.ts +0 -387
@@ -31,7 +31,7 @@ class MigrateApplication {
|
|
31
31
|
const result = (input => {
|
32
32
|
const errors = [];
|
33
33
|
const __is = input => {
|
34
|
-
const $io0 = input => "string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.info || "object" === typeof input.info && null !== input.info && $io4(input.info)) && ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && $io7(input.components)) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io32(input.paths)) && (undefined === input.webhooks || "object" === typeof input.webhooks && null !== input.webhooks && false === Array.isArray(input.webhooks) && $
|
34
|
+
const $io0 = input => "string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.info || "object" === typeof input.info && null !== input.info && $io4(input.info)) && ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && $io7(input.components)) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io32(input.paths)) && (undefined === input.webhooks || "object" === typeof input.webhooks && null !== input.webhooks && false === Array.isArray(input.webhooks) && $io32(input.webhooks)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io42(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && $io43(elem))) && true === input["x-samchon-emended"];
|
35
35
|
const $io1 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io2(input.variables));
|
36
36
|
const $io2 = input => Object.keys(input).every(key => {
|
37
37
|
const value = input[key];
|
@@ -68,7 +68,7 @@ class MigrateApplication {
|
|
68
68
|
return true;
|
69
69
|
return "object" === typeof value && null !== value && $iu9(value);
|
70
70
|
});
|
71
|
-
const $io22 = input => "apiKey" === input.type && (undefined === input["in"] || "
|
71
|
+
const $io22 = input => "apiKey" === input.type && (undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description);
|
72
72
|
const $io23 = input => "http" === input.type && "basic" === input.scheme && (undefined === input.description || "string" === typeof input.description);
|
73
73
|
const $io24 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat) && (undefined === input.description || "string" === typeof input.description);
|
74
74
|
const $io25 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io26(input.flows)) && (undefined === input.description || "string" === typeof input.description);
|
@@ -80,8 +80,8 @@ class MigrateApplication {
|
|
80
80
|
return true;
|
81
81
|
return "string" === typeof value;
|
82
82
|
});
|
83
|
-
const $io29 = input => (undefined === input.
|
84
|
-
const $io30 = input => (undefined === input.
|
83
|
+
const $io29 = input => (undefined === input.authorizationUrl || "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) && $io28(input.scopes));
|
84
|
+
const $io30 = 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) && $io28(input.scopes));
|
85
85
|
const $io31 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl && (undefined === input.description || "string" === typeof input.description);
|
86
86
|
const $io32 = input => Object.keys(input).every(key => {
|
87
87
|
const value = input[key];
|
@@ -89,9 +89,9 @@ class MigrateApplication {
|
|
89
89
|
return true;
|
90
90
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io33(value);
|
91
91
|
});
|
92
|
-
const $io33 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.
|
92
|
+
const $io33 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && $io34(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io34(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io34(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io34(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io34(input.patch)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io34(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io34(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && $io34(input.trace));
|
93
93
|
const $io34 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $io35(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && $io36(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io39(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io42(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
94
|
-
const $io35 = input => (undefined === input.name || "string" === typeof input.name) && ("
|
94
|
+
const $io35 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === 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.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description);
|
95
95
|
const $io36 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io37(input.content)) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"]);
|
96
96
|
const $io37 = input => (undefined === input["text/plain"] || "object" === typeof input["text/plain"] && null !== input["text/plain"] && false === Array.isArray(input["text/plain"]) && $io38(input["text/plain"])) && (undefined === input["application/json"] || "object" === typeof input["application/json"] && null !== input["application/json"] && false === Array.isArray(input["application/json"]) && $io38(input["application/json"])) && (undefined === input["multipart/form-data"] || "object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] && false === Array.isArray(input["multipart/form-data"]) && $io38(input["multipart/form-data"])) && (undefined === input["application/x-www-form-url-encoded"] || "object" === typeof input["application/x-www-form-url-encoded"] && null !== input["application/x-www-form-url-encoded"] && false === Array.isArray(input["application/x-www-form-url-encoded"]) && $io38(input["application/x-www-form-url-encoded"])) && (undefined === input["*/*"] || "object" === typeof input["*/*"] && null !== input["*/*"] && false === Array.isArray(input["*/*"]) && $io38(input["*/*"])) && Object.keys(input).every(key => {
|
97
97
|
if (["text/plain", "application/json", "multipart/form-data", "application/x-www-form-url-encoded", "*/*"].some(prop => key === prop))
|
@@ -121,311 +121,304 @@ class MigrateApplication {
|
|
121
121
|
return true;
|
122
122
|
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
123
123
|
});
|
124
|
-
const $io43 = input =>
|
124
|
+
const $io43 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
125
|
+
const $io44 = input => null !== input.swagger && undefined !== input.swagger && ("2.0" === input.swagger || "string" === typeof input.swagger && RegExp(/^2\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.swagger)) && (undefined === input.info || "object" === typeof input.info && null !== input.info && $io45(input.info)) && (undefined === input.host || "string" === typeof input.host) && (undefined === input.basePath || "string" === typeof input.basePath) && (undefined === input.consumes || Array.isArray(input.consumes) && input.consumes.every(elem => "string" === typeof elem)) && (undefined === input.produces || Array.isArray(input.produces) && input.produces.every(elem => "string" === typeof elem)) && (undefined === input.definitions || "object" === typeof input.definitions && null !== input.definitions && false === Array.isArray(input.definitions) && $io48(input.definitions)) && (undefined === input.parameters || "object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) && $io60(input.parameters)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io73(input.responses)) && (undefined === input.securityDefinitions || "object" === typeof input.securityDefinitions && null !== input.securityDefinitions && false === Array.isArray(input.securityDefinitions) && $io75(input.securityDefinitions)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io42(elem))) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io82(input.paths)) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && $io89(elem)));
|
126
|
+
const $io45 = input => "string" === typeof input.title && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && $io46(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io47(input.license)) && "string" === typeof input.version;
|
127
|
+
const $io46 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email);
|
128
|
+
const $io47 = input => "string" === typeof input.name && (undefined === input.url || "string" === typeof input.url);
|
129
|
+
const $io48 = input => Object.keys(input).every(key => {
|
125
130
|
const value = input[key];
|
126
131
|
if (undefined === value)
|
127
132
|
return true;
|
128
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
133
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu2(value);
|
129
134
|
});
|
130
|
-
const $
|
131
|
-
const $
|
132
|
-
const $
|
133
|
-
const $
|
134
|
-
const $
|
135
|
-
const $
|
136
|
-
const $
|
135
|
+
const $io49 = 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["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
136
|
+
const $io50 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000)) && (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 && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (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 <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
137
|
+
const $io51 = 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 && 0 < input.multipleOf) && "number" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
138
|
+
const $io52 = 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 <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
139
|
+
const $io53 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
140
|
+
const $io54 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io48(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) && $iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
141
|
+
const $io55 = 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);
|
142
|
+
const $io56 = 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);
|
143
|
+
const $io57 = 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);
|
144
|
+
const $io58 = input => Array.isArray(input["x-anyOf"]) && input["x-anyOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu2(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
145
|
+
const $io59 = input => Array.isArray(input["x-oneOf"]) && input["x-oneOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu2(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
146
|
+
const $io60 = input => Object.keys(input).every(key => {
|
137
147
|
const value = input[key];
|
138
148
|
if (undefined === value)
|
139
149
|
return true;
|
140
|
-
return "object" === typeof value && null !== value &&
|
150
|
+
return "object" === typeof value && null !== value && $iu10(value);
|
141
151
|
});
|
142
|
-
const $
|
143
|
-
const $
|
144
|
-
const $
|
145
|
-
const $
|
146
|
-
const $
|
147
|
-
const $
|
148
|
-
const $
|
149
|
-
const $
|
150
|
-
const $
|
151
|
-
const $
|
152
|
-
const $
|
153
|
-
const $
|
152
|
+
const $io61 = 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["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
153
|
+
const $io62 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000)) && (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 && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (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 <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
154
|
+
const $io63 = 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 && 0 < input.multipleOf) && "number" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
155
|
+
const $io64 = 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 <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
156
|
+
const $io65 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
157
|
+
const $io66 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io48(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) && $iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
158
|
+
const $io67 = 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) && "string" === typeof input.name && "string" === typeof input["in"];
|
159
|
+
const $io68 = 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) && "string" === typeof input.name && "string" === typeof input["in"];
|
160
|
+
const $io69 = 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) && "string" === typeof input.name && "string" === typeof input["in"];
|
161
|
+
const $io70 = input => Array.isArray(input["x-anyOf"]) && input["x-anyOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu2(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
162
|
+
const $io71 = input => Array.isArray(input["x-oneOf"]) && input["x-oneOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu2(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
163
|
+
const $io72 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu2(input.schema) && "string" === typeof input.name && "string" === typeof input["in"] && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required);
|
164
|
+
const $io73 = input => Object.keys(input).every(key => {
|
154
165
|
const value = input[key];
|
155
166
|
if (undefined === value)
|
156
167
|
return true;
|
157
|
-
return "object" === typeof value && null !== value && $
|
168
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io74(value);
|
158
169
|
});
|
159
|
-
const $
|
160
|
-
const $io64 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000)) && (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 && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (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 <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
161
|
-
const $io65 = 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 && 0 < input.multipleOf) && "number" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
162
|
-
const $io66 = 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 <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
163
|
-
const $io67 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
164
|
-
const $io68 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io50(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) && $iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
165
|
-
const $io69 = 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) && "string" === typeof input.name && "string" === typeof input["in"];
|
166
|
-
const $io70 = 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) && "string" === typeof input.name && "string" === typeof input["in"];
|
167
|
-
const $io71 = 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) && "string" === typeof input.name && "string" === typeof input["in"];
|
168
|
-
const $io72 = input => Array.isArray(input["x-anyOf"]) && input["x-anyOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu2(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
169
|
-
const $io73 = input => Array.isArray(input["x-oneOf"]) && input["x-oneOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu2(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
170
|
-
const $io74 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu2(input.schema) && "string" === typeof input.name && "string" === typeof input["in"] && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required);
|
170
|
+
const $io74 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io48(input.headers)) && (undefined === input.schema || "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu2(input.schema));
|
171
171
|
const $io75 = input => Object.keys(input).every(key => {
|
172
172
|
const value = input[key];
|
173
173
|
if (undefined === value)
|
174
174
|
return true;
|
175
|
-
return "object" === typeof value && null !== value &&
|
175
|
+
return "object" === typeof value && null !== value && $iu11(value);
|
176
176
|
});
|
177
|
-
const $io76 = input =>
|
178
|
-
const $io77 = input =>
|
177
|
+
const $io76 = input => "apiKey" === input.type && (undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description);
|
178
|
+
const $io77 = input => "basic" === input.type && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description);
|
179
|
+
const $io78 = input => "oauth2" === input.type && "implicit" === input.flow && (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io28(input.scopes)) && (undefined === input.description || "string" === typeof input.description);
|
180
|
+
const $io79 = input => "oauth2" === input.type && "accessCode" === input.flow && (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl) && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io28(input.scopes)) && (undefined === input.description || "string" === typeof input.description);
|
181
|
+
const $io80 = input => "oauth2" === input.type && "password" === input.flow && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io28(input.scopes)) && (undefined === input.description || "string" === typeof input.description);
|
182
|
+
const $io81 = input => "oauth2" === input.type && "application" === input.flow && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io28(input.scopes)) && (undefined === input.description || "string" === typeof input.description);
|
183
|
+
const $io82 = input => Object.keys(input).every(key => {
|
179
184
|
const value = input[key];
|
180
185
|
if (undefined === value)
|
181
186
|
return true;
|
182
|
-
return "object" === typeof value && null !== value && $
|
187
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io83(value);
|
183
188
|
});
|
184
|
-
const $
|
185
|
-
const $
|
186
|
-
const $
|
187
|
-
const $
|
188
|
-
const $
|
189
|
-
const $io83 = input => "oauth2" === input.type && "application" === input.flow && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io28(input.scopes)) && (undefined === input.description || "string" === typeof input.description);
|
190
|
-
const $io84 = input => Object.keys(input).every(key => {
|
189
|
+
const $io83 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu3(elem))) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && $io85(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io85(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io85(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io85(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io85(input.patch)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io85(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io85(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && $io85(input.trace));
|
190
|
+
const $io84 = input => "string" === typeof input.$ref && RegExp(/^#\/parameters\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
191
|
+
const $io85 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu4(elem))) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io87(input.responses)) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io42(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
192
|
+
const $io86 = input => "string" === typeof input.$ref && RegExp(/^#\/definitions\/parameters\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
193
|
+
const $io87 = input => Object.keys(input).every(key => {
|
191
194
|
const value = input[key];
|
192
195
|
if (undefined === value)
|
193
196
|
return true;
|
194
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
197
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu12(value);
|
195
198
|
});
|
196
|
-
const $
|
197
|
-
const $
|
198
|
-
const $
|
199
|
-
const $
|
200
|
-
const $
|
199
|
+
const $io88 = input => "string" === typeof input.$ref && RegExp(/^#\/definitions\/responses\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
200
|
+
const $io89 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
201
|
+
const $io90 = input => null !== input.openapi && undefined !== input.openapi && ("3.0" === input.openapi || "string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io91(elem))) && (undefined === input.info || "object" === typeof input.info && null !== input.info && $io94(input.info)) && (undefined === input.components || "object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && $io97(input.components)) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io133(input.paths)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io42(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && $io140(elem)));
|
202
|
+
const $io91 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io92(input.variables));
|
203
|
+
const $io92 = input => Object.keys(input).every(key => {
|
201
204
|
const value = input[key];
|
202
205
|
if (undefined === value)
|
203
206
|
return true;
|
204
|
-
return "object" === typeof value && null !== value &&
|
207
|
+
return "object" === typeof value && null !== value && $io93(value);
|
205
208
|
});
|
206
|
-
const $
|
207
|
-
const $
|
208
|
-
const $
|
209
|
-
const $
|
210
|
-
const $
|
209
|
+
const $io93 = input => "string" === typeof input["default"] && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "string" === typeof elem)) && (undefined === input.description || "string" === typeof input.description);
|
210
|
+
const $io94 = input => "string" === typeof input.title && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && $io95(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io96(input.license)) && "string" === typeof input.version;
|
211
|
+
const $io95 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email);
|
212
|
+
const $io96 = input => "string" === typeof input.name && (undefined === input.url || "string" === typeof input.url);
|
213
|
+
const $io97 = input => (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && $io98(input.schemas)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io111(input.responses)) && (undefined === input.parameters || "object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) && $io118(input.parameters)) && (undefined === input.requestBodies || "object" === typeof input.requestBodies && null !== input.requestBodies && false === Array.isArray(input.requestBodies) && $io120(input.requestBodies)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && $io122(input.securitySchemes)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io132(input.headers));
|
214
|
+
const $io98 = input => Object.keys(input).every(key => {
|
211
215
|
const value = input[key];
|
212
216
|
if (undefined === value)
|
213
217
|
return true;
|
214
|
-
return "object" === typeof value && null !== value && $
|
218
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu5(value);
|
215
219
|
});
|
216
|
-
const $
|
217
|
-
const $
|
218
|
-
const $
|
219
|
-
const $
|
220
|
-
const $
|
221
|
-
const $
|
220
|
+
const $io99 = 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);
|
221
|
+
const $io100 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000)) && (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 && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (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 <= 18446744073709552000 && 0 < input.multipleOf)) && "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);
|
222
|
+
const $io101 = 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 && 0 < 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);
|
223
|
+
const $io102 = 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 <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "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);
|
224
|
+
const $io103 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu5(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "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);
|
225
|
+
const $io104 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io98(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) && $iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "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);
|
226
|
+
const $io105 = 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);
|
227
|
+
const $io106 = 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);
|
228
|
+
const $io107 = 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);
|
229
|
+
const $io108 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
230
|
+
const $io109 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
231
|
+
const $io110 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
232
|
+
const $io111 = input => Object.keys(input).every(key => {
|
222
233
|
const value = input[key];
|
223
234
|
if (undefined === value)
|
224
235
|
return true;
|
225
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
236
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io112(value);
|
226
237
|
});
|
227
|
-
const $
|
228
|
-
const $io102 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000)) && (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 && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (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 <= 18446744073709552000 && 0 < input.multipleOf)) && "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);
|
229
|
-
const $io103 = 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 && 0 < 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);
|
230
|
-
const $io104 = 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 <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "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);
|
231
|
-
const $io105 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu5(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "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);
|
232
|
-
const $io106 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io100(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) && $iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "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);
|
233
|
-
const $io107 = 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);
|
234
|
-
const $io108 = 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);
|
235
|
-
const $io109 = 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);
|
236
|
-
const $io110 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
237
|
-
const $io111 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
238
|
-
const $io112 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
238
|
+
const $io112 = input => (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io113(input.content)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io115(input.headers)) && (undefined === input.description || "string" === typeof input.description);
|
239
239
|
const $io113 = input => Object.keys(input).every(key => {
|
240
240
|
const value = input[key];
|
241
241
|
if (undefined === value)
|
242
242
|
return true;
|
243
243
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io114(value);
|
244
244
|
});
|
245
|
-
const $io114 = input =>
|
245
|
+
const $io114 = input => undefined === input.schema || "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu5(input.schema);
|
246
246
|
const $io115 = input => Object.keys(input).every(key => {
|
247
247
|
const value = input[key];
|
248
248
|
if (undefined === value)
|
249
249
|
return true;
|
250
|
-
return "object" === typeof value && null !== value &&
|
250
|
+
return "object" === typeof value && null !== value && $iu13(value);
|
251
251
|
});
|
252
|
-
const $io116 = input => undefined === input.
|
253
|
-
const $io117 = input =>
|
252
|
+
const $io116 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu5(input.schema)) && (undefined === input.name || "string" === typeof input.name);
|
253
|
+
const $io117 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
254
|
+
const $io118 = input => Object.keys(input).every(key => {
|
254
255
|
const value = input[key];
|
255
256
|
if (undefined === value)
|
256
257
|
return true;
|
257
|
-
return "object" === typeof value && null !== value && $
|
258
|
+
return "object" === typeof value && null !== value && $io119(value);
|
258
259
|
});
|
259
|
-
const $
|
260
|
-
const $io119 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
260
|
+
const $io119 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu5(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description);
|
261
261
|
const $io120 = input => Object.keys(input).every(key => {
|
262
262
|
const value = input[key];
|
263
263
|
if (undefined === value)
|
264
264
|
return true;
|
265
|
-
return "object" === typeof value && null !== value && $io121(value);
|
265
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io121(value);
|
266
266
|
});
|
267
|
-
const $io121 = input => (undefined === input.
|
267
|
+
const $io121 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io113(input.content));
|
268
268
|
const $io122 = input => Object.keys(input).every(key => {
|
269
269
|
const value = input[key];
|
270
270
|
if (undefined === value)
|
271
271
|
return true;
|
272
|
-
return "object" === typeof value && null !== value &&
|
273
|
-
});
|
274
|
-
const $io123 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io115(input.content));
|
275
|
-
const $io124 = input => Object.keys(input).every(key => {
|
276
|
-
const value = input[key];
|
277
|
-
if (undefined === value)
|
278
|
-
return true;
|
279
|
-
return "object" === typeof value && null !== value && $iu15(value);
|
272
|
+
return "object" === typeof value && null !== value && $iu14(value);
|
280
273
|
});
|
281
|
-
const $
|
282
|
-
const $
|
283
|
-
const $
|
284
|
-
const $
|
285
|
-
const $
|
286
|
-
const $
|
287
|
-
const $
|
288
|
-
const $
|
289
|
-
const $
|
290
|
-
const $
|
274
|
+
const $io123 = input => "apiKey" === input.type && (undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description);
|
275
|
+
const $io124 = input => "http" === input.type && "basic" === input.scheme && (undefined === input.description || "string" === typeof input.description);
|
276
|
+
const $io125 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat) && (undefined === input.description || "string" === typeof input.description);
|
277
|
+
const $io126 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io127(input.flows)) && (undefined === input.description || "string" === typeof input.description);
|
278
|
+
const $io127 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) && $io128(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && false === Array.isArray(input.implicit) && $io129(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) && $io130(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) && $io130(input.clientCredentials));
|
279
|
+
const $io128 = input => (undefined === input.authorizationUrl || "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) && $io28(input.scopes));
|
280
|
+
const $io129 = input => (undefined === input.authorizationUrl || "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) && $io28(input.scopes));
|
281
|
+
const $io130 = 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) && $io28(input.scopes));
|
282
|
+
const $io131 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl && (undefined === input.description || "string" === typeof input.description);
|
283
|
+
const $io132 = input => Object.keys(input).every(key => {
|
291
284
|
const value = input[key];
|
292
285
|
if (undefined === value)
|
293
286
|
return true;
|
294
|
-
return "object" === typeof value && null !== value && $
|
287
|
+
return "object" === typeof value && null !== value && $io116(value);
|
295
288
|
});
|
296
|
-
const $
|
289
|
+
const $io133 = input => Object.keys(input).every(key => {
|
297
290
|
const value = input[key];
|
298
291
|
if (undefined === value)
|
299
292
|
return true;
|
300
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
293
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io134(value);
|
301
294
|
});
|
302
|
-
const $
|
303
|
-
const $
|
304
|
-
const $
|
305
|
-
const $
|
306
|
-
const $
|
295
|
+
const $io134 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu6(elem))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io91(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && $io136(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io136(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io136(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io136(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io136(input.patch)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io136(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io136(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && $io136(input.trace));
|
296
|
+
const $io135 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
297
|
+
const $io136 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu6(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && $iu15(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io138(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io91(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io42(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
298
|
+
const $io137 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
299
|
+
const $io138 = input => Object.keys(input).every(key => {
|
307
300
|
const value = input[key];
|
308
301
|
if (undefined === value)
|
309
302
|
return true;
|
310
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
303
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu16(value);
|
311
304
|
});
|
312
|
-
const $
|
313
|
-
const $
|
314
|
-
const $
|
315
|
-
const $
|
316
|
-
const $
|
305
|
+
const $io139 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
306
|
+
const $io140 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
307
|
+
const $io141 = input => "string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io142(elem))) && (undefined === input.info || "object" === typeof input.info && null !== input.info && $io145(input.info)) && (undefined === input.components || "object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && $io148(input.components)) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io164(input.paths)) && (undefined === input.webhooks || "object" === typeof input.webhooks && null !== input.webhooks && false === Array.isArray(input.webhooks) && $io193(input.webhooks)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io42(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && $io195(elem)));
|
308
|
+
const $io142 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io143(input.variables));
|
309
|
+
const $io143 = input => Object.keys(input).every(key => {
|
317
310
|
const value = input[key];
|
318
311
|
if (undefined === value)
|
319
312
|
return true;
|
320
|
-
return "object" === typeof value && null !== value && $
|
313
|
+
return "object" === typeof value && null !== value && $io144(value);
|
321
314
|
});
|
322
|
-
const $
|
323
|
-
const $
|
324
|
-
const $
|
325
|
-
const $
|
326
|
-
const $
|
327
|
-
const $
|
315
|
+
const $io144 = input => "string" === typeof input["default"] && (undefined === input["enum"] || Array.isArray(input["enum"]) && (1 <= input["enum"].length && input["enum"].every(elem => "string" === typeof elem))) && (undefined === input.description || "string" === typeof input.description);
|
316
|
+
const $io145 = input => "string" === typeof input.title && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && $io146(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io147(input.license)) && "string" === typeof input.version;
|
317
|
+
const $io146 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email);
|
318
|
+
const $io147 = input => "string" === typeof input.name && (undefined === input.identifier || "string" === typeof input.identifier) && (undefined === input.url || "string" === typeof input.url);
|
319
|
+
const $io148 = input => (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && $io149(input.schemas)) && (undefined === input.pathItems || "object" === typeof input.pathItems && null !== input.pathItems && false === Array.isArray(input.pathItems) && $io164(input.pathItems)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io179(input.responses)) && (undefined === input.parameters || "object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) && $io180(input.parameters)) && (undefined === input.requestBodies || "object" === typeof input.requestBodies && null !== input.requestBodies && false === Array.isArray(input.requestBodies) && $io181(input.requestBodies)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && $io182(input.securitySchemes)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io192(input.headers));
|
320
|
+
const $io149 = input => Object.keys(input).every(key => {
|
328
321
|
const value = input[key];
|
329
322
|
if (undefined === value)
|
330
323
|
return true;
|
331
324
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu7(value);
|
332
325
|
});
|
333
|
-
const $
|
334
|
-
const $
|
335
|
-
const $
|
336
|
-
const $
|
337
|
-
const $
|
338
|
-
const $
|
339
|
-
const $
|
340
|
-
const $
|
341
|
-
const $
|
342
|
-
const $
|
343
|
-
const $
|
344
|
-
const $
|
345
|
-
const $
|
346
|
-
const $
|
347
|
-
const $
|
326
|
+
const $io150 = input => Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem) && (undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (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 <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && (null !== input.items && undefined !== input.items && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu7(input.items))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem))) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && $iu7(input.additionalItems))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io149(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && $iu7(input.additionalProperties))) && (undefined === input.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem))) && (Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem))) && (Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem)));
|
327
|
+
const $io151 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
328
|
+
const $io152 = 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);
|
329
|
+
const $io153 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000)) && (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 && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -9223372036854776000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 9223372036854776000) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -9223372036854776000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 9223372036854776000) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "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);
|
330
|
+
const $io154 = 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 || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < 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);
|
331
|
+
const $io155 = input => (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (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 <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "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);
|
332
|
+
const $io156 = input => null !== input.items && undefined !== input.items && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu7(input.items)) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && $iu7(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "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);
|
333
|
+
const $io157 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io149(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) && $iu7(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "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);
|
334
|
+
const $io158 = 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);
|
335
|
+
const $io159 = 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);
|
336
|
+
const $io160 = input => "null" === 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);
|
337
|
+
const $io161 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
338
|
+
const $io162 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
339
|
+
const $io163 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
340
|
+
const $io164 = input => Object.keys(input).every(key => {
|
348
341
|
const value = input[key];
|
349
342
|
if (undefined === value)
|
350
343
|
return true;
|
351
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
344
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io165(value);
|
352
345
|
});
|
353
|
-
const $
|
354
|
-
const $
|
355
|
-
const $
|
356
|
-
const $
|
357
|
-
const $
|
358
|
-
const $
|
359
|
-
const $
|
346
|
+
const $io165 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu8(elem))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io142(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && $io169(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io169(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io169(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io169(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io169(input.patch)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io169(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io169(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && $io169(input.trace));
|
347
|
+
const $io166 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description);
|
348
|
+
const $io167 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
349
|
+
const $io168 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
350
|
+
const $io169 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu8(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && $iu17(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io174(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io142(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io42(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
351
|
+
const $io170 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io171(input.content));
|
352
|
+
const $io171 = input => Object.keys(input).every(key => {
|
360
353
|
const value = input[key];
|
361
354
|
if (undefined === value)
|
362
355
|
return true;
|
363
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
356
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io172(value);
|
364
357
|
});
|
365
|
-
const $
|
366
|
-
const $
|
367
|
-
const $
|
358
|
+
const $io172 = input => undefined === input.schema || "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu7(input.schema);
|
359
|
+
const $io173 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
360
|
+
const $io174 = input => Object.keys(input).every(key => {
|
368
361
|
const value = input[key];
|
369
362
|
if (undefined === value)
|
370
363
|
return true;
|
371
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
364
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu18(value);
|
372
365
|
});
|
373
|
-
const $
|
374
|
-
const $
|
366
|
+
const $io175 = input => (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io171(input.content)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io176(input.headers)) && (undefined === input.description || "string" === typeof input.description);
|
367
|
+
const $io176 = input => Object.keys(input).every(key => {
|
375
368
|
const value = input[key];
|
376
369
|
if (undefined === value)
|
377
370
|
return true;
|
378
|
-
return "object" === typeof value && null !== value && $
|
371
|
+
return "object" === typeof value && null !== value && $iu19(value);
|
379
372
|
});
|
380
|
-
const $
|
381
|
-
const $
|
382
|
-
const $
|
373
|
+
const $io177 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu7(input.schema)) && (undefined === input.name || "string" === typeof input.name);
|
374
|
+
const $io178 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
375
|
+
const $io179 = input => Object.keys(input).every(key => {
|
383
376
|
const value = input[key];
|
384
377
|
if (undefined === value)
|
385
378
|
return true;
|
386
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
379
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io175(value);
|
387
380
|
});
|
388
|
-
const $
|
381
|
+
const $io180 = input => Object.keys(input).every(key => {
|
389
382
|
const value = input[key];
|
390
383
|
if (undefined === value)
|
391
384
|
return true;
|
392
|
-
return "object" === typeof value && null !== value && $
|
385
|
+
return "object" === typeof value && null !== value && $io166(value);
|
393
386
|
});
|
394
|
-
const $
|
387
|
+
const $io181 = input => Object.keys(input).every(key => {
|
395
388
|
const value = input[key];
|
396
389
|
if (undefined === value)
|
397
390
|
return true;
|
398
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
391
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io170(value);
|
399
392
|
});
|
400
|
-
const $
|
393
|
+
const $io182 = input => Object.keys(input).every(key => {
|
401
394
|
const value = input[key];
|
402
395
|
if (undefined === value)
|
403
396
|
return true;
|
404
|
-
return "object" === typeof value && null !== value && $
|
397
|
+
return "object" === typeof value && null !== value && $iu20(value);
|
405
398
|
});
|
406
|
-
const $
|
407
|
-
const $
|
408
|
-
const $
|
409
|
-
const $
|
410
|
-
const $
|
411
|
-
const $
|
412
|
-
const $
|
413
|
-
const $
|
414
|
-
const $
|
415
|
-
const $
|
399
|
+
const $io183 = input => "apiKey" === input.type && (undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description);
|
400
|
+
const $io184 = input => "http" === input.type && "basic" === input.scheme && (undefined === input.description || "string" === typeof input.description);
|
401
|
+
const $io185 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat) && (undefined === input.description || "string" === typeof input.description);
|
402
|
+
const $io186 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io187(input.flows)) && (undefined === input.description || "string" === typeof input.description);
|
403
|
+
const $io187 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) && $io188(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && false === Array.isArray(input.implicit) && $io189(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) && $io190(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) && $io190(input.clientCredentials));
|
404
|
+
const $io188 = input => (undefined === input.authorizationUrl || "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) && $io28(input.scopes));
|
405
|
+
const $io189 = input => (undefined === input.authorizationUrl || "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) && $io28(input.scopes));
|
406
|
+
const $io190 = 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) && $io28(input.scopes));
|
407
|
+
const $io191 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl && (undefined === input.description || "string" === typeof input.description);
|
408
|
+
const $io192 = input => Object.keys(input).every(key => {
|
416
409
|
const value = input[key];
|
417
410
|
if (undefined === value)
|
418
411
|
return true;
|
419
|
-
return "object" === typeof value && null !== value && $
|
412
|
+
return "object" === typeof value && null !== value && $io177(value);
|
420
413
|
});
|
421
|
-
const $
|
414
|
+
const $io193 = input => Object.keys(input).every(key => {
|
422
415
|
const value = input[key];
|
423
416
|
if (undefined === value)
|
424
417
|
return true;
|
425
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
418
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu21(value);
|
426
419
|
});
|
427
|
-
const $
|
428
|
-
const $
|
420
|
+
const $io194 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/pathItems\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
421
|
+
const $io195 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
429
422
|
const $iu0 = input => (() => {
|
430
423
|
if (undefined !== input["const"])
|
431
424
|
return $io9(input);
|
@@ -478,168 +471,168 @@ class MigrateApplication {
|
|
478
471
|
})();
|
479
472
|
const $iu2 = input => (() => {
|
480
473
|
if ("boolean" === input.type)
|
481
|
-
return $
|
474
|
+
return $io49(input);
|
482
475
|
else if ("number" === input.type)
|
483
|
-
return $
|
476
|
+
return $io51(input);
|
484
477
|
else if ("integer" === input.type)
|
485
|
-
return $
|
478
|
+
return $io50(input);
|
486
479
|
else if ("string" === input.type)
|
487
|
-
return $
|
480
|
+
return $io52(input);
|
488
481
|
else if ("array" === input.type)
|
489
|
-
return $
|
482
|
+
return $io53(input);
|
490
483
|
else if ("object" === input.type)
|
491
|
-
return $
|
484
|
+
return $io54(input);
|
492
485
|
else if (undefined !== input.$ref)
|
493
|
-
return $
|
486
|
+
return $io55(input);
|
494
487
|
else if ("null" === input.type)
|
495
|
-
return $
|
488
|
+
return $io57(input);
|
496
489
|
else if (undefined !== input["x-anyOf"])
|
497
|
-
return $
|
490
|
+
return $io58(input);
|
498
491
|
else if (undefined !== input["x-oneOf"])
|
499
|
-
return $
|
492
|
+
return $io59(input);
|
500
493
|
else
|
501
|
-
return $
|
494
|
+
return $io56(input);
|
502
495
|
})();
|
503
496
|
const $iu3 = input => (() => {
|
504
497
|
if ("boolean" === input.type)
|
505
|
-
return $
|
498
|
+
return $io61(input);
|
506
499
|
else if ("number" === input.type)
|
507
|
-
return $
|
500
|
+
return $io63(input);
|
508
501
|
else if ("integer" === input.type)
|
509
|
-
return $
|
502
|
+
return $io62(input);
|
510
503
|
else if ("string" === input.type)
|
511
|
-
return $
|
504
|
+
return $io64(input);
|
512
505
|
else if ("array" === input.type)
|
513
|
-
return $
|
506
|
+
return $io65(input);
|
514
507
|
else if ("object" === input.type)
|
515
|
-
return $
|
508
|
+
return $io66(input);
|
516
509
|
else if ("null" === input.type)
|
517
|
-
return $
|
510
|
+
return $io69(input);
|
518
511
|
else if (undefined !== input["x-anyOf"])
|
519
|
-
return $
|
512
|
+
return $io70(input);
|
520
513
|
else if (undefined !== input["x-oneOf"])
|
521
|
-
return $
|
514
|
+
return $io71(input);
|
522
515
|
else if (undefined !== input.schema)
|
523
|
-
return $
|
516
|
+
return $io72(input);
|
524
517
|
else
|
525
518
|
return (() => {
|
526
|
-
if ($
|
527
|
-
return $
|
528
|
-
if ($
|
529
|
-
return $
|
530
|
-
if ($
|
531
|
-
return $
|
519
|
+
if ($io67(input))
|
520
|
+
return $io67(input);
|
521
|
+
if ($io68(input))
|
522
|
+
return $io68(input);
|
523
|
+
if ($io84(input))
|
524
|
+
return $io84(input);
|
532
525
|
return false;
|
533
526
|
})();
|
534
527
|
})();
|
535
528
|
const $iu4 = input => (() => {
|
536
529
|
if ("boolean" === input.type)
|
537
|
-
return $
|
530
|
+
return $io61(input);
|
538
531
|
else if ("number" === input.type)
|
539
|
-
return $
|
532
|
+
return $io63(input);
|
540
533
|
else if ("integer" === input.type)
|
541
|
-
return $
|
534
|
+
return $io62(input);
|
542
535
|
else if ("string" === input.type)
|
543
|
-
return $
|
536
|
+
return $io64(input);
|
544
537
|
else if ("array" === input.type)
|
545
|
-
return $
|
538
|
+
return $io65(input);
|
546
539
|
else if ("object" === input.type)
|
547
|
-
return $
|
540
|
+
return $io66(input);
|
548
541
|
else if ("null" === input.type)
|
549
|
-
return $
|
542
|
+
return $io69(input);
|
550
543
|
else if (undefined !== input["x-anyOf"])
|
551
|
-
return $
|
544
|
+
return $io70(input);
|
552
545
|
else if (undefined !== input["x-oneOf"])
|
553
|
-
return $
|
546
|
+
return $io71(input);
|
554
547
|
else if (undefined !== input.schema)
|
555
|
-
return $
|
548
|
+
return $io72(input);
|
556
549
|
else
|
557
550
|
return (() => {
|
558
|
-
if ($
|
559
|
-
return $
|
560
|
-
if ($
|
561
|
-
return $
|
562
|
-
if ($
|
563
|
-
return $
|
551
|
+
if ($io67(input))
|
552
|
+
return $io67(input);
|
553
|
+
if ($io68(input))
|
554
|
+
return $io68(input);
|
555
|
+
if ($io86(input))
|
556
|
+
return $io86(input);
|
564
557
|
return false;
|
565
558
|
})();
|
566
559
|
})();
|
567
560
|
const $iu5 = input => (() => {
|
568
561
|
if ("boolean" === input.type)
|
569
|
-
return $
|
562
|
+
return $io99(input);
|
570
563
|
else if ("number" === input.type)
|
571
|
-
return $
|
564
|
+
return $io101(input);
|
572
565
|
else if ("integer" === input.type)
|
573
|
-
return $
|
566
|
+
return $io100(input);
|
574
567
|
else if ("string" === input.type)
|
575
|
-
return $
|
568
|
+
return $io102(input);
|
576
569
|
else if ("array" === input.type)
|
577
|
-
return $
|
570
|
+
return $io103(input);
|
578
571
|
else if ("object" === input.type)
|
579
|
-
return $
|
572
|
+
return $io104(input);
|
580
573
|
else if (undefined !== input.$ref)
|
581
|
-
return $
|
574
|
+
return $io105(input);
|
582
575
|
else if ("null" === input.type)
|
583
|
-
return $
|
576
|
+
return $io107(input);
|
584
577
|
else if (undefined !== input.allOf)
|
585
|
-
return $
|
578
|
+
return $io108(input);
|
586
579
|
else if (undefined !== input.anyOf)
|
587
|
-
return $
|
580
|
+
return $io109(input);
|
588
581
|
else if (undefined !== input.oneOf)
|
589
|
-
return $
|
582
|
+
return $io110(input);
|
590
583
|
else
|
591
|
-
return $
|
584
|
+
return $io106(input);
|
592
585
|
})();
|
593
586
|
const $iu6 = input => (() => {
|
594
587
|
if (undefined !== input["in"])
|
595
|
-
return $
|
588
|
+
return $io119(input);
|
596
589
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref))
|
597
|
-
return $
|
590
|
+
return $io135(input);
|
598
591
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref))
|
599
|
-
return $
|
592
|
+
return $io117(input);
|
600
593
|
else
|
601
594
|
return false;
|
602
595
|
})();
|
603
596
|
const $iu7 = input => (() => {
|
604
597
|
if (Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem))
|
605
|
-
return $
|
598
|
+
return $io150(input);
|
606
599
|
else if ("boolean" === input.type)
|
607
|
-
return $
|
600
|
+
return $io152(input);
|
608
601
|
else if ("number" === input.type)
|
609
|
-
return $
|
602
|
+
return $io154(input);
|
610
603
|
else if ("integer" === input.type)
|
611
|
-
return $
|
604
|
+
return $io153(input);
|
612
605
|
else if ("string" === input.type)
|
613
|
-
return $
|
606
|
+
return $io155(input);
|
614
607
|
else if ("array" === input.type)
|
615
|
-
return $
|
608
|
+
return $io156(input);
|
616
609
|
else if ("object" === input.type)
|
617
|
-
return $
|
610
|
+
return $io157(input);
|
618
611
|
else if (undefined !== input.$ref)
|
619
|
-
return $
|
612
|
+
return $io158(input);
|
620
613
|
else if ("null" === input.type)
|
621
|
-
return $
|
614
|
+
return $io160(input);
|
622
615
|
else
|
623
616
|
return (() => {
|
624
617
|
if (undefined !== input["const"])
|
625
|
-
return $
|
618
|
+
return $io151(input);
|
626
619
|
else if (undefined !== input.allOf)
|
627
|
-
return $
|
620
|
+
return $io161(input);
|
628
621
|
else if (undefined !== input.anyOf)
|
629
|
-
return $
|
622
|
+
return $io162(input);
|
630
623
|
else if (undefined !== input.oneOf)
|
631
|
-
return $
|
624
|
+
return $io163(input);
|
632
625
|
else
|
633
|
-
return $
|
626
|
+
return $io159(input);
|
634
627
|
})();
|
635
628
|
})();
|
636
629
|
const $iu8 = input => (() => {
|
637
630
|
if (undefined !== input["in"])
|
638
|
-
return $
|
631
|
+
return $io166(input);
|
639
632
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref))
|
640
|
-
return $
|
633
|
+
return $io168(input);
|
641
634
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref))
|
642
|
-
return $
|
635
|
+
return $io167(input);
|
643
636
|
else
|
644
637
|
return false;
|
645
638
|
})();
|
@@ -658,146 +651,140 @@ class MigrateApplication {
|
|
658
651
|
return false;
|
659
652
|
})();
|
660
653
|
const $iu10 = input => (() => {
|
661
|
-
if (undefined !== input.$ref)
|
662
|
-
return $io44(input);
|
663
|
-
else
|
664
|
-
return $io33(input);
|
665
|
-
})();
|
666
|
-
const $iu11 = input => (() => {
|
667
654
|
if ("boolean" === input.type)
|
668
|
-
return $
|
655
|
+
return $io61(input);
|
669
656
|
else if ("number" === input.type)
|
670
|
-
return $
|
657
|
+
return $io63(input);
|
671
658
|
else if ("integer" === input.type)
|
672
|
-
return $
|
659
|
+
return $io62(input);
|
673
660
|
else if ("string" === input.type)
|
674
|
-
return $
|
661
|
+
return $io64(input);
|
675
662
|
else if ("array" === input.type)
|
676
|
-
return $
|
663
|
+
return $io65(input);
|
677
664
|
else if ("object" === input.type)
|
678
|
-
return $
|
665
|
+
return $io66(input);
|
679
666
|
else if (undefined !== input.$ref)
|
680
|
-
return $
|
667
|
+
return $io67(input);
|
681
668
|
else if ("null" === input.type)
|
682
|
-
return $
|
669
|
+
return $io69(input);
|
683
670
|
else if (undefined !== input["x-anyOf"])
|
684
|
-
return $
|
671
|
+
return $io70(input);
|
685
672
|
else if (undefined !== input["x-oneOf"])
|
686
|
-
return $
|
673
|
+
return $io71(input);
|
687
674
|
else if (undefined !== input.schema)
|
688
|
-
return $
|
675
|
+
return $io72(input);
|
689
676
|
else
|
690
|
-
return $
|
677
|
+
return $io68(input);
|
691
678
|
})();
|
692
|
-
const $
|
679
|
+
const $iu11 = input => (() => {
|
693
680
|
if ("apiKey" === input.type)
|
694
|
-
return $
|
681
|
+
return $io76(input);
|
695
682
|
else if ("basic" === input.type)
|
696
|
-
return $
|
683
|
+
return $io77(input);
|
697
684
|
else if ("implicit" === input.flow)
|
698
|
-
return $
|
685
|
+
return $io78(input);
|
699
686
|
else if ("accessCode" === input.flow)
|
700
|
-
return $
|
687
|
+
return $io79(input);
|
701
688
|
else if ("application" === input.flow)
|
702
|
-
return $
|
689
|
+
return $io81(input);
|
703
690
|
else if ("password" === input.flow)
|
704
|
-
return $
|
691
|
+
return $io80(input);
|
705
692
|
else
|
706
693
|
return false;
|
707
694
|
})();
|
708
|
-
const $
|
695
|
+
const $iu12 = input => (() => {
|
709
696
|
if (undefined !== input.$ref)
|
710
|
-
return $
|
697
|
+
return $io88(input);
|
711
698
|
else
|
712
|
-
return $
|
699
|
+
return $io74(input);
|
713
700
|
})();
|
714
|
-
const $
|
701
|
+
const $iu13 = input => (() => {
|
715
702
|
if (undefined !== input.schema)
|
716
|
-
return $
|
703
|
+
return $io116(input);
|
717
704
|
else if (undefined !== input.$ref)
|
718
|
-
return $
|
705
|
+
return $io117(input);
|
719
706
|
else
|
720
707
|
return false;
|
721
708
|
})();
|
722
|
-
const $
|
709
|
+
const $iu14 = input => (() => {
|
723
710
|
if ("apiKey" === input.type)
|
724
|
-
return $
|
711
|
+
return $io123(input);
|
725
712
|
else if ("basic" === input.scheme)
|
726
|
-
return $
|
713
|
+
return $io124(input);
|
727
714
|
else if ("bearer" === input.scheme)
|
728
|
-
return $
|
715
|
+
return $io125(input);
|
729
716
|
else if ("oauth2" === input.type)
|
730
|
-
return $
|
717
|
+
return $io126(input);
|
731
718
|
else if ("openIdConnect" === input.type)
|
732
|
-
return $
|
719
|
+
return $io131(input);
|
733
720
|
else
|
734
721
|
return false;
|
735
722
|
})();
|
723
|
+
const $iu15 = input => (() => {
|
724
|
+
if (undefined !== input.$ref)
|
725
|
+
return $io137(input);
|
726
|
+
else
|
727
|
+
return $io121(input);
|
728
|
+
})();
|
736
729
|
const $iu16 = input => (() => {
|
737
730
|
if (undefined !== input.$ref)
|
738
731
|
return $io139(input);
|
739
732
|
else
|
740
|
-
return $
|
733
|
+
return $io112(input);
|
741
734
|
})();
|
742
735
|
const $iu17 = input => (() => {
|
743
736
|
if (undefined !== input.$ref)
|
744
|
-
return $
|
737
|
+
return $io173(input);
|
745
738
|
else
|
746
|
-
return $
|
739
|
+
return $io170(input);
|
747
740
|
})();
|
748
741
|
const $iu18 = input => (() => {
|
749
742
|
if (undefined !== input.$ref)
|
750
|
-
return $
|
743
|
+
return $io178(input);
|
751
744
|
else
|
752
|
-
return $
|
745
|
+
return $io175(input);
|
753
746
|
})();
|
754
747
|
const $iu19 = input => (() => {
|
755
748
|
if (undefined !== input.$ref)
|
756
|
-
return $
|
757
|
-
else
|
758
|
-
return $io177(input);
|
759
|
-
})();
|
760
|
-
const $iu20 = input => (() => {
|
761
|
-
if (undefined !== input.$ref)
|
762
|
-
return $io169(input);
|
749
|
+
return $io167(input);
|
763
750
|
else if (undefined !== input.schema)
|
764
|
-
return $
|
751
|
+
return $io177(input);
|
765
752
|
else
|
766
753
|
return false;
|
767
754
|
})();
|
768
|
-
const $
|
755
|
+
const $iu20 = input => (() => {
|
769
756
|
if ("apiKey" === input.type)
|
770
|
-
return $
|
757
|
+
return $io183(input);
|
771
758
|
else if ("basic" === input.scheme)
|
772
|
-
return $
|
759
|
+
return $io184(input);
|
773
760
|
else if ("bearer" === input.scheme)
|
774
|
-
return $
|
761
|
+
return $io185(input);
|
775
762
|
else if ("oauth2" === input.type)
|
776
|
-
return $
|
763
|
+
return $io186(input);
|
777
764
|
else if ("openIdConnect" === input.type)
|
778
|
-
return $
|
765
|
+
return $io191(input);
|
779
766
|
else
|
780
767
|
return false;
|
781
768
|
})();
|
782
|
-
const $
|
769
|
+
const $iu21 = input => (() => {
|
783
770
|
if (undefined !== input.$ref)
|
784
|
-
return $
|
771
|
+
return $io194(input);
|
785
772
|
else
|
786
|
-
return $
|
773
|
+
return $io165(input);
|
787
774
|
})();
|
788
|
-
const $
|
775
|
+
const $iu22 = input => (() => {
|
789
776
|
if (undefined !== input["x-samchon-emended"])
|
790
777
|
return $io0(input);
|
791
778
|
else if (undefined !== input.swagger)
|
792
|
-
return $
|
779
|
+
return $io44(input);
|
793
780
|
else if (null !== input.openapi && undefined !== input.openapi && ("3.0" === input.openapi || "string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi)))
|
794
|
-
return $
|
781
|
+
return $io90(input);
|
795
782
|
else if ("string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi))
|
796
|
-
return $
|
783
|
+
return $io141(input);
|
797
784
|
else
|
798
785
|
return false;
|
799
786
|
})();
|
800
|
-
return "object" === typeof input && null !== input && $
|
787
|
+
return "object" === typeof input && null !== input && $iu22(input);
|
801
788
|
};
|
802
789
|
if (false === __is(input)) {
|
803
790
|
const $report = typia_1.default.validate.report(errors);
|
@@ -849,11 +836,11 @@ class MigrateApplication {
|
|
849
836
|
value: input.paths
|
850
837
|
}), undefined === input.webhooks || ("object" === typeof input.webhooks && null !== input.webhooks && false === Array.isArray(input.webhooks) || $report(_exceptionable, {
|
851
838
|
path: _path + ".webhooks",
|
852
|
-
expected: "(Record<string, IPath |
|
839
|
+
expected: "(Record<string, OpenApi.IPath> | undefined)",
|
853
840
|
value: input.webhooks
|
854
|
-
})) && $
|
841
|
+
})) && $vo32(input.webhooks, _path + ".webhooks", true && _exceptionable) || $report(_exceptionable, {
|
855
842
|
path: _path + ".webhooks",
|
856
|
-
expected: "(Record<string, IPath |
|
843
|
+
expected: "(Record<string, OpenApi.IPath> | undefined)",
|
857
844
|
value: input.webhooks
|
858
845
|
}), undefined === input.security || (Array.isArray(input.security) || $report(_exceptionable, {
|
859
846
|
path: _path + ".security",
|
@@ -879,7 +866,7 @@ class MigrateApplication {
|
|
879
866
|
path: _path + ".tags[" + _index3 + "]",
|
880
867
|
expected: "OpenApi.IDocument.ITag",
|
881
868
|
value: elem
|
882
|
-
})) && $
|
869
|
+
})) && $vo43(elem, _path + ".tags[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
883
870
|
path: _path + ".tags[" + _index3 + "]",
|
884
871
|
expected: "OpenApi.IDocument.ITag",
|
885
872
|
value: elem
|
@@ -1496,7 +1483,7 @@ class MigrateApplication {
|
|
1496
1483
|
path: _path + ".type",
|
1497
1484
|
expected: "\"apiKey\"",
|
1498
1485
|
value: input.type
|
1499
|
-
}), undefined === input["in"] || "
|
1486
|
+
}), undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
1500
1487
|
path: _path + "[\"in\"]",
|
1501
1488
|
expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
|
1502
1489
|
value: input["in"]
|
@@ -1620,15 +1607,7 @@ class MigrateApplication {
|
|
1620
1607
|
value: value
|
1621
1608
|
});
|
1622
1609
|
}).every(flag => flag)].every(flag => flag);
|
1623
|
-
const $vo29 = (input, _path, _exceptionable = true) => [undefined === input.
|
1624
|
-
path: _path + ".scopes",
|
1625
|
-
expected: "(Record<string, string> | undefined)",
|
1626
|
-
value: input.scopes
|
1627
|
-
})) && $vo28(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
1628
|
-
path: _path + ".scopes",
|
1629
|
-
expected: "(Record<string, string> | undefined)",
|
1630
|
-
value: input.scopes
|
1631
|
-
}), undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
1610
|
+
const $vo29 = (input, _path, _exceptionable = true) => [undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
1632
1611
|
path: _path + ".authorizationUrl",
|
1633
1612
|
expected: "(string | undefined)",
|
1634
1613
|
value: input.authorizationUrl
|
@@ -1636,8 +1615,7 @@ class MigrateApplication {
|
|
1636
1615
|
path: _path + ".refreshUrl",
|
1637
1616
|
expected: "(string | undefined)",
|
1638
1617
|
value: input.refreshUrl
|
1639
|
-
})
|
1640
|
-
const $vo30 = (input, _path, _exceptionable = true) => [undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
1618
|
+
}), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
1641
1619
|
path: _path + ".scopes",
|
1642
1620
|
expected: "(Record<string, string> | undefined)",
|
1643
1621
|
value: input.scopes
|
@@ -1645,7 +1623,8 @@ class MigrateApplication {
|
|
1645
1623
|
path: _path + ".scopes",
|
1646
1624
|
expected: "(Record<string, string> | undefined)",
|
1647
1625
|
value: input.scopes
|
1648
|
-
})
|
1626
|
+
})].every(flag => flag);
|
1627
|
+
const $vo30 = (input, _path, _exceptionable = true) => [undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $report(_exceptionable, {
|
1649
1628
|
path: _path + ".tokenUrl",
|
1650
1629
|
expected: "(string | undefined)",
|
1651
1630
|
value: input.tokenUrl
|
@@ -1653,6 +1632,14 @@ class MigrateApplication {
|
|
1653
1632
|
path: _path + ".refreshUrl",
|
1654
1633
|
expected: "(string | undefined)",
|
1655
1634
|
value: input.refreshUrl
|
1635
|
+
}), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
1636
|
+
path: _path + ".scopes",
|
1637
|
+
expected: "(Record<string, string> | undefined)",
|
1638
|
+
value: input.scopes
|
1639
|
+
})) && $vo28(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
1640
|
+
path: _path + ".scopes",
|
1641
|
+
expected: "(Record<string, string> | undefined)",
|
1642
|
+
value: input.scopes
|
1656
1643
|
})].every(flag => flag);
|
1657
1644
|
const $vo31 = (input, _path, _exceptionable = true) => ["openIdConnect" === input.type || $report(_exceptionable, {
|
1658
1645
|
path: _path + ".type",
|
@@ -1705,6 +1692,14 @@ class MigrateApplication {
|
|
1705
1692
|
path: _path + ".description",
|
1706
1693
|
expected: "(string | undefined)",
|
1707
1694
|
value: input.description
|
1695
|
+
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
1696
|
+
path: _path + ".head",
|
1697
|
+
expected: "(OpenApi.IOperation | undefined)",
|
1698
|
+
value: input.head
|
1699
|
+
})) && $vo34(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
1700
|
+
path: _path + ".head",
|
1701
|
+
expected: "(OpenApi.IOperation | undefined)",
|
1702
|
+
value: input.head
|
1708
1703
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || $report(_exceptionable, {
|
1709
1704
|
path: _path + ".get",
|
1710
1705
|
expected: "(OpenApi.IOperation | undefined)",
|
@@ -1729,6 +1724,14 @@ class MigrateApplication {
|
|
1729
1724
|
path: _path + ".put",
|
1730
1725
|
expected: "(OpenApi.IOperation | undefined)",
|
1731
1726
|
value: input.put
|
1727
|
+
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
1728
|
+
path: _path + ".patch",
|
1729
|
+
expected: "(OpenApi.IOperation | undefined)",
|
1730
|
+
value: input.patch
|
1731
|
+
})) && $vo34(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
1732
|
+
path: _path + ".patch",
|
1733
|
+
expected: "(OpenApi.IOperation | undefined)",
|
1734
|
+
value: input.patch
|
1732
1735
|
}), undefined === input["delete"] || ("object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) || $report(_exceptionable, {
|
1733
1736
|
path: _path + "[\"delete\"]",
|
1734
1737
|
expected: "(OpenApi.IOperation | undefined)",
|
@@ -1745,22 +1748,6 @@ class MigrateApplication {
|
|
1745
1748
|
path: _path + ".options",
|
1746
1749
|
expected: "(OpenApi.IOperation | undefined)",
|
1747
1750
|
value: input.options
|
1748
|
-
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
1749
|
-
path: _path + ".head",
|
1750
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1751
|
-
value: input.head
|
1752
|
-
})) && $vo34(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
1753
|
-
path: _path + ".head",
|
1754
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1755
|
-
value: input.head
|
1756
|
-
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
1757
|
-
path: _path + ".patch",
|
1758
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1759
|
-
value: input.patch
|
1760
|
-
})) && $vo34(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
1761
|
-
path: _path + ".patch",
|
1762
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1763
|
-
value: input.patch
|
1764
1751
|
}), undefined === input.trace || ("object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) || $report(_exceptionable, {
|
1765
1752
|
path: _path + ".trace",
|
1766
1753
|
expected: "(OpenApi.IOperation | undefined)",
|
@@ -1867,7 +1854,7 @@ class MigrateApplication {
|
|
1867
1854
|
path: _path + ".name",
|
1868
1855
|
expected: "(string | undefined)",
|
1869
1856
|
value: input.name
|
1870
|
-
}), "
|
1857
|
+
}), "path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
1871
1858
|
path: _path + "[\"in\"]",
|
1872
1859
|
expected: "(\"cookie\" | \"header\" | \"path\" | \"query\")",
|
1873
1860
|
value: input["in"]
|
@@ -2049,38 +2036,7 @@ class MigrateApplication {
|
|
2049
2036
|
value: value
|
2050
2037
|
});
|
2051
2038
|
}).every(flag => flag)].every(flag => flag);
|
2052
|
-
const $vo43 = (input, _path, _exceptionable = true) => [
|
2053
|
-
const value = input[key];
|
2054
|
-
if (undefined === value)
|
2055
|
-
return true;
|
2056
|
-
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
|
2057
|
-
path: _path + $join(key),
|
2058
|
-
expected: "(OpenApi.IJsonSchema.IReference<`#/components/pathItems/${string}`> | OpenApi.IPath)",
|
2059
|
-
value: value
|
2060
|
-
})) && $vu10(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
2061
|
-
path: _path + $join(key),
|
2062
|
-
expected: "(OpenApi.IJsonSchema.IReference<`#/components/pathItems/${string}`> | OpenApi.IPath)",
|
2063
|
-
value: value
|
2064
|
-
});
|
2065
|
-
}).every(flag => flag)].every(flag => flag);
|
2066
|
-
const $vo44 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/pathItems\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
2067
|
-
path: _path + ".$ref",
|
2068
|
-
expected: "`#/components/pathItems/${string}`",
|
2069
|
-
value: input.$ref
|
2070
|
-
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
2071
|
-
path: _path + ".title",
|
2072
|
-
expected: "(string | undefined)",
|
2073
|
-
value: input.title
|
2074
|
-
}), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
2075
|
-
path: _path + ".description",
|
2076
|
-
expected: "(string | undefined)",
|
2077
|
-
value: input.description
|
2078
|
-
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || $report(_exceptionable, {
|
2079
|
-
path: _path + ".deprecated",
|
2080
|
-
expected: "(boolean | undefined)",
|
2081
|
-
value: input.deprecated
|
2082
|
-
})].every(flag => flag);
|
2083
|
-
const $vo45 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
2039
|
+
const $vo43 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
2084
2040
|
path: _path + ".name",
|
2085
2041
|
expected: "string",
|
2086
2042
|
value: input.name
|
@@ -2089,7 +2045,7 @@ class MigrateApplication {
|
|
2089
2045
|
expected: "(string | undefined)",
|
2090
2046
|
value: input.description
|
2091
2047
|
})].every(flag => flag);
|
2092
|
-
const $
|
2048
|
+
const $vo44 = (input, _path, _exceptionable = true) => [(null !== input.swagger || $report(_exceptionable, {
|
2093
2049
|
path: _path + ".swagger",
|
2094
2050
|
expected: "(\"2.0\" | `2.0.${number}`)",
|
2095
2051
|
value: input.swagger
|
@@ -2105,7 +2061,7 @@ class MigrateApplication {
|
|
2105
2061
|
path: _path + ".info",
|
2106
2062
|
expected: "(SwaggerV2.IDocument.IInfo | undefined)",
|
2107
2063
|
value: input.info
|
2108
|
-
})) && $
|
2064
|
+
})) && $vo45(input.info, _path + ".info", true && _exceptionable) || $report(_exceptionable, {
|
2109
2065
|
path: _path + ".info",
|
2110
2066
|
expected: "(SwaggerV2.IDocument.IInfo | undefined)",
|
2111
2067
|
value: input.info
|
@@ -2145,7 +2101,7 @@ class MigrateApplication {
|
|
2145
2101
|
path: _path + ".definitions",
|
2146
2102
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
2147
2103
|
value: input.definitions
|
2148
|
-
})) && $
|
2104
|
+
})) && $vo48(input.definitions, _path + ".definitions", true && _exceptionable) || $report(_exceptionable, {
|
2149
2105
|
path: _path + ".definitions",
|
2150
2106
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
2151
2107
|
value: input.definitions
|
@@ -2153,7 +2109,7 @@ class MigrateApplication {
|
|
2153
2109
|
path: _path + ".parameters",
|
2154
2110
|
expected: "(Record<string, SwaggerV2.IOperation.IParameter> | undefined)",
|
2155
2111
|
value: input.parameters
|
2156
|
-
})) && $
|
2112
|
+
})) && $vo60(input.parameters, _path + ".parameters", true && _exceptionable) || $report(_exceptionable, {
|
2157
2113
|
path: _path + ".parameters",
|
2158
2114
|
expected: "(Record<string, SwaggerV2.IOperation.IParameter> | undefined)",
|
2159
2115
|
value: input.parameters
|
@@ -2161,7 +2117,7 @@ class MigrateApplication {
|
|
2161
2117
|
path: _path + ".responses",
|
2162
2118
|
expected: "(Record<string, SwaggerV2.IOperation.IResponse> | undefined)",
|
2163
2119
|
value: input.responses
|
2164
|
-
})) && $
|
2120
|
+
})) && $vo73(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
2165
2121
|
path: _path + ".responses",
|
2166
2122
|
expected: "(Record<string, SwaggerV2.IOperation.IResponse> | undefined)",
|
2167
2123
|
value: input.responses
|
@@ -2169,7 +2125,7 @@ class MigrateApplication {
|
|
2169
2125
|
path: _path + ".securityDefinitions",
|
2170
2126
|
expected: "(Record<string, SwaggerV2.ISecurityDefinition> | undefined)",
|
2171
2127
|
value: input.securityDefinitions
|
2172
|
-
})) && $
|
2128
|
+
})) && $vo75(input.securityDefinitions, _path + ".securityDefinitions", true && _exceptionable) || $report(_exceptionable, {
|
2173
2129
|
path: _path + ".securityDefinitions",
|
2174
2130
|
expected: "(Record<string, SwaggerV2.ISecurityDefinition> | undefined)",
|
2175
2131
|
value: input.securityDefinitions
|
@@ -2193,7 +2149,7 @@ class MigrateApplication {
|
|
2193
2149
|
path: _path + ".paths",
|
2194
2150
|
expected: "(Record<string, SwaggerV2.IPath> | undefined)",
|
2195
2151
|
value: input.paths
|
2196
|
-
})) && $
|
2152
|
+
})) && $vo82(input.paths, _path + ".paths", true && _exceptionable) || $report(_exceptionable, {
|
2197
2153
|
path: _path + ".paths",
|
2198
2154
|
expected: "(Record<string, SwaggerV2.IPath> | undefined)",
|
2199
2155
|
value: input.paths
|
@@ -2205,7 +2161,7 @@ class MigrateApplication {
|
|
2205
2161
|
path: _path + ".tags[" + _index17 + "]",
|
2206
2162
|
expected: "SwaggerV2.IDocument.ITag",
|
2207
2163
|
value: elem
|
2208
|
-
})) && $
|
2164
|
+
})) && $vo89(elem, _path + ".tags[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
|
2209
2165
|
path: _path + ".tags[" + _index17 + "]",
|
2210
2166
|
expected: "SwaggerV2.IDocument.ITag",
|
2211
2167
|
value: elem
|
@@ -2214,7 +2170,7 @@ class MigrateApplication {
|
|
2214
2170
|
expected: "(Array<SwaggerV2.IDocument.ITag> | undefined)",
|
2215
2171
|
value: input.tags
|
2216
2172
|
})].every(flag => flag);
|
2217
|
-
const $
|
2173
|
+
const $vo45 = (input, _path, _exceptionable = true) => ["string" === typeof input.title || $report(_exceptionable, {
|
2218
2174
|
path: _path + ".title",
|
2219
2175
|
expected: "string",
|
2220
2176
|
value: input.title
|
@@ -2230,7 +2186,7 @@ class MigrateApplication {
|
|
2230
2186
|
path: _path + ".contact",
|
2231
2187
|
expected: "(SwaggerV2.IDocument.IContact | undefined)",
|
2232
2188
|
value: input.contact
|
2233
|
-
})) && $
|
2189
|
+
})) && $vo46(input.contact, _path + ".contact", true && _exceptionable) || $report(_exceptionable, {
|
2234
2190
|
path: _path + ".contact",
|
2235
2191
|
expected: "(SwaggerV2.IDocument.IContact | undefined)",
|
2236
2192
|
value: input.contact
|
@@ -2238,7 +2194,7 @@ class MigrateApplication {
|
|
2238
2194
|
path: _path + ".license",
|
2239
2195
|
expected: "(SwaggerV2.IDocument.ILicense | undefined)",
|
2240
2196
|
value: input.license
|
2241
|
-
})) && $
|
2197
|
+
})) && $vo47(input.license, _path + ".license", true && _exceptionable) || $report(_exceptionable, {
|
2242
2198
|
path: _path + ".license",
|
2243
2199
|
expected: "(SwaggerV2.IDocument.ILicense | undefined)",
|
2244
2200
|
value: input.license
|
@@ -2247,7 +2203,7 @@ class MigrateApplication {
|
|
2247
2203
|
expected: "string",
|
2248
2204
|
value: input.version
|
2249
2205
|
})].every(flag => flag);
|
2250
|
-
const $
|
2206
|
+
const $vo46 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
2251
2207
|
path: _path + ".name",
|
2252
2208
|
expected: "(string | undefined)",
|
2253
2209
|
value: input.name
|
@@ -2260,7 +2216,7 @@ class MigrateApplication {
|
|
2260
2216
|
expected: "(string | undefined)",
|
2261
2217
|
value: input.email
|
2262
2218
|
})].every(flag => flag);
|
2263
|
-
const $
|
2219
|
+
const $vo47 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
2264
2220
|
path: _path + ".name",
|
2265
2221
|
expected: "string",
|
2266
2222
|
value: input.name
|
@@ -2269,7 +2225,7 @@ class MigrateApplication {
|
|
2269
2225
|
expected: "(string | undefined)",
|
2270
2226
|
value: input.url
|
2271
2227
|
})].every(flag => flag);
|
2272
|
-
const $
|
2228
|
+
const $vo48 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
2273
2229
|
const value = input[key];
|
2274
2230
|
if (undefined === value)
|
2275
2231
|
return true;
|
@@ -2283,7 +2239,7 @@ class MigrateApplication {
|
|
2283
2239
|
value: value
|
2284
2240
|
});
|
2285
2241
|
}).every(flag => flag)].every(flag => flag);
|
2286
|
-
const $
|
2242
|
+
const $vo49 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "boolean" === typeof input["default"] || $report(_exceptionable, {
|
2287
2243
|
path: _path + "[\"default\"]",
|
2288
2244
|
expected: "(boolean | undefined)",
|
2289
2245
|
value: input["default"]
|
@@ -2320,7 +2276,7 @@ class MigrateApplication {
|
|
2320
2276
|
expected: "(boolean | undefined)",
|
2321
2277
|
value: input.deprecated
|
2322
2278
|
})].every(flag => flag);
|
2323
|
-
const $
|
2279
|
+
const $vo50 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000 || $report(_exceptionable, {
|
2324
2280
|
path: _path + "[\"default\"]",
|
2325
2281
|
expected: "number & Type<\"int64\">",
|
2326
2282
|
value: input["default"]
|
@@ -2397,7 +2353,7 @@ class MigrateApplication {
|
|
2397
2353
|
expected: "(boolean | undefined)",
|
2398
2354
|
value: input.deprecated
|
2399
2355
|
})].every(flag => flag);
|
2400
|
-
const $
|
2356
|
+
const $vo51 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] || $report(_exceptionable, {
|
2401
2357
|
path: _path + "[\"default\"]",
|
2402
2358
|
expected: "(number | undefined)",
|
2403
2359
|
value: input["default"]
|
@@ -2458,7 +2414,7 @@ class MigrateApplication {
|
|
2458
2414
|
expected: "(boolean | undefined)",
|
2459
2415
|
value: input.deprecated
|
2460
2416
|
})].every(flag => flag);
|
2461
|
-
const $
|
2417
|
+
const $vo52 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "string" === typeof input["default"] || $report(_exceptionable, {
|
2462
2418
|
path: _path + "[\"default\"]",
|
2463
2419
|
expected: "(string | undefined)",
|
2464
2420
|
value: input["default"]
|
@@ -2519,7 +2475,7 @@ class MigrateApplication {
|
|
2519
2475
|
expected: "(boolean | undefined)",
|
2520
2476
|
value: input.deprecated
|
2521
2477
|
})].every(flag => flag);
|
2522
|
-
const $
|
2478
|
+
const $vo53 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $report(_exceptionable, {
|
2523
2479
|
path: _path + ".items",
|
2524
2480
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown)",
|
2525
2481
|
value: input.items
|
@@ -2568,11 +2524,11 @@ class MigrateApplication {
|
|
2568
2524
|
expected: "(boolean | undefined)",
|
2569
2525
|
value: input.deprecated
|
2570
2526
|
})].every(flag => flag);
|
2571
|
-
const $
|
2527
|
+
const $vo54 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $report(_exceptionable, {
|
2572
2528
|
path: _path + ".properties",
|
2573
2529
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
2574
2530
|
value: input.properties
|
2575
|
-
})) && $
|
2531
|
+
})) && $vo48(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
|
2576
2532
|
path: _path + ".properties",
|
2577
2533
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
2578
2534
|
value: input.properties
|
@@ -2629,7 +2585,7 @@ class MigrateApplication {
|
|
2629
2585
|
expected: "(boolean | undefined)",
|
2630
2586
|
value: input.deprecated
|
2631
2587
|
})].every(flag => flag);
|
2632
|
-
const $
|
2588
|
+
const $vo55 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || $report(_exceptionable, {
|
2633
2589
|
path: _path + ".$ref",
|
2634
2590
|
expected: "string",
|
2635
2591
|
value: input.$ref
|
@@ -2646,7 +2602,7 @@ class MigrateApplication {
|
|
2646
2602
|
expected: "(boolean | undefined)",
|
2647
2603
|
value: input.deprecated
|
2648
2604
|
})].every(flag => flag);
|
2649
|
-
const $
|
2605
|
+
const $vo56 = (input, _path, _exceptionable = true) => [(null !== input.type || $report(_exceptionable, {
|
2650
2606
|
path: _path + ".type",
|
2651
2607
|
expected: "undefined",
|
2652
2608
|
value: input.type
|
@@ -2667,7 +2623,7 @@ class MigrateApplication {
|
|
2667
2623
|
expected: "(boolean | undefined)",
|
2668
2624
|
value: input.deprecated
|
2669
2625
|
})].every(flag => flag);
|
2670
|
-
const $
|
2626
|
+
const $vo57 = (input, _path, _exceptionable = true) => ["null" === input.type || $report(_exceptionable, {
|
2671
2627
|
path: _path + ".type",
|
2672
2628
|
expected: "\"null\"",
|
2673
2629
|
value: input.type
|
@@ -2684,7 +2640,7 @@ class MigrateApplication {
|
|
2684
2640
|
expected: "(boolean | undefined)",
|
2685
2641
|
value: input.deprecated
|
2686
2642
|
})].every(flag => flag);
|
2687
|
-
const $
|
2643
|
+
const $vo58 = (input, _path, _exceptionable = true) => [(Array.isArray(input["x-anyOf"]) || $report(_exceptionable, {
|
2688
2644
|
path: _path + "[\"x-anyOf\"]",
|
2689
2645
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
2690
2646
|
value: input["x-anyOf"]
|
@@ -2713,7 +2669,7 @@ class MigrateApplication {
|
|
2713
2669
|
expected: "(boolean | undefined)",
|
2714
2670
|
value: input.deprecated
|
2715
2671
|
})].every(flag => flag);
|
2716
|
-
const $
|
2672
|
+
const $vo59 = (input, _path, _exceptionable = true) => [(Array.isArray(input["x-oneOf"]) || $report(_exceptionable, {
|
2717
2673
|
path: _path + "[\"x-oneOf\"]",
|
2718
2674
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
2719
2675
|
value: input["x-oneOf"]
|
@@ -2742,7 +2698,7 @@ class MigrateApplication {
|
|
2742
2698
|
expected: "(boolean | undefined)",
|
2743
2699
|
value: input.deprecated
|
2744
2700
|
})].every(flag => flag);
|
2745
|
-
const $
|
2701
|
+
const $vo60 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
2746
2702
|
const value = input[key];
|
2747
2703
|
if (undefined === value)
|
2748
2704
|
return true;
|
@@ -2750,13 +2706,13 @@ class MigrateApplication {
|
|
2750
2706
|
path: _path + $join(key),
|
2751
2707
|
expected: "(IAnyOf & { name: string; in: string; description?: string | undefined; } | IArray & { name: string; in: string; description?: string | undefined; } | IBoolean & { name: string; in: string; description?: string | undefined; } | IInteger & { name: string; in: string; description?: string | undefined; } | INullOnly & { name: string; in: string; description?: string | undefined; } | INumber & { name: string; in: string; description?: string | undefined; } | IObject & { name: string; in: string; description?: string | undefined; } | IOneOf & { name: string; in: string; description?: string | undefined; } | IReference<string> & { name: string; in: string; description?: string | undefined; } | IString & { name: string; in: string; description?: string | undefined; } | IUnknown & { name: string; in: string; description?: string | undefined; } | SwaggerV2.IOperation.IBodyParameter)",
|
2752
2708
|
value: value
|
2753
|
-
})) && $
|
2709
|
+
})) && $vu10(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
2754
2710
|
path: _path + $join(key),
|
2755
2711
|
expected: "(IAnyOf & { name: string; in: string; description?: string | undefined; } | IArray & { name: string; in: string; description?: string | undefined; } | IBoolean & { name: string; in: string; description?: string | undefined; } | IInteger & { name: string; in: string; description?: string | undefined; } | INullOnly & { name: string; in: string; description?: string | undefined; } | INumber & { name: string; in: string; description?: string | undefined; } | IObject & { name: string; in: string; description?: string | undefined; } | IOneOf & { name: string; in: string; description?: string | undefined; } | IReference<string> & { name: string; in: string; description?: string | undefined; } | IString & { name: string; in: string; description?: string | undefined; } | IUnknown & { name: string; in: string; description?: string | undefined; } | SwaggerV2.IOperation.IBodyParameter)",
|
2756
2712
|
value: value
|
2757
2713
|
});
|
2758
2714
|
}).every(flag => flag)].every(flag => flag);
|
2759
|
-
const $
|
2715
|
+
const $vo61 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "boolean" === typeof input["default"] || $report(_exceptionable, {
|
2760
2716
|
path: _path + "[\"default\"]",
|
2761
2717
|
expected: "(boolean | undefined)",
|
2762
2718
|
value: input["default"]
|
@@ -2801,7 +2757,7 @@ class MigrateApplication {
|
|
2801
2757
|
expected: "string",
|
2802
2758
|
value: input["in"]
|
2803
2759
|
})].every(flag => flag);
|
2804
|
-
const $
|
2760
|
+
const $vo62 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000 || $report(_exceptionable, {
|
2805
2761
|
path: _path + "[\"default\"]",
|
2806
2762
|
expected: "number & Type<\"int64\">",
|
2807
2763
|
value: input["default"]
|
@@ -2886,7 +2842,7 @@ class MigrateApplication {
|
|
2886
2842
|
expected: "string",
|
2887
2843
|
value: input["in"]
|
2888
2844
|
})].every(flag => flag);
|
2889
|
-
const $
|
2845
|
+
const $vo63 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] || $report(_exceptionable, {
|
2890
2846
|
path: _path + "[\"default\"]",
|
2891
2847
|
expected: "(number | undefined)",
|
2892
2848
|
value: input["default"]
|
@@ -2955,7 +2911,7 @@ class MigrateApplication {
|
|
2955
2911
|
expected: "string",
|
2956
2912
|
value: input["in"]
|
2957
2913
|
})].every(flag => flag);
|
2958
|
-
const $
|
2914
|
+
const $vo64 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "string" === typeof input["default"] || $report(_exceptionable, {
|
2959
2915
|
path: _path + "[\"default\"]",
|
2960
2916
|
expected: "(string | undefined)",
|
2961
2917
|
value: input["default"]
|
@@ -3024,7 +2980,7 @@ class MigrateApplication {
|
|
3024
2980
|
expected: "string",
|
3025
2981
|
value: input["in"]
|
3026
2982
|
})].every(flag => flag);
|
3027
|
-
const $
|
2983
|
+
const $vo65 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $report(_exceptionable, {
|
3028
2984
|
path: _path + ".items",
|
3029
2985
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown)",
|
3030
2986
|
value: input.items
|
@@ -3081,11 +3037,11 @@ class MigrateApplication {
|
|
3081
3037
|
expected: "string",
|
3082
3038
|
value: input["in"]
|
3083
3039
|
})].every(flag => flag);
|
3084
|
-
const $
|
3040
|
+
const $vo66 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $report(_exceptionable, {
|
3085
3041
|
path: _path + ".properties",
|
3086
3042
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
3087
3043
|
value: input.properties
|
3088
|
-
})) && $
|
3044
|
+
})) && $vo48(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
|
3089
3045
|
path: _path + ".properties",
|
3090
3046
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
3091
3047
|
value: input.properties
|
@@ -3150,7 +3106,7 @@ class MigrateApplication {
|
|
3150
3106
|
expected: "string",
|
3151
3107
|
value: input["in"]
|
3152
3108
|
})].every(flag => flag);
|
3153
|
-
const $
|
3109
|
+
const $vo67 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || $report(_exceptionable, {
|
3154
3110
|
path: _path + ".$ref",
|
3155
3111
|
expected: "string",
|
3156
3112
|
value: input.$ref
|
@@ -3175,7 +3131,7 @@ class MigrateApplication {
|
|
3175
3131
|
expected: "string",
|
3176
3132
|
value: input["in"]
|
3177
3133
|
})].every(flag => flag);
|
3178
|
-
const $
|
3134
|
+
const $vo68 = (input, _path, _exceptionable = true) => [(null !== input.type || $report(_exceptionable, {
|
3179
3135
|
path: _path + ".type",
|
3180
3136
|
expected: "undefined",
|
3181
3137
|
value: input.type
|
@@ -3204,7 +3160,7 @@ class MigrateApplication {
|
|
3204
3160
|
expected: "string",
|
3205
3161
|
value: input["in"]
|
3206
3162
|
})].every(flag => flag);
|
3207
|
-
const $
|
3163
|
+
const $vo69 = (input, _path, _exceptionable = true) => ["null" === input.type || $report(_exceptionable, {
|
3208
3164
|
path: _path + ".type",
|
3209
3165
|
expected: "\"null\"",
|
3210
3166
|
value: input.type
|
@@ -3229,7 +3185,7 @@ class MigrateApplication {
|
|
3229
3185
|
expected: "string",
|
3230
3186
|
value: input["in"]
|
3231
3187
|
})].every(flag => flag);
|
3232
|
-
const $
|
3188
|
+
const $vo70 = (input, _path, _exceptionable = true) => [(Array.isArray(input["x-anyOf"]) || $report(_exceptionable, {
|
3233
3189
|
path: _path + "[\"x-anyOf\"]",
|
3234
3190
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
3235
3191
|
value: input["x-anyOf"]
|
@@ -3266,7 +3222,7 @@ class MigrateApplication {
|
|
3266
3222
|
expected: "string",
|
3267
3223
|
value: input["in"]
|
3268
3224
|
})].every(flag => flag);
|
3269
|
-
const $
|
3225
|
+
const $vo71 = (input, _path, _exceptionable = true) => [(Array.isArray(input["x-oneOf"]) || $report(_exceptionable, {
|
3270
3226
|
path: _path + "[\"x-oneOf\"]",
|
3271
3227
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
3272
3228
|
value: input["x-oneOf"]
|
@@ -3303,7 +3259,7 @@ class MigrateApplication {
|
|
3303
3259
|
expected: "string",
|
3304
3260
|
value: input["in"]
|
3305
3261
|
})].every(flag => flag);
|
3306
|
-
const $
|
3262
|
+
const $vo72 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
3307
3263
|
path: _path + ".schema",
|
3308
3264
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown)",
|
3309
3265
|
value: input.schema
|
@@ -3328,7 +3284,7 @@ class MigrateApplication {
|
|
3328
3284
|
expected: "(boolean | undefined)",
|
3329
3285
|
value: input.required
|
3330
3286
|
})].every(flag => flag);
|
3331
|
-
const $
|
3287
|
+
const $vo73 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3332
3288
|
const value = input[key];
|
3333
3289
|
if (undefined === value)
|
3334
3290
|
return true;
|
@@ -3336,13 +3292,13 @@ class MigrateApplication {
|
|
3336
3292
|
path: _path + $join(key),
|
3337
3293
|
expected: "SwaggerV2.IOperation.IResponse",
|
3338
3294
|
value: value
|
3339
|
-
})) && $
|
3295
|
+
})) && $vo74(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3340
3296
|
path: _path + $join(key),
|
3341
3297
|
expected: "SwaggerV2.IOperation.IResponse",
|
3342
3298
|
value: value
|
3343
3299
|
});
|
3344
3300
|
}).every(flag => flag)].every(flag => flag);
|
3345
|
-
const $
|
3301
|
+
const $vo74 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
3346
3302
|
path: _path + ".description",
|
3347
3303
|
expected: "(string | undefined)",
|
3348
3304
|
value: input.description
|
@@ -3350,7 +3306,7 @@ class MigrateApplication {
|
|
3350
3306
|
path: _path + ".headers",
|
3351
3307
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
3352
3308
|
value: input.headers
|
3353
|
-
})) && $
|
3309
|
+
})) && $vo48(input.headers, _path + ".headers", true && _exceptionable) || $report(_exceptionable, {
|
3354
3310
|
path: _path + ".headers",
|
3355
3311
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
3356
3312
|
value: input.headers
|
@@ -3363,7 +3319,7 @@ class MigrateApplication {
|
|
3363
3319
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown | undefined)",
|
3364
3320
|
value: input.schema
|
3365
3321
|
})].every(flag => flag);
|
3366
|
-
const $
|
3322
|
+
const $vo75 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3367
3323
|
const value = input[key];
|
3368
3324
|
if (undefined === value)
|
3369
3325
|
return true;
|
@@ -3371,17 +3327,17 @@ class MigrateApplication {
|
|
3371
3327
|
path: _path + $join(key),
|
3372
3328
|
expected: "(SwaggerV2.ISecurityDefinition.IApiKey | SwaggerV2.ISecurityDefinition.IBasic | SwaggerV2.ISecurityDefinition.IOauth2AccessCode | SwaggerV2.ISecurityDefinition.IOauth2Application | SwaggerV2.ISecurityDefinition.IOauth2Implicit | SwaggerV2.ISecurityDefinition.IOauth2Password)",
|
3373
3329
|
value: value
|
3374
|
-
})) && $
|
3330
|
+
})) && $vu11(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3375
3331
|
path: _path + $join(key),
|
3376
3332
|
expected: "(SwaggerV2.ISecurityDefinition.IApiKey | SwaggerV2.ISecurityDefinition.IBasic | SwaggerV2.ISecurityDefinition.IOauth2AccessCode | SwaggerV2.ISecurityDefinition.IOauth2Application | SwaggerV2.ISecurityDefinition.IOauth2Implicit | SwaggerV2.ISecurityDefinition.IOauth2Password)",
|
3377
3333
|
value: value
|
3378
3334
|
});
|
3379
3335
|
}).every(flag => flag)].every(flag => flag);
|
3380
|
-
const $
|
3336
|
+
const $vo76 = (input, _path, _exceptionable = true) => ["apiKey" === input.type || $report(_exceptionable, {
|
3381
3337
|
path: _path + ".type",
|
3382
3338
|
expected: "\"apiKey\"",
|
3383
3339
|
value: input.type
|
3384
|
-
}), undefined === input["in"] || "
|
3340
|
+
}), undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
3385
3341
|
path: _path + "[\"in\"]",
|
3386
3342
|
expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
|
3387
3343
|
value: input["in"]
|
@@ -3394,7 +3350,7 @@ class MigrateApplication {
|
|
3394
3350
|
expected: "(string | undefined)",
|
3395
3351
|
value: input.description
|
3396
3352
|
})].every(flag => flag);
|
3397
|
-
const $
|
3353
|
+
const $vo77 = (input, _path, _exceptionable = true) => ["basic" === input.type || $report(_exceptionable, {
|
3398
3354
|
path: _path + ".type",
|
3399
3355
|
expected: "\"basic\"",
|
3400
3356
|
value: input.type
|
@@ -3407,7 +3363,7 @@ class MigrateApplication {
|
|
3407
3363
|
expected: "(string | undefined)",
|
3408
3364
|
value: input.description
|
3409
3365
|
})].every(flag => flag);
|
3410
|
-
const $
|
3366
|
+
const $vo78 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
3411
3367
|
path: _path + ".type",
|
3412
3368
|
expected: "\"oauth2\"",
|
3413
3369
|
value: input.type
|
@@ -3432,7 +3388,7 @@ class MigrateApplication {
|
|
3432
3388
|
expected: "(string | undefined)",
|
3433
3389
|
value: input.description
|
3434
3390
|
})].every(flag => flag);
|
3435
|
-
const $
|
3391
|
+
const $vo79 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
3436
3392
|
path: _path + ".type",
|
3437
3393
|
expected: "\"oauth2\"",
|
3438
3394
|
value: input.type
|
@@ -3461,7 +3417,7 @@ class MigrateApplication {
|
|
3461
3417
|
expected: "(string | undefined)",
|
3462
3418
|
value: input.description
|
3463
3419
|
})].every(flag => flag);
|
3464
|
-
const $
|
3420
|
+
const $vo80 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
3465
3421
|
path: _path + ".type",
|
3466
3422
|
expected: "\"oauth2\"",
|
3467
3423
|
value: input.type
|
@@ -3486,7 +3442,7 @@ class MigrateApplication {
|
|
3486
3442
|
expected: "(string | undefined)",
|
3487
3443
|
value: input.description
|
3488
3444
|
})].every(flag => flag);
|
3489
|
-
const $
|
3445
|
+
const $vo81 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
3490
3446
|
path: _path + ".type",
|
3491
3447
|
expected: "\"oauth2\"",
|
3492
3448
|
value: input.type
|
@@ -3511,7 +3467,7 @@ class MigrateApplication {
|
|
3511
3467
|
expected: "(string | undefined)",
|
3512
3468
|
value: input.description
|
3513
3469
|
})].every(flag => flag);
|
3514
|
-
const $
|
3470
|
+
const $vo82 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3515
3471
|
const value = input[key];
|
3516
3472
|
if (undefined === value)
|
3517
3473
|
return true;
|
@@ -3519,13 +3475,13 @@ class MigrateApplication {
|
|
3519
3475
|
path: _path + $join(key),
|
3520
3476
|
expected: "SwaggerV2.IPath",
|
3521
3477
|
value: value
|
3522
|
-
})) && $
|
3478
|
+
})) && $vo83(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3523
3479
|
path: _path + $join(key),
|
3524
3480
|
expected: "SwaggerV2.IPath",
|
3525
3481
|
value: value
|
3526
3482
|
});
|
3527
3483
|
}).every(flag => flag)].every(flag => flag);
|
3528
|
-
const $
|
3484
|
+
const $vo83 = (input, _path, _exceptionable = true) => [undefined === input.parameters || (Array.isArray(input.parameters) || $report(_exceptionable, {
|
3529
3485
|
path: _path + ".parameters",
|
3530
3486
|
expected: "(Array<IParameter | IReference<`#/parameters/${string}`>> | undefined)",
|
3531
3487
|
value: input.parameters
|
@@ -3541,11 +3497,19 @@ class MigrateApplication {
|
|
3541
3497
|
path: _path + ".parameters",
|
3542
3498
|
expected: "(Array<IParameter | IReference<`#/parameters/${string}`>> | undefined)",
|
3543
3499
|
value: input.parameters
|
3500
|
+
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
3501
|
+
path: _path + ".head",
|
3502
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
3503
|
+
value: input.head
|
3504
|
+
})) && $vo85(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
3505
|
+
path: _path + ".head",
|
3506
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
3507
|
+
value: input.head
|
3544
3508
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || $report(_exceptionable, {
|
3545
3509
|
path: _path + ".get",
|
3546
3510
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3547
3511
|
value: input.get
|
3548
|
-
})) && $
|
3512
|
+
})) && $vo85(input.get, _path + ".get", true && _exceptionable) || $report(_exceptionable, {
|
3549
3513
|
path: _path + ".get",
|
3550
3514
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3551
3515
|
value: input.get
|
@@ -3553,7 +3517,7 @@ class MigrateApplication {
|
|
3553
3517
|
path: _path + ".post",
|
3554
3518
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3555
3519
|
value: input.post
|
3556
|
-
})) && $
|
3520
|
+
})) && $vo85(input.post, _path + ".post", true && _exceptionable) || $report(_exceptionable, {
|
3557
3521
|
path: _path + ".post",
|
3558
3522
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3559
3523
|
value: input.post
|
@@ -3561,15 +3525,23 @@ class MigrateApplication {
|
|
3561
3525
|
path: _path + ".put",
|
3562
3526
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3563
3527
|
value: input.put
|
3564
|
-
})) && $
|
3528
|
+
})) && $vo85(input.put, _path + ".put", true && _exceptionable) || $report(_exceptionable, {
|
3565
3529
|
path: _path + ".put",
|
3566
3530
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3567
3531
|
value: input.put
|
3532
|
+
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
3533
|
+
path: _path + ".patch",
|
3534
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
3535
|
+
value: input.patch
|
3536
|
+
})) && $vo85(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
3537
|
+
path: _path + ".patch",
|
3538
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
3539
|
+
value: input.patch
|
3568
3540
|
}), undefined === input["delete"] || ("object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) || $report(_exceptionable, {
|
3569
3541
|
path: _path + "[\"delete\"]",
|
3570
3542
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3571
3543
|
value: input["delete"]
|
3572
|
-
})) && $
|
3544
|
+
})) && $vo85(input["delete"], _path + "[\"delete\"]", true && _exceptionable) || $report(_exceptionable, {
|
3573
3545
|
path: _path + "[\"delete\"]",
|
3574
3546
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3575
3547
|
value: input["delete"]
|
@@ -3577,36 +3549,20 @@ class MigrateApplication {
|
|
3577
3549
|
path: _path + ".options",
|
3578
3550
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3579
3551
|
value: input.options
|
3580
|
-
})) && $
|
3552
|
+
})) && $vo85(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
|
3581
3553
|
path: _path + ".options",
|
3582
3554
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3583
3555
|
value: input.options
|
3584
|
-
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
3585
|
-
path: _path + ".head",
|
3586
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
3587
|
-
value: input.head
|
3588
|
-
})) && $vo87(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
3589
|
-
path: _path + ".head",
|
3590
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
3591
|
-
value: input.head
|
3592
|
-
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
3593
|
-
path: _path + ".patch",
|
3594
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
3595
|
-
value: input.patch
|
3596
|
-
})) && $vo87(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
3597
|
-
path: _path + ".patch",
|
3598
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
3599
|
-
value: input.patch
|
3600
3556
|
}), undefined === input.trace || ("object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) || $report(_exceptionable, {
|
3601
3557
|
path: _path + ".trace",
|
3602
3558
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3603
3559
|
value: input.trace
|
3604
|
-
})) && $
|
3560
|
+
})) && $vo85(input.trace, _path + ".trace", true && _exceptionable) || $report(_exceptionable, {
|
3605
3561
|
path: _path + ".trace",
|
3606
3562
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3607
3563
|
value: input.trace
|
3608
3564
|
})].every(flag => flag);
|
3609
|
-
const $
|
3565
|
+
const $vo84 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/parameters\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
3610
3566
|
path: _path + ".$ref",
|
3611
3567
|
expected: "`#/parameters/${string}`",
|
3612
3568
|
value: input.$ref
|
@@ -3623,7 +3579,7 @@ class MigrateApplication {
|
|
3623
3579
|
expected: "(boolean | undefined)",
|
3624
3580
|
value: input.deprecated
|
3625
3581
|
})].every(flag => flag);
|
3626
|
-
const $
|
3582
|
+
const $vo85 = (input, _path, _exceptionable = true) => [undefined === input.operationId || "string" === typeof input.operationId || $report(_exceptionable, {
|
3627
3583
|
path: _path + ".operationId",
|
3628
3584
|
expected: "(string | undefined)",
|
3629
3585
|
value: input.operationId
|
@@ -3647,7 +3603,7 @@ class MigrateApplication {
|
|
3647
3603
|
path: _path + ".responses",
|
3648
3604
|
expected: "(Record<string, IResponse | IReference<`#/definitions/responses/${string}`>> | undefined)",
|
3649
3605
|
value: input.responses
|
3650
|
-
})) && $
|
3606
|
+
})) && $vo87(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
3651
3607
|
path: _path + ".responses",
|
3652
3608
|
expected: "(Record<string, IResponse | IReference<`#/definitions/responses/${string}`>> | undefined)",
|
3653
3609
|
value: input.responses
|
@@ -3692,7 +3648,7 @@ class MigrateApplication {
|
|
3692
3648
|
expected: "(boolean | undefined)",
|
3693
3649
|
value: input.deprecated
|
3694
3650
|
})].every(flag => flag);
|
3695
|
-
const $
|
3651
|
+
const $vo86 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/definitions\/parameters\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
3696
3652
|
path: _path + ".$ref",
|
3697
3653
|
expected: "`#/definitions/parameters/${string}`",
|
3698
3654
|
value: input.$ref
|
@@ -3709,7 +3665,7 @@ class MigrateApplication {
|
|
3709
3665
|
expected: "(boolean | undefined)",
|
3710
3666
|
value: input.deprecated
|
3711
3667
|
})].every(flag => flag);
|
3712
|
-
const $
|
3668
|
+
const $vo87 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3713
3669
|
const value = input[key];
|
3714
3670
|
if (undefined === value)
|
3715
3671
|
return true;
|
@@ -3717,13 +3673,13 @@ class MigrateApplication {
|
|
3717
3673
|
path: _path + $join(key),
|
3718
3674
|
expected: "(SwaggerV2.IJsonSchema.IReference<`#/definitions/responses/${string}`> | SwaggerV2.IOperation.IResponse)",
|
3719
3675
|
value: value
|
3720
|
-
})) && $
|
3676
|
+
})) && $vu12(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3721
3677
|
path: _path + $join(key),
|
3722
3678
|
expected: "(SwaggerV2.IJsonSchema.IReference<`#/definitions/responses/${string}`> | SwaggerV2.IOperation.IResponse)",
|
3723
3679
|
value: value
|
3724
3680
|
});
|
3725
3681
|
}).every(flag => flag)].every(flag => flag);
|
3726
|
-
const $
|
3682
|
+
const $vo88 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/definitions\/responses\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
3727
3683
|
path: _path + ".$ref",
|
3728
3684
|
expected: "`#/definitions/responses/${string}`",
|
3729
3685
|
value: input.$ref
|
@@ -3740,7 +3696,7 @@ class MigrateApplication {
|
|
3740
3696
|
expected: "(boolean | undefined)",
|
3741
3697
|
value: input.deprecated
|
3742
3698
|
})].every(flag => flag);
|
3743
|
-
const $
|
3699
|
+
const $vo89 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
3744
3700
|
path: _path + ".name",
|
3745
3701
|
expected: "string",
|
3746
3702
|
value: input.name
|
@@ -3749,7 +3705,7 @@ class MigrateApplication {
|
|
3749
3705
|
expected: "(string | undefined)",
|
3750
3706
|
value: input.description
|
3751
3707
|
})].every(flag => flag);
|
3752
|
-
const $
|
3708
|
+
const $vo90 = (input, _path, _exceptionable = true) => [(null !== input.openapi || $report(_exceptionable, {
|
3753
3709
|
path: _path + ".openapi",
|
3754
3710
|
expected: "(\"3.0\" | `3.0.${number}`)",
|
3755
3711
|
value: input.openapi
|
@@ -3769,7 +3725,7 @@ class MigrateApplication {
|
|
3769
3725
|
path: _path + ".servers[" + _index36 + "]",
|
3770
3726
|
expected: "OpenApiV3.IServer",
|
3771
3727
|
value: elem
|
3772
|
-
})) && $
|
3728
|
+
})) && $vo91(elem, _path + ".servers[" + _index36 + "]", true && _exceptionable) || $report(_exceptionable, {
|
3773
3729
|
path: _path + ".servers[" + _index36 + "]",
|
3774
3730
|
expected: "OpenApiV3.IServer",
|
3775
3731
|
value: elem
|
@@ -3781,7 +3737,7 @@ class MigrateApplication {
|
|
3781
3737
|
path: _path + ".info",
|
3782
3738
|
expected: "(OpenApiV3.IDocument.IInfo | undefined)",
|
3783
3739
|
value: input.info
|
3784
|
-
})) && $
|
3740
|
+
})) && $vo94(input.info, _path + ".info", true && _exceptionable) || $report(_exceptionable, {
|
3785
3741
|
path: _path + ".info",
|
3786
3742
|
expected: "(OpenApiV3.IDocument.IInfo | undefined)",
|
3787
3743
|
value: input.info
|
@@ -3789,7 +3745,7 @@ class MigrateApplication {
|
|
3789
3745
|
path: _path + ".components",
|
3790
3746
|
expected: "(OpenApiV3.IComponents | undefined)",
|
3791
3747
|
value: input.components
|
3792
|
-
})) && $
|
3748
|
+
})) && $vo97(input.components, _path + ".components", true && _exceptionable) || $report(_exceptionable, {
|
3793
3749
|
path: _path + ".components",
|
3794
3750
|
expected: "(OpenApiV3.IComponents | undefined)",
|
3795
3751
|
value: input.components
|
@@ -3797,7 +3753,7 @@ class MigrateApplication {
|
|
3797
3753
|
path: _path + ".paths",
|
3798
3754
|
expected: "(Record<string, OpenApiV3.IPath> | undefined)",
|
3799
3755
|
value: input.paths
|
3800
|
-
})) && $
|
3756
|
+
})) && $vo133(input.paths, _path + ".paths", true && _exceptionable) || $report(_exceptionable, {
|
3801
3757
|
path: _path + ".paths",
|
3802
3758
|
expected: "(Record<string, OpenApiV3.IPath> | undefined)",
|
3803
3759
|
value: input.paths
|
@@ -3825,7 +3781,7 @@ class MigrateApplication {
|
|
3825
3781
|
path: _path + ".tags[" + _index38 + "]",
|
3826
3782
|
expected: "OpenApiV3.IDocument.ITag",
|
3827
3783
|
value: elem
|
3828
|
-
})) && $
|
3784
|
+
})) && $vo140(elem, _path + ".tags[" + _index38 + "]", true && _exceptionable) || $report(_exceptionable, {
|
3829
3785
|
path: _path + ".tags[" + _index38 + "]",
|
3830
3786
|
expected: "OpenApiV3.IDocument.ITag",
|
3831
3787
|
value: elem
|
@@ -3834,7 +3790,7 @@ class MigrateApplication {
|
|
3834
3790
|
expected: "(Array<OpenApiV3.IDocument.ITag> | undefined)",
|
3835
3791
|
value: input.tags
|
3836
3792
|
})].every(flag => flag);
|
3837
|
-
const $
|
3793
|
+
const $vo91 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || $report(_exceptionable, {
|
3838
3794
|
path: _path + ".url",
|
3839
3795
|
expected: "string",
|
3840
3796
|
value: input.url
|
@@ -3846,12 +3802,12 @@ class MigrateApplication {
|
|
3846
3802
|
path: _path + ".variables",
|
3847
3803
|
expected: "(Record<string, OpenApiV3.IServer.IVariable> | undefined)",
|
3848
3804
|
value: input.variables
|
3849
|
-
})) && $
|
3805
|
+
})) && $vo92(input.variables, _path + ".variables", true && _exceptionable) || $report(_exceptionable, {
|
3850
3806
|
path: _path + ".variables",
|
3851
3807
|
expected: "(Record<string, OpenApiV3.IServer.IVariable> | undefined)",
|
3852
3808
|
value: input.variables
|
3853
3809
|
})].every(flag => flag);
|
3854
|
-
const $
|
3810
|
+
const $vo92 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3855
3811
|
const value = input[key];
|
3856
3812
|
if (undefined === value)
|
3857
3813
|
return true;
|
@@ -3859,13 +3815,13 @@ class MigrateApplication {
|
|
3859
3815
|
path: _path + $join(key),
|
3860
3816
|
expected: "OpenApiV3.IServer.IVariable",
|
3861
3817
|
value: value
|
3862
|
-
})) && $
|
3818
|
+
})) && $vo93(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3863
3819
|
path: _path + $join(key),
|
3864
3820
|
expected: "OpenApiV3.IServer.IVariable",
|
3865
3821
|
value: value
|
3866
3822
|
});
|
3867
3823
|
}).every(flag => flag)].every(flag => flag);
|
3868
|
-
const $
|
3824
|
+
const $vo93 = (input, _path, _exceptionable = true) => ["string" === typeof input["default"] || $report(_exceptionable, {
|
3869
3825
|
path: _path + "[\"default\"]",
|
3870
3826
|
expected: "string",
|
3871
3827
|
value: input["default"]
|
@@ -3886,7 +3842,7 @@ class MigrateApplication {
|
|
3886
3842
|
expected: "(string | undefined)",
|
3887
3843
|
value: input.description
|
3888
3844
|
})].every(flag => flag);
|
3889
|
-
const $
|
3845
|
+
const $vo94 = (input, _path, _exceptionable = true) => ["string" === typeof input.title || $report(_exceptionable, {
|
3890
3846
|
path: _path + ".title",
|
3891
3847
|
expected: "string",
|
3892
3848
|
value: input.title
|
@@ -3902,7 +3858,7 @@ class MigrateApplication {
|
|
3902
3858
|
path: _path + ".contact",
|
3903
3859
|
expected: "(OpenApiV3.IDocument.IContact | undefined)",
|
3904
3860
|
value: input.contact
|
3905
|
-
})) && $
|
3861
|
+
})) && $vo95(input.contact, _path + ".contact", true && _exceptionable) || $report(_exceptionable, {
|
3906
3862
|
path: _path + ".contact",
|
3907
3863
|
expected: "(OpenApiV3.IDocument.IContact | undefined)",
|
3908
3864
|
value: input.contact
|
@@ -3910,7 +3866,7 @@ class MigrateApplication {
|
|
3910
3866
|
path: _path + ".license",
|
3911
3867
|
expected: "(OpenApiV3.IDocument.ILicense | undefined)",
|
3912
3868
|
value: input.license
|
3913
|
-
})) && $
|
3869
|
+
})) && $vo96(input.license, _path + ".license", true && _exceptionable) || $report(_exceptionable, {
|
3914
3870
|
path: _path + ".license",
|
3915
3871
|
expected: "(OpenApiV3.IDocument.ILicense | undefined)",
|
3916
3872
|
value: input.license
|
@@ -3919,7 +3875,7 @@ class MigrateApplication {
|
|
3919
3875
|
expected: "string",
|
3920
3876
|
value: input.version
|
3921
3877
|
})].every(flag => flag);
|
3922
|
-
const $
|
3878
|
+
const $vo95 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
3923
3879
|
path: _path + ".name",
|
3924
3880
|
expected: "(string | undefined)",
|
3925
3881
|
value: input.name
|
@@ -3932,7 +3888,7 @@ class MigrateApplication {
|
|
3932
3888
|
expected: "(string | undefined)",
|
3933
3889
|
value: input.email
|
3934
3890
|
})].every(flag => flag);
|
3935
|
-
const $
|
3891
|
+
const $vo96 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
3936
3892
|
path: _path + ".name",
|
3937
3893
|
expected: "string",
|
3938
3894
|
value: input.name
|
@@ -3941,11 +3897,11 @@ class MigrateApplication {
|
|
3941
3897
|
expected: "(string | undefined)",
|
3942
3898
|
value: input.url
|
3943
3899
|
})].every(flag => flag);
|
3944
|
-
const $
|
3900
|
+
const $vo97 = (input, _path, _exceptionable = true) => [undefined === input.schemas || ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || $report(_exceptionable, {
|
3945
3901
|
path: _path + ".schemas",
|
3946
3902
|
expected: "(Record<string, OpenApiV3.IJsonSchema> | undefined)",
|
3947
3903
|
value: input.schemas
|
3948
|
-
})) && $
|
3904
|
+
})) && $vo98(input.schemas, _path + ".schemas", true && _exceptionable) || $report(_exceptionable, {
|
3949
3905
|
path: _path + ".schemas",
|
3950
3906
|
expected: "(Record<string, OpenApiV3.IJsonSchema> | undefined)",
|
3951
3907
|
value: input.schemas
|
@@ -3953,7 +3909,7 @@ class MigrateApplication {
|
|
3953
3909
|
path: _path + ".responses",
|
3954
3910
|
expected: "(Record<string, OpenApiV3.IOperation.IResponse> | undefined)",
|
3955
3911
|
value: input.responses
|
3956
|
-
})) && $
|
3912
|
+
})) && $vo111(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
3957
3913
|
path: _path + ".responses",
|
3958
3914
|
expected: "(Record<string, OpenApiV3.IOperation.IResponse> | undefined)",
|
3959
3915
|
value: input.responses
|
@@ -3961,7 +3917,7 @@ class MigrateApplication {
|
|
3961
3917
|
path: _path + ".parameters",
|
3962
3918
|
expected: "(Record<string, OpenApiV3.IOperation.IParameter> | undefined)",
|
3963
3919
|
value: input.parameters
|
3964
|
-
})) && $
|
3920
|
+
})) && $vo118(input.parameters, _path + ".parameters", true && _exceptionable) || $report(_exceptionable, {
|
3965
3921
|
path: _path + ".parameters",
|
3966
3922
|
expected: "(Record<string, OpenApiV3.IOperation.IParameter> | undefined)",
|
3967
3923
|
value: input.parameters
|
@@ -3969,7 +3925,7 @@ class MigrateApplication {
|
|
3969
3925
|
path: _path + ".requestBodies",
|
3970
3926
|
expected: "(Record<string, OpenApiV3.IOperation.IRequestBody> | undefined)",
|
3971
3927
|
value: input.requestBodies
|
3972
|
-
})) && $
|
3928
|
+
})) && $vo120(input.requestBodies, _path + ".requestBodies", true && _exceptionable) || $report(_exceptionable, {
|
3973
3929
|
path: _path + ".requestBodies",
|
3974
3930
|
expected: "(Record<string, OpenApiV3.IOperation.IRequestBody> | undefined)",
|
3975
3931
|
value: input.requestBodies
|
@@ -3977,7 +3933,7 @@ class MigrateApplication {
|
|
3977
3933
|
path: _path + ".securitySchemes",
|
3978
3934
|
expected: "(Record<string, OpenApiV3.ISecurityScheme> | undefined)",
|
3979
3935
|
value: input.securitySchemes
|
3980
|
-
})) && $
|
3936
|
+
})) && $vo122(input.securitySchemes, _path + ".securitySchemes", true && _exceptionable) || $report(_exceptionable, {
|
3981
3937
|
path: _path + ".securitySchemes",
|
3982
3938
|
expected: "(Record<string, OpenApiV3.ISecurityScheme> | undefined)",
|
3983
3939
|
value: input.securitySchemes
|
@@ -3985,12 +3941,12 @@ class MigrateApplication {
|
|
3985
3941
|
path: _path + ".headers",
|
3986
3942
|
expected: "(Record<string, Omit<OpenApiV3.IOperation.IParameter, \"in\">> | undefined)",
|
3987
3943
|
value: input.headers
|
3988
|
-
})) && $
|
3944
|
+
})) && $vo132(input.headers, _path + ".headers", true && _exceptionable) || $report(_exceptionable, {
|
3989
3945
|
path: _path + ".headers",
|
3990
3946
|
expected: "(Record<string, Omit<OpenApiV3.IOperation.IParameter, \"in\">> | undefined)",
|
3991
3947
|
value: input.headers
|
3992
3948
|
})].every(flag => flag);
|
3993
|
-
const $
|
3949
|
+
const $vo98 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3994
3950
|
const value = input[key];
|
3995
3951
|
if (undefined === value)
|
3996
3952
|
return true;
|
@@ -4004,7 +3960,7 @@ class MigrateApplication {
|
|
4004
3960
|
value: value
|
4005
3961
|
});
|
4006
3962
|
}).every(flag => flag)].every(flag => flag);
|
4007
|
-
const $
|
3963
|
+
const $vo99 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "boolean" === typeof input["default"] || $report(_exceptionable, {
|
4008
3964
|
path: _path + "[\"default\"]",
|
4009
3965
|
expected: "(boolean | undefined)",
|
4010
3966
|
value: input["default"]
|
@@ -4041,7 +3997,7 @@ class MigrateApplication {
|
|
4041
3997
|
expected: "(boolean | undefined)",
|
4042
3998
|
value: input.deprecated
|
4043
3999
|
})].every(flag => flag);
|
4044
|
-
const $
|
4000
|
+
const $vo100 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000 || $report(_exceptionable, {
|
4045
4001
|
path: _path + "[\"default\"]",
|
4046
4002
|
expected: "number & Type<\"int64\">",
|
4047
4003
|
value: input["default"]
|
@@ -4118,7 +4074,7 @@ class MigrateApplication {
|
|
4118
4074
|
expected: "(boolean | undefined)",
|
4119
4075
|
value: input.deprecated
|
4120
4076
|
})].every(flag => flag);
|
4121
|
-
const $
|
4077
|
+
const $vo101 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] || $report(_exceptionable, {
|
4122
4078
|
path: _path + "[\"default\"]",
|
4123
4079
|
expected: "(number | undefined)",
|
4124
4080
|
value: input["default"]
|
@@ -4179,7 +4135,7 @@ class MigrateApplication {
|
|
4179
4135
|
expected: "(boolean | undefined)",
|
4180
4136
|
value: input.deprecated
|
4181
4137
|
})].every(flag => flag);
|
4182
|
-
const $
|
4138
|
+
const $vo102 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "string" === typeof input["default"] || $report(_exceptionable, {
|
4183
4139
|
path: _path + "[\"default\"]",
|
4184
4140
|
expected: "(string | undefined)",
|
4185
4141
|
value: input["default"]
|
@@ -4240,7 +4196,7 @@ class MigrateApplication {
|
|
4240
4196
|
expected: "(boolean | undefined)",
|
4241
4197
|
value: input.deprecated
|
4242
4198
|
})].every(flag => flag);
|
4243
|
-
const $
|
4199
|
+
const $vo103 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $report(_exceptionable, {
|
4244
4200
|
path: _path + ".items",
|
4245
4201
|
expected: "(OpenApiV3.IJsonSchema.IAllOf | OpenApiV3.IJsonSchema.IAnyOf | OpenApiV3.IJsonSchema.IArray | OpenApiV3.IJsonSchema.IBoolean | OpenApiV3.IJsonSchema.IInteger | OpenApiV3.IJsonSchema.INullOnly | OpenApiV3.IJsonSchema.INumber | OpenApiV3.IJsonSchema.IObject | OpenApiV3.IJsonSchema.IOneOf | OpenApiV3.IJsonSchema.IReference<string> | OpenApiV3.IJsonSchema.IString | OpenApiV3.IJsonSchema.IUnknown)",
|
4246
4202
|
value: input.items
|
@@ -4289,11 +4245,11 @@ class MigrateApplication {
|
|
4289
4245
|
expected: "(boolean | undefined)",
|
4290
4246
|
value: input.deprecated
|
4291
4247
|
})].every(flag => flag);
|
4292
|
-
const $
|
4248
|
+
const $vo104 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $report(_exceptionable, {
|
4293
4249
|
path: _path + ".properties",
|
4294
4250
|
expected: "(Record<string, OpenApiV3.IJsonSchema> | undefined)",
|
4295
4251
|
value: input.properties
|
4296
|
-
})) && $
|
4252
|
+
})) && $vo98(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
|
4297
4253
|
path: _path + ".properties",
|
4298
4254
|
expected: "(Record<string, OpenApiV3.IJsonSchema> | undefined)",
|
4299
4255
|
value: input.properties
|
@@ -4350,7 +4306,7 @@ class MigrateApplication {
|
|
4350
4306
|
expected: "(boolean | undefined)",
|
4351
4307
|
value: input.deprecated
|
4352
4308
|
})].every(flag => flag);
|
4353
|
-
const $
|
4309
|
+
const $vo105 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || $report(_exceptionable, {
|
4354
4310
|
path: _path + ".$ref",
|
4355
4311
|
expected: "string",
|
4356
4312
|
value: input.$ref
|
@@ -4367,7 +4323,7 @@ class MigrateApplication {
|
|
4367
4323
|
expected: "(boolean | undefined)",
|
4368
4324
|
value: input.deprecated
|
4369
4325
|
})].every(flag => flag);
|
4370
|
-
const $
|
4326
|
+
const $vo106 = (input, _path, _exceptionable = true) => [(null !== input.type || $report(_exceptionable, {
|
4371
4327
|
path: _path + ".type",
|
4372
4328
|
expected: "undefined",
|
4373
4329
|
value: input.type
|
@@ -4388,7 +4344,7 @@ class MigrateApplication {
|
|
4388
4344
|
expected: "(boolean | undefined)",
|
4389
4345
|
value: input.deprecated
|
4390
4346
|
})].every(flag => flag);
|
4391
|
-
const $
|
4347
|
+
const $vo107 = (input, _path, _exceptionable = true) => ["null" === input.type || $report(_exceptionable, {
|
4392
4348
|
path: _path + ".type",
|
4393
4349
|
expected: "\"null\"",
|
4394
4350
|
value: input.type
|
@@ -4405,7 +4361,7 @@ class MigrateApplication {
|
|
4405
4361
|
expected: "(boolean | undefined)",
|
4406
4362
|
value: input.deprecated
|
4407
4363
|
})].every(flag => flag);
|
4408
|
-
const $
|
4364
|
+
const $vo108 = (input, _path, _exceptionable = true) => [(Array.isArray(input.allOf) || $report(_exceptionable, {
|
4409
4365
|
path: _path + ".allOf",
|
4410
4366
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
4411
4367
|
value: input.allOf
|
@@ -4434,7 +4390,7 @@ class MigrateApplication {
|
|
4434
4390
|
expected: "(boolean | undefined)",
|
4435
4391
|
value: input.deprecated
|
4436
4392
|
})].every(flag => flag);
|
4437
|
-
const $
|
4393
|
+
const $vo109 = (input, _path, _exceptionable = true) => [(Array.isArray(input.anyOf) || $report(_exceptionable, {
|
4438
4394
|
path: _path + ".anyOf",
|
4439
4395
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
4440
4396
|
value: input.anyOf
|
@@ -4463,7 +4419,7 @@ class MigrateApplication {
|
|
4463
4419
|
expected: "(boolean | undefined)",
|
4464
4420
|
value: input.deprecated
|
4465
4421
|
})].every(flag => flag);
|
4466
|
-
const $
|
4422
|
+
const $vo110 = (input, _path, _exceptionable = true) => [(Array.isArray(input.oneOf) || $report(_exceptionable, {
|
4467
4423
|
path: _path + ".oneOf",
|
4468
4424
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
4469
4425
|
value: input.oneOf
|
@@ -4492,7 +4448,7 @@ class MigrateApplication {
|
|
4492
4448
|
expected: "(boolean | undefined)",
|
4493
4449
|
value: input.deprecated
|
4494
4450
|
})].every(flag => flag);
|
4495
|
-
const $
|
4451
|
+
const $vo111 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
4496
4452
|
const value = input[key];
|
4497
4453
|
if (undefined === value)
|
4498
4454
|
return true;
|
@@ -4500,17 +4456,17 @@ class MigrateApplication {
|
|
4500
4456
|
path: _path + $join(key),
|
4501
4457
|
expected: "OpenApiV3.IOperation.IResponse",
|
4502
4458
|
value: value
|
4503
|
-
})) && $
|
4459
|
+
})) && $vo112(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
4504
4460
|
path: _path + $join(key),
|
4505
4461
|
expected: "OpenApiV3.IOperation.IResponse",
|
4506
4462
|
value: value
|
4507
4463
|
});
|
4508
4464
|
}).every(flag => flag)].every(flag => flag);
|
4509
|
-
const $
|
4465
|
+
const $vo112 = (input, _path, _exceptionable = true) => [undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
|
4510
4466
|
path: _path + ".content",
|
4511
4467
|
expected: "(Record<string, OpenApiV3.IOperation.IMediaType> | undefined)",
|
4512
4468
|
value: input.content
|
4513
|
-
})) && $
|
4469
|
+
})) && $vo113(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
4514
4470
|
path: _path + ".content",
|
4515
4471
|
expected: "(Record<string, OpenApiV3.IOperation.IMediaType> | undefined)",
|
4516
4472
|
value: input.content
|
@@ -4518,7 +4474,7 @@ class MigrateApplication {
|
|
4518
4474
|
path: _path + ".headers",
|
4519
4475
|
expected: "(Record<string, Omit<IParameter, \"in\"> | IReference<`#/components/headers/${string}`>> | undefined)",
|
4520
4476
|
value: input.headers
|
4521
|
-
})) && $
|
4477
|
+
})) && $vo115(input.headers, _path + ".headers", true && _exceptionable) || $report(_exceptionable, {
|
4522
4478
|
path: _path + ".headers",
|
4523
4479
|
expected: "(Record<string, Omit<IParameter, \"in\"> | IReference<`#/components/headers/${string}`>> | undefined)",
|
4524
4480
|
value: input.headers
|
@@ -4527,7 +4483,7 @@ class MigrateApplication {
|
|
4527
4483
|
expected: "(string | undefined)",
|
4528
4484
|
value: input.description
|
4529
4485
|
})].every(flag => flag);
|
4530
|
-
const $
|
4486
|
+
const $vo113 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
4531
4487
|
const value = input[key];
|
4532
4488
|
if (undefined === value)
|
4533
4489
|
return true;
|
@@ -4535,13 +4491,13 @@ class MigrateApplication {
|
|
4535
4491
|
path: _path + $join(key),
|
4536
4492
|
expected: "OpenApiV3.IOperation.IMediaType",
|
4537
4493
|
value: value
|
4538
|
-
})) && $
|
4494
|
+
})) && $vo114(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
4539
4495
|
path: _path + $join(key),
|
4540
4496
|
expected: "OpenApiV3.IOperation.IMediaType",
|
4541
4497
|
value: value
|
4542
4498
|
});
|
4543
4499
|
}).every(flag => flag)].every(flag => flag);
|
4544
|
-
const $
|
4500
|
+
const $vo114 = (input, _path, _exceptionable = true) => [undefined === input.schema || ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
4545
4501
|
path: _path + ".schema",
|
4546
4502
|
expected: "(OpenApiV3.IJsonSchema.IAllOf | OpenApiV3.IJsonSchema.IAnyOf | OpenApiV3.IJsonSchema.IArray | OpenApiV3.IJsonSchema.IBoolean | OpenApiV3.IJsonSchema.IInteger | OpenApiV3.IJsonSchema.INullOnly | OpenApiV3.IJsonSchema.INumber | OpenApiV3.IJsonSchema.IObject | OpenApiV3.IJsonSchema.IOneOf | OpenApiV3.IJsonSchema.IReference<string> | OpenApiV3.IJsonSchema.IString | OpenApiV3.IJsonSchema.IUnknown | undefined)",
|
4547
4503
|
value: input.schema
|
@@ -4550,7 +4506,7 @@ class MigrateApplication {
|
|
4550
4506
|
expected: "(OpenApiV3.IJsonSchema.IAllOf | OpenApiV3.IJsonSchema.IAnyOf | OpenApiV3.IJsonSchema.IArray | OpenApiV3.IJsonSchema.IBoolean | OpenApiV3.IJsonSchema.IInteger | OpenApiV3.IJsonSchema.INullOnly | OpenApiV3.IJsonSchema.INumber | OpenApiV3.IJsonSchema.IObject | OpenApiV3.IJsonSchema.IOneOf | OpenApiV3.IJsonSchema.IReference<string> | OpenApiV3.IJsonSchema.IString | OpenApiV3.IJsonSchema.IUnknown | undefined)",
|
4551
4507
|
value: input.schema
|
4552
4508
|
})].every(flag => flag);
|
4553
|
-
const $
|
4509
|
+
const $vo115 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
4554
4510
|
const value = input[key];
|
4555
4511
|
if (undefined === value)
|
4556
4512
|
return true;
|
@@ -4558,20 +4514,16 @@ class MigrateApplication {
|
|
4558
4514
|
path: _path + $join(key),
|
4559
4515
|
expected: "(Omit<OpenApiV3.IOperation.IParameter, \"in\"> | OpenApiV3.IJsonSchema.IReference<`#/components/headers/${string}`>)",
|
4560
4516
|
value: value
|
4561
|
-
})) && $
|
4517
|
+
})) && $vu13(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
4562
4518
|
path: _path + $join(key),
|
4563
4519
|
expected: "(Omit<OpenApiV3.IOperation.IParameter, \"in\"> | OpenApiV3.IJsonSchema.IReference<`#/components/headers/${string}`>)",
|
4564
4520
|
value: value
|
4565
4521
|
});
|
4566
4522
|
}).every(flag => flag)].every(flag => flag);
|
4567
|
-
const $
|
4523
|
+
const $vo116 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
4568
4524
|
path: _path + ".description",
|
4569
4525
|
expected: "(string | undefined)",
|
4570
4526
|
value: input.description
|
4571
|
-
}), undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
4572
|
-
path: _path + ".name",
|
4573
|
-
expected: "(string | undefined)",
|
4574
|
-
value: input.name
|
4575
4527
|
}), undefined === input.required || "boolean" === typeof input.required || $report(_exceptionable, {
|
4576
4528
|
path: _path + ".required",
|
4577
4529
|
expected: "(boolean | undefined)",
|
@@ -4584,8 +4536,12 @@ class MigrateApplication {
|
|
4584
4536
|
path: _path + ".schema",
|
4585
4537
|
expected: "(OpenApiV3.IJsonSchema.IAllOf | OpenApiV3.IJsonSchema.IAnyOf | OpenApiV3.IJsonSchema.IArray | OpenApiV3.IJsonSchema.IBoolean | OpenApiV3.IJsonSchema.IInteger | OpenApiV3.IJsonSchema.INullOnly | OpenApiV3.IJsonSchema.INumber | OpenApiV3.IJsonSchema.IObject | OpenApiV3.IJsonSchema.IOneOf | OpenApiV3.IJsonSchema.IReference<string> | OpenApiV3.IJsonSchema.IString | OpenApiV3.IJsonSchema.IUnknown)",
|
4586
4538
|
value: input.schema
|
4539
|
+
}), undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
4540
|
+
path: _path + ".name",
|
4541
|
+
expected: "(string | undefined)",
|
4542
|
+
value: input.name
|
4587
4543
|
})].every(flag => flag);
|
4588
|
-
const $
|
4544
|
+
const $vo117 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
4589
4545
|
path: _path + ".$ref",
|
4590
4546
|
expected: "`#/components/headers/${string}`",
|
4591
4547
|
value: input.$ref
|
@@ -4602,7 +4558,7 @@ class MigrateApplication {
|
|
4602
4558
|
expected: "(boolean | undefined)",
|
4603
4559
|
value: input.deprecated
|
4604
4560
|
})].every(flag => flag);
|
4605
|
-
const $
|
4561
|
+
const $vo118 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
4606
4562
|
const value = input[key];
|
4607
4563
|
if (undefined === value)
|
4608
4564
|
return true;
|
@@ -4610,17 +4566,17 @@ class MigrateApplication {
|
|
4610
4566
|
path: _path + $join(key),
|
4611
4567
|
expected: "OpenApiV3.IOperation.IParameter",
|
4612
4568
|
value: value
|
4613
|
-
})) && $
|
4569
|
+
})) && $vo119(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
4614
4570
|
path: _path + $join(key),
|
4615
4571
|
expected: "OpenApiV3.IOperation.IParameter",
|
4616
4572
|
value: value
|
4617
4573
|
});
|
4618
4574
|
}).every(flag => flag)].every(flag => flag);
|
4619
|
-
const $
|
4575
|
+
const $vo119 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
4620
4576
|
path: _path + ".name",
|
4621
4577
|
expected: "(string | undefined)",
|
4622
4578
|
value: input.name
|
4623
|
-
}), "
|
4579
|
+
}), "path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
4624
4580
|
path: _path + "[\"in\"]",
|
4625
4581
|
expected: "(\"cookie\" | \"header\" | \"path\" | \"query\")",
|
4626
4582
|
value: input["in"]
|
@@ -4641,7 +4597,7 @@ class MigrateApplication {
|
|
4641
4597
|
expected: "(string | undefined)",
|
4642
4598
|
value: input.description
|
4643
4599
|
})].every(flag => flag);
|
4644
|
-
const $
|
4600
|
+
const $vo120 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
4645
4601
|
const value = input[key];
|
4646
4602
|
if (undefined === value)
|
4647
4603
|
return true;
|
@@ -4649,13 +4605,13 @@ class MigrateApplication {
|
|
4649
4605
|
path: _path + $join(key),
|
4650
4606
|
expected: "OpenApiV3.IOperation.IRequestBody",
|
4651
4607
|
value: value
|
4652
|
-
})) && $
|
4608
|
+
})) && $vo121(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
4653
4609
|
path: _path + $join(key),
|
4654
4610
|
expected: "OpenApiV3.IOperation.IRequestBody",
|
4655
4611
|
value: value
|
4656
4612
|
});
|
4657
4613
|
}).every(flag => flag)].every(flag => flag);
|
4658
|
-
const $
|
4614
|
+
const $vo121 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
4659
4615
|
path: _path + ".description",
|
4660
4616
|
expected: "(string | undefined)",
|
4661
4617
|
value: input.description
|
@@ -4667,12 +4623,12 @@ class MigrateApplication {
|
|
4667
4623
|
path: _path + ".content",
|
4668
4624
|
expected: "(Record<string, OpenApiV3.IOperation.IMediaType> | undefined)",
|
4669
4625
|
value: input.content
|
4670
|
-
})) && $
|
4626
|
+
})) && $vo113(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
4671
4627
|
path: _path + ".content",
|
4672
4628
|
expected: "(Record<string, OpenApiV3.IOperation.IMediaType> | undefined)",
|
4673
4629
|
value: input.content
|
4674
4630
|
})].every(flag => flag);
|
4675
|
-
const $
|
4631
|
+
const $vo122 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
4676
4632
|
const value = input[key];
|
4677
4633
|
if (undefined === value)
|
4678
4634
|
return true;
|
@@ -4680,17 +4636,17 @@ class MigrateApplication {
|
|
4680
4636
|
path: _path + $join(key),
|
4681
4637
|
expected: "(OpenApiV3.ISecurityScheme.IApiKey | OpenApiV3.ISecurityScheme.IHttpBasic | OpenApiV3.ISecurityScheme.IHttpBearer | OpenApiV3.ISecurityScheme.IOAuth2 | OpenApiV3.ISecurityScheme.IOpenId)",
|
4682
4638
|
value: value
|
4683
|
-
})) && $
|
4639
|
+
})) && $vu14(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
4684
4640
|
path: _path + $join(key),
|
4685
4641
|
expected: "(OpenApiV3.ISecurityScheme.IApiKey | OpenApiV3.ISecurityScheme.IHttpBasic | OpenApiV3.ISecurityScheme.IHttpBearer | OpenApiV3.ISecurityScheme.IOAuth2 | OpenApiV3.ISecurityScheme.IOpenId)",
|
4686
4642
|
value: value
|
4687
4643
|
});
|
4688
4644
|
}).every(flag => flag)].every(flag => flag);
|
4689
|
-
const $
|
4645
|
+
const $vo123 = (input, _path, _exceptionable = true) => ["apiKey" === input.type || $report(_exceptionable, {
|
4690
4646
|
path: _path + ".type",
|
4691
4647
|
expected: "\"apiKey\"",
|
4692
4648
|
value: input.type
|
4693
|
-
}), undefined === input["in"] || "
|
4649
|
+
}), undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
4694
4650
|
path: _path + "[\"in\"]",
|
4695
4651
|
expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
|
4696
4652
|
value: input["in"]
|
@@ -4703,7 +4659,7 @@ class MigrateApplication {
|
|
4703
4659
|
expected: "(string | undefined)",
|
4704
4660
|
value: input.description
|
4705
4661
|
})].every(flag => flag);
|
4706
|
-
const $
|
4662
|
+
const $vo124 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
|
4707
4663
|
path: _path + ".type",
|
4708
4664
|
expected: "\"http\"",
|
4709
4665
|
value: input.type
|
@@ -4716,7 +4672,7 @@ class MigrateApplication {
|
|
4716
4672
|
expected: "(string | undefined)",
|
4717
4673
|
value: input.description
|
4718
4674
|
})].every(flag => flag);
|
4719
|
-
const $
|
4675
|
+
const $vo125 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
|
4720
4676
|
path: _path + ".type",
|
4721
4677
|
expected: "\"http\"",
|
4722
4678
|
value: input.type
|
@@ -4733,7 +4689,7 @@ class MigrateApplication {
|
|
4733
4689
|
expected: "(string | undefined)",
|
4734
4690
|
value: input.description
|
4735
4691
|
})].every(flag => flag);
|
4736
|
-
const $
|
4692
|
+
const $vo126 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
4737
4693
|
path: _path + ".type",
|
4738
4694
|
expected: "\"oauth2\"",
|
4739
4695
|
value: input.type
|
@@ -4741,7 +4697,7 @@ class MigrateApplication {
|
|
4741
4697
|
path: _path + ".flows",
|
4742
4698
|
expected: "OpenApiV3.ISecurityScheme.IOAuth2.IFlowSet",
|
4743
4699
|
value: input.flows
|
4744
|
-
})) && $
|
4700
|
+
})) && $vo127(input.flows, _path + ".flows", true && _exceptionable) || $report(_exceptionable, {
|
4745
4701
|
path: _path + ".flows",
|
4746
4702
|
expected: "OpenApiV3.ISecurityScheme.IOAuth2.IFlowSet",
|
4747
4703
|
value: input.flows
|
@@ -4750,11 +4706,11 @@ class MigrateApplication {
|
|
4750
4706
|
expected: "(string | undefined)",
|
4751
4707
|
value: input.description
|
4752
4708
|
})].every(flag => flag);
|
4753
|
-
const $
|
4709
|
+
const $vo127 = (input, _path, _exceptionable = true) => [undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) || $report(_exceptionable, {
|
4754
4710
|
path: _path + ".authorizationCode",
|
4755
4711
|
expected: "(OpenApiV3.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
4756
4712
|
value: input.authorizationCode
|
4757
|
-
})) && $
|
4713
|
+
})) && $vo128(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $report(_exceptionable, {
|
4758
4714
|
path: _path + ".authorizationCode",
|
4759
4715
|
expected: "(OpenApiV3.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
4760
4716
|
value: input.authorizationCode
|
@@ -4762,7 +4718,7 @@ class MigrateApplication {
|
|
4762
4718
|
path: _path + ".implicit",
|
4763
4719
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
4764
4720
|
value: input.implicit
|
4765
|
-
})) && $
|
4721
|
+
})) && $vo129(input.implicit, _path + ".implicit", true && _exceptionable) || $report(_exceptionable, {
|
4766
4722
|
path: _path + ".implicit",
|
4767
4723
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
4768
4724
|
value: input.implicit
|
@@ -4770,7 +4726,7 @@ class MigrateApplication {
|
|
4770
4726
|
path: _path + ".password",
|
4771
4727
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
4772
4728
|
value: input.password
|
4773
|
-
})) && $
|
4729
|
+
})) && $vo130(input.password, _path + ".password", true && _exceptionable) || $report(_exceptionable, {
|
4774
4730
|
path: _path + ".password",
|
4775
4731
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
4776
4732
|
value: input.password
|
@@ -4778,12 +4734,12 @@ class MigrateApplication {
|
|
4778
4734
|
path: _path + ".clientCredentials",
|
4779
4735
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
4780
4736
|
value: input.clientCredentials
|
4781
|
-
})) && $
|
4737
|
+
})) && $vo130(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $report(_exceptionable, {
|
4782
4738
|
path: _path + ".clientCredentials",
|
4783
4739
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
4784
4740
|
value: input.clientCredentials
|
4785
4741
|
})].every(flag => flag);
|
4786
|
-
const $
|
4742
|
+
const $vo128 = (input, _path, _exceptionable = true) => [undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
4787
4743
|
path: _path + ".authorizationUrl",
|
4788
4744
|
expected: "(string | undefined)",
|
4789
4745
|
value: input.authorizationUrl
|
@@ -4804,15 +4760,7 @@ class MigrateApplication {
|
|
4804
4760
|
expected: "(Record<string, string> | undefined)",
|
4805
4761
|
value: input.scopes
|
4806
4762
|
})].every(flag => flag);
|
4807
|
-
const $
|
4808
|
-
path: _path + ".scopes",
|
4809
|
-
expected: "(Record<string, string> | undefined)",
|
4810
|
-
value: input.scopes
|
4811
|
-
})) && $vo28(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
4812
|
-
path: _path + ".scopes",
|
4813
|
-
expected: "(Record<string, string> | undefined)",
|
4814
|
-
value: input.scopes
|
4815
|
-
}), undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
4763
|
+
const $vo129 = (input, _path, _exceptionable = true) => [undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
4816
4764
|
path: _path + ".authorizationUrl",
|
4817
4765
|
expected: "(string | undefined)",
|
4818
4766
|
value: input.authorizationUrl
|
@@ -4820,8 +4768,7 @@ class MigrateApplication {
|
|
4820
4768
|
path: _path + ".refreshUrl",
|
4821
4769
|
expected: "(string | undefined)",
|
4822
4770
|
value: input.refreshUrl
|
4823
|
-
})
|
4824
|
-
const $vo132 = (input, _path, _exceptionable = true) => [undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
4771
|
+
}), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
4825
4772
|
path: _path + ".scopes",
|
4826
4773
|
expected: "(Record<string, string> | undefined)",
|
4827
4774
|
value: input.scopes
|
@@ -4829,7 +4776,8 @@ class MigrateApplication {
|
|
4829
4776
|
path: _path + ".scopes",
|
4830
4777
|
expected: "(Record<string, string> | undefined)",
|
4831
4778
|
value: input.scopes
|
4832
|
-
})
|
4779
|
+
})].every(flag => flag);
|
4780
|
+
const $vo130 = (input, _path, _exceptionable = true) => [undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $report(_exceptionable, {
|
4833
4781
|
path: _path + ".tokenUrl",
|
4834
4782
|
expected: "(string | undefined)",
|
4835
4783
|
value: input.tokenUrl
|
@@ -4837,8 +4785,16 @@ class MigrateApplication {
|
|
4837
4785
|
path: _path + ".refreshUrl",
|
4838
4786
|
expected: "(string | undefined)",
|
4839
4787
|
value: input.refreshUrl
|
4788
|
+
}), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
4789
|
+
path: _path + ".scopes",
|
4790
|
+
expected: "(Record<string, string> | undefined)",
|
4791
|
+
value: input.scopes
|
4792
|
+
})) && $vo28(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
4793
|
+
path: _path + ".scopes",
|
4794
|
+
expected: "(Record<string, string> | undefined)",
|
4795
|
+
value: input.scopes
|
4840
4796
|
})].every(flag => flag);
|
4841
|
-
const $
|
4797
|
+
const $vo131 = (input, _path, _exceptionable = true) => ["openIdConnect" === input.type || $report(_exceptionable, {
|
4842
4798
|
path: _path + ".type",
|
4843
4799
|
expected: "\"openIdConnect\"",
|
4844
4800
|
value: input.type
|
@@ -4851,7 +4807,7 @@ class MigrateApplication {
|
|
4851
4807
|
expected: "(string | undefined)",
|
4852
4808
|
value: input.description
|
4853
4809
|
})].every(flag => flag);
|
4854
|
-
const $
|
4810
|
+
const $vo132 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
4855
4811
|
const value = input[key];
|
4856
4812
|
if (undefined === value)
|
4857
4813
|
return true;
|
@@ -4859,13 +4815,13 @@ class MigrateApplication {
|
|
4859
4815
|
path: _path + $join(key),
|
4860
4816
|
expected: "Omit<OpenApiV3.IOperation.IParameter, \"in\">",
|
4861
4817
|
value: value
|
4862
|
-
})) && $
|
4818
|
+
})) && $vo116(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
4863
4819
|
path: _path + $join(key),
|
4864
4820
|
expected: "Omit<OpenApiV3.IOperation.IParameter, \"in\">",
|
4865
4821
|
value: value
|
4866
4822
|
});
|
4867
4823
|
}).every(flag => flag)].every(flag => flag);
|
4868
|
-
const $
|
4824
|
+
const $vo133 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
4869
4825
|
const value = input[key];
|
4870
4826
|
if (undefined === value)
|
4871
4827
|
return true;
|
@@ -4873,13 +4829,13 @@ class MigrateApplication {
|
|
4873
4829
|
path: _path + $join(key),
|
4874
4830
|
expected: "OpenApiV3.IPath",
|
4875
4831
|
value: value
|
4876
|
-
})) && $
|
4832
|
+
})) && $vo134(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
4877
4833
|
path: _path + $join(key),
|
4878
4834
|
expected: "OpenApiV3.IPath",
|
4879
4835
|
value: value
|
4880
4836
|
});
|
4881
4837
|
}).every(flag => flag)].every(flag => flag);
|
4882
|
-
const $
|
4838
|
+
const $vo134 = (input, _path, _exceptionable = true) => [undefined === input.parameters || (Array.isArray(input.parameters) || $report(_exceptionable, {
|
4883
4839
|
path: _path + ".parameters",
|
4884
4840
|
expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>> | undefined)",
|
4885
4841
|
value: input.parameters
|
@@ -4903,7 +4859,7 @@ class MigrateApplication {
|
|
4903
4859
|
path: _path + ".servers[" + _index49 + "]",
|
4904
4860
|
expected: "OpenApiV3.IServer",
|
4905
4861
|
value: elem
|
4906
|
-
})) && $
|
4862
|
+
})) && $vo91(elem, _path + ".servers[" + _index49 + "]", true && _exceptionable) || $report(_exceptionable, {
|
4907
4863
|
path: _path + ".servers[" + _index49 + "]",
|
4908
4864
|
expected: "OpenApiV3.IServer",
|
4909
4865
|
value: elem
|
@@ -4919,11 +4875,19 @@ class MigrateApplication {
|
|
4919
4875
|
path: _path + ".description",
|
4920
4876
|
expected: "(string | undefined)",
|
4921
4877
|
value: input.description
|
4878
|
+
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
4879
|
+
path: _path + ".head",
|
4880
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
4881
|
+
value: input.head
|
4882
|
+
})) && $vo136(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
4883
|
+
path: _path + ".head",
|
4884
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
4885
|
+
value: input.head
|
4922
4886
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || $report(_exceptionable, {
|
4923
4887
|
path: _path + ".get",
|
4924
4888
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4925
4889
|
value: input.get
|
4926
|
-
})) && $
|
4890
|
+
})) && $vo136(input.get, _path + ".get", true && _exceptionable) || $report(_exceptionable, {
|
4927
4891
|
path: _path + ".get",
|
4928
4892
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4929
4893
|
value: input.get
|
@@ -4931,7 +4895,7 @@ class MigrateApplication {
|
|
4931
4895
|
path: _path + ".post",
|
4932
4896
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4933
4897
|
value: input.post
|
4934
|
-
})) && $
|
4898
|
+
})) && $vo136(input.post, _path + ".post", true && _exceptionable) || $report(_exceptionable, {
|
4935
4899
|
path: _path + ".post",
|
4936
4900
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4937
4901
|
value: input.post
|
@@ -4939,15 +4903,23 @@ class MigrateApplication {
|
|
4939
4903
|
path: _path + ".put",
|
4940
4904
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4941
4905
|
value: input.put
|
4942
|
-
})) && $
|
4906
|
+
})) && $vo136(input.put, _path + ".put", true && _exceptionable) || $report(_exceptionable, {
|
4943
4907
|
path: _path + ".put",
|
4944
4908
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4945
4909
|
value: input.put
|
4910
|
+
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
4911
|
+
path: _path + ".patch",
|
4912
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
4913
|
+
value: input.patch
|
4914
|
+
})) && $vo136(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
4915
|
+
path: _path + ".patch",
|
4916
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
4917
|
+
value: input.patch
|
4946
4918
|
}), undefined === input["delete"] || ("object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) || $report(_exceptionable, {
|
4947
4919
|
path: _path + "[\"delete\"]",
|
4948
4920
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4949
4921
|
value: input["delete"]
|
4950
|
-
})) && $
|
4922
|
+
})) && $vo136(input["delete"], _path + "[\"delete\"]", true && _exceptionable) || $report(_exceptionable, {
|
4951
4923
|
path: _path + "[\"delete\"]",
|
4952
4924
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4953
4925
|
value: input["delete"]
|
@@ -4955,36 +4927,20 @@ class MigrateApplication {
|
|
4955
4927
|
path: _path + ".options",
|
4956
4928
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4957
4929
|
value: input.options
|
4958
|
-
})) && $
|
4930
|
+
})) && $vo136(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
|
4959
4931
|
path: _path + ".options",
|
4960
4932
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4961
4933
|
value: input.options
|
4962
|
-
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
4963
|
-
path: _path + ".head",
|
4964
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
4965
|
-
value: input.head
|
4966
|
-
})) && $vo138(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
4967
|
-
path: _path + ".head",
|
4968
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
4969
|
-
value: input.head
|
4970
|
-
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
4971
|
-
path: _path + ".patch",
|
4972
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
4973
|
-
value: input.patch
|
4974
|
-
})) && $vo138(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
4975
|
-
path: _path + ".patch",
|
4976
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
4977
|
-
value: input.patch
|
4978
4934
|
}), undefined === input.trace || ("object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) || $report(_exceptionable, {
|
4979
4935
|
path: _path + ".trace",
|
4980
4936
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4981
4937
|
value: input.trace
|
4982
|
-
})) && $
|
4938
|
+
})) && $vo136(input.trace, _path + ".trace", true && _exceptionable) || $report(_exceptionable, {
|
4983
4939
|
path: _path + ".trace",
|
4984
4940
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4985
4941
|
value: input.trace
|
4986
4942
|
})].every(flag => flag);
|
4987
|
-
const $
|
4943
|
+
const $vo135 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
4988
4944
|
path: _path + ".$ref",
|
4989
4945
|
expected: "`#/components/parameters/${string}`",
|
4990
4946
|
value: input.$ref
|
@@ -5001,7 +4957,7 @@ class MigrateApplication {
|
|
5001
4957
|
expected: "(boolean | undefined)",
|
5002
4958
|
value: input.deprecated
|
5003
4959
|
})].every(flag => flag);
|
5004
|
-
const $
|
4960
|
+
const $vo136 = (input, _path, _exceptionable = true) => [undefined === input.operationId || "string" === typeof input.operationId || $report(_exceptionable, {
|
5005
4961
|
path: _path + ".operationId",
|
5006
4962
|
expected: "(string | undefined)",
|
5007
4963
|
value: input.operationId
|
@@ -5025,7 +4981,7 @@ class MigrateApplication {
|
|
5025
4981
|
path: _path + ".requestBody",
|
5026
4982
|
expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/requestBodies/${string}`> | OpenApiV3.IOperation.IRequestBody | undefined)",
|
5027
4983
|
value: input.requestBody
|
5028
|
-
})) && $
|
4984
|
+
})) && $vu15(input.requestBody, _path + ".requestBody", true && _exceptionable) || $report(_exceptionable, {
|
5029
4985
|
path: _path + ".requestBody",
|
5030
4986
|
expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/requestBodies/${string}`> | OpenApiV3.IOperation.IRequestBody | undefined)",
|
5031
4987
|
value: input.requestBody
|
@@ -5033,7 +4989,7 @@ class MigrateApplication {
|
|
5033
4989
|
path: _path + ".responses",
|
5034
4990
|
expected: "(Record<string, IResponse | IReference<`#/components/responses/${string}`>> | undefined)",
|
5035
4991
|
value: input.responses
|
5036
|
-
})) && $
|
4992
|
+
})) && $vo138(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
5037
4993
|
path: _path + ".responses",
|
5038
4994
|
expected: "(Record<string, IResponse | IReference<`#/components/responses/${string}`>> | undefined)",
|
5039
4995
|
value: input.responses
|
@@ -5045,7 +5001,7 @@ class MigrateApplication {
|
|
5045
5001
|
path: _path + ".servers[" + _index51 + "]",
|
5046
5002
|
expected: "OpenApiV3.IServer",
|
5047
5003
|
value: elem
|
5048
|
-
})) && $
|
5004
|
+
})) && $vo91(elem, _path + ".servers[" + _index51 + "]", true && _exceptionable) || $report(_exceptionable, {
|
5049
5005
|
path: _path + ".servers[" + _index51 + "]",
|
5050
5006
|
expected: "OpenApiV3.IServer",
|
5051
5007
|
value: elem
|
@@ -5094,7 +5050,7 @@ class MigrateApplication {
|
|
5094
5050
|
expected: "(boolean | undefined)",
|
5095
5051
|
value: input.deprecated
|
5096
5052
|
})].every(flag => flag);
|
5097
|
-
const $
|
5053
|
+
const $vo137 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
5098
5054
|
path: _path + ".$ref",
|
5099
5055
|
expected: "`#/components/requestBodies/${string}`",
|
5100
5056
|
value: input.$ref
|
@@ -5111,7 +5067,7 @@ class MigrateApplication {
|
|
5111
5067
|
expected: "(boolean | undefined)",
|
5112
5068
|
value: input.deprecated
|
5113
5069
|
})].every(flag => flag);
|
5114
|
-
const $
|
5070
|
+
const $vo138 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5115
5071
|
const value = input[key];
|
5116
5072
|
if (undefined === value)
|
5117
5073
|
return true;
|
@@ -5119,13 +5075,13 @@ class MigrateApplication {
|
|
5119
5075
|
path: _path + $join(key),
|
5120
5076
|
expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/responses/${string}`> | OpenApiV3.IOperation.IResponse)",
|
5121
5077
|
value: value
|
5122
|
-
})) && $
|
5078
|
+
})) && $vu16(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
5123
5079
|
path: _path + $join(key),
|
5124
5080
|
expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/responses/${string}`> | OpenApiV3.IOperation.IResponse)",
|
5125
5081
|
value: value
|
5126
5082
|
});
|
5127
5083
|
}).every(flag => flag)].every(flag => flag);
|
5128
|
-
const $
|
5084
|
+
const $vo139 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
5129
5085
|
path: _path + ".$ref",
|
5130
5086
|
expected: "`#/components/responses/${string}`",
|
5131
5087
|
value: input.$ref
|
@@ -5142,7 +5098,7 @@ class MigrateApplication {
|
|
5142
5098
|
expected: "(boolean | undefined)",
|
5143
5099
|
value: input.deprecated
|
5144
5100
|
})].every(flag => flag);
|
5145
|
-
const $
|
5101
|
+
const $vo140 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
5146
5102
|
path: _path + ".name",
|
5147
5103
|
expected: "string",
|
5148
5104
|
value: input.name
|
@@ -5151,7 +5107,7 @@ class MigrateApplication {
|
|
5151
5107
|
expected: "(string | undefined)",
|
5152
5108
|
value: input.description
|
5153
5109
|
})].every(flag => flag);
|
5154
|
-
const $
|
5110
|
+
const $vo141 = (input, _path, _exceptionable = true) => ["string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) || $report(_exceptionable, {
|
5155
5111
|
path: _path + ".openapi",
|
5156
5112
|
expected: "`3.1.${number}`",
|
5157
5113
|
value: input.openapi
|
@@ -5163,7 +5119,7 @@ class MigrateApplication {
|
|
5163
5119
|
path: _path + ".servers[" + _index54 + "]",
|
5164
5120
|
expected: "OpenApiV3_1.IServer",
|
5165
5121
|
value: elem
|
5166
|
-
})) && $
|
5122
|
+
})) && $vo142(elem, _path + ".servers[" + _index54 + "]", true && _exceptionable) || $report(_exceptionable, {
|
5167
5123
|
path: _path + ".servers[" + _index54 + "]",
|
5168
5124
|
expected: "OpenApiV3_1.IServer",
|
5169
5125
|
value: elem
|
@@ -5175,7 +5131,7 @@ class MigrateApplication {
|
|
5175
5131
|
path: _path + ".info",
|
5176
5132
|
expected: "(OpenApiV3_1.IDocument.IInfo | undefined)",
|
5177
5133
|
value: input.info
|
5178
|
-
})) && $
|
5134
|
+
})) && $vo145(input.info, _path + ".info", true && _exceptionable) || $report(_exceptionable, {
|
5179
5135
|
path: _path + ".info",
|
5180
5136
|
expected: "(OpenApiV3_1.IDocument.IInfo | undefined)",
|
5181
5137
|
value: input.info
|
@@ -5183,7 +5139,7 @@ class MigrateApplication {
|
|
5183
5139
|
path: _path + ".components",
|
5184
5140
|
expected: "(OpenApiV3_1.IComponents | undefined)",
|
5185
5141
|
value: input.components
|
5186
|
-
})) && $
|
5142
|
+
})) && $vo148(input.components, _path + ".components", true && _exceptionable) || $report(_exceptionable, {
|
5187
5143
|
path: _path + ".components",
|
5188
5144
|
expected: "(OpenApiV3_1.IComponents | undefined)",
|
5189
5145
|
value: input.components
|
@@ -5191,17 +5147,17 @@ class MigrateApplication {
|
|
5191
5147
|
path: _path + ".paths",
|
5192
5148
|
expected: "(Record<string, OpenApiV3_1.IPath> | undefined)",
|
5193
5149
|
value: input.paths
|
5194
|
-
})) && $
|
5150
|
+
})) && $vo164(input.paths, _path + ".paths", true && _exceptionable) || $report(_exceptionable, {
|
5195
5151
|
path: _path + ".paths",
|
5196
5152
|
expected: "(Record<string, OpenApiV3_1.IPath> | undefined)",
|
5197
5153
|
value: input.paths
|
5198
5154
|
}), undefined === input.webhooks || ("object" === typeof input.webhooks && null !== input.webhooks && false === Array.isArray(input.webhooks) || $report(_exceptionable, {
|
5199
5155
|
path: _path + ".webhooks",
|
5200
|
-
expected: "(Record<string, IPath | IReference<`#/components/pathItems/${string}
|
5156
|
+
expected: "(Record<string, IPath | IReference<`#/components/pathItems/${string}`>> | undefined)",
|
5201
5157
|
value: input.webhooks
|
5202
|
-
})) && $
|
5158
|
+
})) && $vo193(input.webhooks, _path + ".webhooks", true && _exceptionable) || $report(_exceptionable, {
|
5203
5159
|
path: _path + ".webhooks",
|
5204
|
-
expected: "(Record<string, IPath | IReference<`#/components/pathItems/${string}
|
5160
|
+
expected: "(Record<string, IPath | IReference<`#/components/pathItems/${string}`>> | undefined)",
|
5205
5161
|
value: input.webhooks
|
5206
5162
|
}), undefined === input.security || (Array.isArray(input.security) || $report(_exceptionable, {
|
5207
5163
|
path: _path + ".security",
|
@@ -5227,7 +5183,7 @@ class MigrateApplication {
|
|
5227
5183
|
path: _path + ".tags[" + _index56 + "]",
|
5228
5184
|
expected: "OpenApiV3_1.IDocument.ITag",
|
5229
5185
|
value: elem
|
5230
|
-
})) && $
|
5186
|
+
})) && $vo195(elem, _path + ".tags[" + _index56 + "]", true && _exceptionable) || $report(_exceptionable, {
|
5231
5187
|
path: _path + ".tags[" + _index56 + "]",
|
5232
5188
|
expected: "OpenApiV3_1.IDocument.ITag",
|
5233
5189
|
value: elem
|
@@ -5236,7 +5192,7 @@ class MigrateApplication {
|
|
5236
5192
|
expected: "(Array<OpenApiV3_1.IDocument.ITag> | undefined)",
|
5237
5193
|
value: input.tags
|
5238
5194
|
})].every(flag => flag);
|
5239
|
-
const $
|
5195
|
+
const $vo142 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || $report(_exceptionable, {
|
5240
5196
|
path: _path + ".url",
|
5241
5197
|
expected: "string",
|
5242
5198
|
value: input.url
|
@@ -5248,12 +5204,12 @@ class MigrateApplication {
|
|
5248
5204
|
path: _path + ".variables",
|
5249
5205
|
expected: "(Record<string, OpenApiV3_1.IServer.IVariable> | undefined)",
|
5250
5206
|
value: input.variables
|
5251
|
-
})) && $
|
5207
|
+
})) && $vo143(input.variables, _path + ".variables", true && _exceptionable) || $report(_exceptionable, {
|
5252
5208
|
path: _path + ".variables",
|
5253
5209
|
expected: "(Record<string, OpenApiV3_1.IServer.IVariable> | undefined)",
|
5254
5210
|
value: input.variables
|
5255
5211
|
})].every(flag => flag);
|
5256
|
-
const $
|
5212
|
+
const $vo143 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5257
5213
|
const value = input[key];
|
5258
5214
|
if (undefined === value)
|
5259
5215
|
return true;
|
@@ -5261,13 +5217,13 @@ class MigrateApplication {
|
|
5261
5217
|
path: _path + $join(key),
|
5262
5218
|
expected: "OpenApiV3_1.IServer.IVariable",
|
5263
5219
|
value: value
|
5264
|
-
})) && $
|
5220
|
+
})) && $vo144(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
5265
5221
|
path: _path + $join(key),
|
5266
5222
|
expected: "OpenApiV3_1.IServer.IVariable",
|
5267
5223
|
value: value
|
5268
5224
|
});
|
5269
5225
|
}).every(flag => flag)].every(flag => flag);
|
5270
|
-
const $
|
5226
|
+
const $vo144 = (input, _path, _exceptionable = true) => ["string" === typeof input["default"] || $report(_exceptionable, {
|
5271
5227
|
path: _path + "[\"default\"]",
|
5272
5228
|
expected: "string",
|
5273
5229
|
value: input["default"]
|
@@ -5292,7 +5248,7 @@ class MigrateApplication {
|
|
5292
5248
|
expected: "(string | undefined)",
|
5293
5249
|
value: input.description
|
5294
5250
|
})].every(flag => flag);
|
5295
|
-
const $
|
5251
|
+
const $vo145 = (input, _path, _exceptionable = true) => ["string" === typeof input.title || $report(_exceptionable, {
|
5296
5252
|
path: _path + ".title",
|
5297
5253
|
expected: "string",
|
5298
5254
|
value: input.title
|
@@ -5312,7 +5268,7 @@ class MigrateApplication {
|
|
5312
5268
|
path: _path + ".contact",
|
5313
5269
|
expected: "(OpenApiV3_1.IDocument.IContact | undefined)",
|
5314
5270
|
value: input.contact
|
5315
|
-
})) && $
|
5271
|
+
})) && $vo146(input.contact, _path + ".contact", true && _exceptionable) || $report(_exceptionable, {
|
5316
5272
|
path: _path + ".contact",
|
5317
5273
|
expected: "(OpenApiV3_1.IDocument.IContact | undefined)",
|
5318
5274
|
value: input.contact
|
@@ -5320,7 +5276,7 @@ class MigrateApplication {
|
|
5320
5276
|
path: _path + ".license",
|
5321
5277
|
expected: "(OpenApiV3_1.IDocument.ILicense | undefined)",
|
5322
5278
|
value: input.license
|
5323
|
-
})) && $
|
5279
|
+
})) && $vo147(input.license, _path + ".license", true && _exceptionable) || $report(_exceptionable, {
|
5324
5280
|
path: _path + ".license",
|
5325
5281
|
expected: "(OpenApiV3_1.IDocument.ILicense | undefined)",
|
5326
5282
|
value: input.license
|
@@ -5329,7 +5285,7 @@ class MigrateApplication {
|
|
5329
5285
|
expected: "string",
|
5330
5286
|
value: input.version
|
5331
5287
|
})].every(flag => flag);
|
5332
|
-
const $
|
5288
|
+
const $vo146 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
5333
5289
|
path: _path + ".name",
|
5334
5290
|
expected: "(string | undefined)",
|
5335
5291
|
value: input.name
|
@@ -5342,7 +5298,7 @@ class MigrateApplication {
|
|
5342
5298
|
expected: "(string | undefined)",
|
5343
5299
|
value: input.email
|
5344
5300
|
})].every(flag => flag);
|
5345
|
-
const $
|
5301
|
+
const $vo147 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
5346
5302
|
path: _path + ".name",
|
5347
5303
|
expected: "string",
|
5348
5304
|
value: input.name
|
@@ -5355,11 +5311,11 @@ class MigrateApplication {
|
|
5355
5311
|
expected: "(string | undefined)",
|
5356
5312
|
value: input.url
|
5357
5313
|
})].every(flag => flag);
|
5358
|
-
const $
|
5314
|
+
const $vo148 = (input, _path, _exceptionable = true) => [undefined === input.schemas || ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || $report(_exceptionable, {
|
5359
5315
|
path: _path + ".schemas",
|
5360
5316
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
5361
5317
|
value: input.schemas
|
5362
|
-
})) && $
|
5318
|
+
})) && $vo149(input.schemas, _path + ".schemas", true && _exceptionable) || $report(_exceptionable, {
|
5363
5319
|
path: _path + ".schemas",
|
5364
5320
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
5365
5321
|
value: input.schemas
|
@@ -5367,7 +5323,7 @@ class MigrateApplication {
|
|
5367
5323
|
path: _path + ".pathItems",
|
5368
5324
|
expected: "(Record<string, OpenApiV3_1.IPath> | undefined)",
|
5369
5325
|
value: input.pathItems
|
5370
|
-
})) && $
|
5326
|
+
})) && $vo164(input.pathItems, _path + ".pathItems", true && _exceptionable) || $report(_exceptionable, {
|
5371
5327
|
path: _path + ".pathItems",
|
5372
5328
|
expected: "(Record<string, OpenApiV3_1.IPath> | undefined)",
|
5373
5329
|
value: input.pathItems
|
@@ -5375,7 +5331,7 @@ class MigrateApplication {
|
|
5375
5331
|
path: _path + ".responses",
|
5376
5332
|
expected: "(Record<string, OpenApiV3_1.IOperation.IResponse> | undefined)",
|
5377
5333
|
value: input.responses
|
5378
|
-
})) && $
|
5334
|
+
})) && $vo179(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
5379
5335
|
path: _path + ".responses",
|
5380
5336
|
expected: "(Record<string, OpenApiV3_1.IOperation.IResponse> | undefined)",
|
5381
5337
|
value: input.responses
|
@@ -5383,7 +5339,7 @@ class MigrateApplication {
|
|
5383
5339
|
path: _path + ".parameters",
|
5384
5340
|
expected: "(Record<string, OpenApiV3_1.IOperation.IParameter> | undefined)",
|
5385
5341
|
value: input.parameters
|
5386
|
-
})) && $
|
5342
|
+
})) && $vo180(input.parameters, _path + ".parameters", true && _exceptionable) || $report(_exceptionable, {
|
5387
5343
|
path: _path + ".parameters",
|
5388
5344
|
expected: "(Record<string, OpenApiV3_1.IOperation.IParameter> | undefined)",
|
5389
5345
|
value: input.parameters
|
@@ -5391,7 +5347,7 @@ class MigrateApplication {
|
|
5391
5347
|
path: _path + ".requestBodies",
|
5392
5348
|
expected: "(Record<string, OpenApiV3_1.IOperation.IRequestBody> | undefined)",
|
5393
5349
|
value: input.requestBodies
|
5394
|
-
})) && $
|
5350
|
+
})) && $vo181(input.requestBodies, _path + ".requestBodies", true && _exceptionable) || $report(_exceptionable, {
|
5395
5351
|
path: _path + ".requestBodies",
|
5396
5352
|
expected: "(Record<string, OpenApiV3_1.IOperation.IRequestBody> | undefined)",
|
5397
5353
|
value: input.requestBodies
|
@@ -5399,7 +5355,7 @@ class MigrateApplication {
|
|
5399
5355
|
path: _path + ".securitySchemes",
|
5400
5356
|
expected: "(Record<string, OpenApiV3_1.ISecurityScheme> | undefined)",
|
5401
5357
|
value: input.securitySchemes
|
5402
|
-
})) && $
|
5358
|
+
})) && $vo182(input.securitySchemes, _path + ".securitySchemes", true && _exceptionable) || $report(_exceptionable, {
|
5403
5359
|
path: _path + ".securitySchemes",
|
5404
5360
|
expected: "(Record<string, OpenApiV3_1.ISecurityScheme> | undefined)",
|
5405
5361
|
value: input.securitySchemes
|
@@ -5407,12 +5363,12 @@ class MigrateApplication {
|
|
5407
5363
|
path: _path + ".headers",
|
5408
5364
|
expected: "(Record<string, Omit<OpenApiV3_1.IOperation.IParameter, \"in\">> | undefined)",
|
5409
5365
|
value: input.headers
|
5410
|
-
})) && $
|
5366
|
+
})) && $vo192(input.headers, _path + ".headers", true && _exceptionable) || $report(_exceptionable, {
|
5411
5367
|
path: _path + ".headers",
|
5412
5368
|
expected: "(Record<string, Omit<OpenApiV3_1.IOperation.IParameter, \"in\">> | undefined)",
|
5413
5369
|
value: input.headers
|
5414
5370
|
})].every(flag => flag);
|
5415
|
-
const $
|
5371
|
+
const $vo149 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5416
5372
|
const value = input[key];
|
5417
5373
|
if (undefined === value)
|
5418
5374
|
return true;
|
@@ -5426,7 +5382,7 @@ class MigrateApplication {
|
|
5426
5382
|
value: value
|
5427
5383
|
});
|
5428
5384
|
}).every(flag => flag)].every(flag => flag);
|
5429
|
-
const $
|
5385
|
+
const $vo150 = (input, _path, _exceptionable = true) => [(Array.isArray(input.type) || $report(_exceptionable, {
|
5430
5386
|
path: _path + ".type",
|
5431
5387
|
expected: "Array<\"string\" | \"number\" | \"boolean\" | \"object\" | \"integer\" | \"array\">",
|
5432
5388
|
value: input.type
|
@@ -5594,7 +5550,7 @@ class MigrateApplication {
|
|
5594
5550
|
path: _path + ".properties",
|
5595
5551
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
5596
5552
|
value: input.properties
|
5597
|
-
})) && $
|
5553
|
+
})) && $vo149(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
|
5598
5554
|
path: _path + ".properties",
|
5599
5555
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
5600
5556
|
value: input.properties
|
@@ -5679,7 +5635,7 @@ class MigrateApplication {
|
|
5679
5635
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
5680
5636
|
value: input.allOf
|
5681
5637
|
})].every(flag => flag);
|
5682
|
-
const $
|
5638
|
+
const $vo151 = (input, _path, _exceptionable = true) => ["string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || $report(_exceptionable, {
|
5683
5639
|
path: _path + "[\"const\"]",
|
5684
5640
|
expected: "(boolean | number | string)",
|
5685
5641
|
value: input["const"]
|
@@ -5696,7 +5652,7 @@ class MigrateApplication {
|
|
5696
5652
|
expected: "(boolean | undefined)",
|
5697
5653
|
value: input.deprecated
|
5698
5654
|
})].every(flag => flag);
|
5699
|
-
const $
|
5655
|
+
const $vo152 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "boolean" === typeof input["default"] || $report(_exceptionable, {
|
5700
5656
|
path: _path + "[\"default\"]",
|
5701
5657
|
expected: "(boolean | undefined)",
|
5702
5658
|
value: input["default"]
|
@@ -5733,7 +5689,7 @@ class MigrateApplication {
|
|
5733
5689
|
expected: "(boolean | undefined)",
|
5734
5690
|
value: input.deprecated
|
5735
5691
|
})].every(flag => flag);
|
5736
|
-
const $
|
5692
|
+
const $vo153 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000 || $report(_exceptionable, {
|
5737
5693
|
path: _path + "[\"default\"]",
|
5738
5694
|
expected: "number & Type<\"int64\">",
|
5739
5695
|
value: input["default"]
|
@@ -5818,7 +5774,7 @@ class MigrateApplication {
|
|
5818
5774
|
expected: "(boolean | undefined)",
|
5819
5775
|
value: input.deprecated
|
5820
5776
|
})].every(flag => flag);
|
5821
|
-
const $
|
5777
|
+
const $vo154 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] || $report(_exceptionable, {
|
5822
5778
|
path: _path + "[\"default\"]",
|
5823
5779
|
expected: "(number | undefined)",
|
5824
5780
|
value: input["default"]
|
@@ -5879,7 +5835,7 @@ class MigrateApplication {
|
|
5879
5835
|
expected: "(boolean | undefined)",
|
5880
5836
|
value: input.deprecated
|
5881
5837
|
})].every(flag => flag);
|
5882
|
-
const $
|
5838
|
+
const $vo155 = (input, _path, _exceptionable = true) => [undefined === input.contentMediaType || "string" === typeof input.contentMediaType || $report(_exceptionable, {
|
5883
5839
|
path: _path + ".contentMediaType",
|
5884
5840
|
expected: "(string | undefined)",
|
5885
5841
|
value: input.contentMediaType
|
@@ -5944,7 +5900,7 @@ class MigrateApplication {
|
|
5944
5900
|
expected: "(boolean | undefined)",
|
5945
5901
|
value: input.deprecated
|
5946
5902
|
})].every(flag => flag);
|
5947
|
-
const $
|
5903
|
+
const $vo156 = (input, _path, _exceptionable = true) => [(null !== input.items || $report(_exceptionable, {
|
5948
5904
|
path: _path + ".items",
|
5949
5905
|
expected: "(Array<OpenApiV3_1.IJsonSchema> | OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
5950
5906
|
value: input.items
|
@@ -6037,11 +5993,11 @@ class MigrateApplication {
|
|
6037
5993
|
expected: "(boolean | undefined)",
|
6038
5994
|
value: input.deprecated
|
6039
5995
|
})].every(flag => flag);
|
6040
|
-
const $
|
5996
|
+
const $vo157 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $report(_exceptionable, {
|
6041
5997
|
path: _path + ".properties",
|
6042
5998
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
6043
5999
|
value: input.properties
|
6044
|
-
})) && $
|
6000
|
+
})) && $vo149(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
|
6045
6001
|
path: _path + ".properties",
|
6046
6002
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
6047
6003
|
value: input.properties
|
@@ -6098,7 +6054,7 @@ class MigrateApplication {
|
|
6098
6054
|
expected: "(boolean | undefined)",
|
6099
6055
|
value: input.deprecated
|
6100
6056
|
})].every(flag => flag);
|
6101
|
-
const $
|
6057
|
+
const $vo158 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || $report(_exceptionable, {
|
6102
6058
|
path: _path + ".$ref",
|
6103
6059
|
expected: "string",
|
6104
6060
|
value: input.$ref
|
@@ -6115,7 +6071,7 @@ class MigrateApplication {
|
|
6115
6071
|
expected: "(boolean | undefined)",
|
6116
6072
|
value: input.deprecated
|
6117
6073
|
})].every(flag => flag);
|
6118
|
-
const $
|
6074
|
+
const $vo159 = (input, _path, _exceptionable = true) => [(null !== input.type || $report(_exceptionable, {
|
6119
6075
|
path: _path + ".type",
|
6120
6076
|
expected: "undefined",
|
6121
6077
|
value: input.type
|
@@ -6136,7 +6092,7 @@ class MigrateApplication {
|
|
6136
6092
|
expected: "(boolean | undefined)",
|
6137
6093
|
value: input.deprecated
|
6138
6094
|
})].every(flag => flag);
|
6139
|
-
const $
|
6095
|
+
const $vo160 = (input, _path, _exceptionable = true) => ["null" === input.type || $report(_exceptionable, {
|
6140
6096
|
path: _path + ".type",
|
6141
6097
|
expected: "\"null\"",
|
6142
6098
|
value: input.type
|
@@ -6157,7 +6113,7 @@ class MigrateApplication {
|
|
6157
6113
|
expected: "(boolean | undefined)",
|
6158
6114
|
value: input.deprecated
|
6159
6115
|
})].every(flag => flag);
|
6160
|
-
const $
|
6116
|
+
const $vo161 = (input, _path, _exceptionable = true) => [(Array.isArray(input.allOf) || $report(_exceptionable, {
|
6161
6117
|
path: _path + ".allOf",
|
6162
6118
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
6163
6119
|
value: input.allOf
|
@@ -6186,7 +6142,7 @@ class MigrateApplication {
|
|
6186
6142
|
expected: "(boolean | undefined)",
|
6187
6143
|
value: input.deprecated
|
6188
6144
|
})].every(flag => flag);
|
6189
|
-
const $
|
6145
|
+
const $vo162 = (input, _path, _exceptionable = true) => [(Array.isArray(input.anyOf) || $report(_exceptionable, {
|
6190
6146
|
path: _path + ".anyOf",
|
6191
6147
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
6192
6148
|
value: input.anyOf
|
@@ -6215,7 +6171,7 @@ class MigrateApplication {
|
|
6215
6171
|
expected: "(boolean | undefined)",
|
6216
6172
|
value: input.deprecated
|
6217
6173
|
})].every(flag => flag);
|
6218
|
-
const $
|
6174
|
+
const $vo163 = (input, _path, _exceptionable = true) => [(Array.isArray(input.oneOf) || $report(_exceptionable, {
|
6219
6175
|
path: _path + ".oneOf",
|
6220
6176
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
6221
6177
|
value: input.oneOf
|
@@ -6244,7 +6200,7 @@ class MigrateApplication {
|
|
6244
6200
|
expected: "(boolean | undefined)",
|
6245
6201
|
value: input.deprecated
|
6246
6202
|
})].every(flag => flag);
|
6247
|
-
const $
|
6203
|
+
const $vo164 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
6248
6204
|
const value = input[key];
|
6249
6205
|
if (undefined === value)
|
6250
6206
|
return true;
|
@@ -6252,13 +6208,13 @@ class MigrateApplication {
|
|
6252
6208
|
path: _path + $join(key),
|
6253
6209
|
expected: "OpenApiV3_1.IPath",
|
6254
6210
|
value: value
|
6255
|
-
})) && $
|
6211
|
+
})) && $vo165(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
6256
6212
|
path: _path + $join(key),
|
6257
6213
|
expected: "OpenApiV3_1.IPath",
|
6258
6214
|
value: value
|
6259
6215
|
});
|
6260
6216
|
}).every(flag => flag)].every(flag => flag);
|
6261
|
-
const $
|
6217
|
+
const $vo165 = (input, _path, _exceptionable = true) => [undefined === input.parameters || (Array.isArray(input.parameters) || $report(_exceptionable, {
|
6262
6218
|
path: _path + ".parameters",
|
6263
6219
|
expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>>.o1 | undefined)",
|
6264
6220
|
value: input.parameters
|
@@ -6282,7 +6238,7 @@ class MigrateApplication {
|
|
6282
6238
|
path: _path + ".servers[" + _index76 + "]",
|
6283
6239
|
expected: "OpenApiV3_1.IServer",
|
6284
6240
|
value: elem
|
6285
|
-
})) && $
|
6241
|
+
})) && $vo142(elem, _path + ".servers[" + _index76 + "]", true && _exceptionable) || $report(_exceptionable, {
|
6286
6242
|
path: _path + ".servers[" + _index76 + "]",
|
6287
6243
|
expected: "OpenApiV3_1.IServer",
|
6288
6244
|
value: elem
|
@@ -6298,11 +6254,19 @@ class MigrateApplication {
|
|
6298
6254
|
path: _path + ".description",
|
6299
6255
|
expected: "(string | undefined)",
|
6300
6256
|
value: input.description
|
6257
|
+
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
6258
|
+
path: _path + ".head",
|
6259
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6260
|
+
value: input.head
|
6261
|
+
})) && $vo169(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
6262
|
+
path: _path + ".head",
|
6263
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6264
|
+
value: input.head
|
6301
6265
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || $report(_exceptionable, {
|
6302
6266
|
path: _path + ".get",
|
6303
6267
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6304
6268
|
value: input.get
|
6305
|
-
})) && $
|
6269
|
+
})) && $vo169(input.get, _path + ".get", true && _exceptionable) || $report(_exceptionable, {
|
6306
6270
|
path: _path + ".get",
|
6307
6271
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6308
6272
|
value: input.get
|
@@ -6310,7 +6274,7 @@ class MigrateApplication {
|
|
6310
6274
|
path: _path + ".post",
|
6311
6275
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6312
6276
|
value: input.post
|
6313
|
-
})) && $
|
6277
|
+
})) && $vo169(input.post, _path + ".post", true && _exceptionable) || $report(_exceptionable, {
|
6314
6278
|
path: _path + ".post",
|
6315
6279
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6316
6280
|
value: input.post
|
@@ -6318,15 +6282,23 @@ class MigrateApplication {
|
|
6318
6282
|
path: _path + ".put",
|
6319
6283
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6320
6284
|
value: input.put
|
6321
|
-
})) && $
|
6285
|
+
})) && $vo169(input.put, _path + ".put", true && _exceptionable) || $report(_exceptionable, {
|
6322
6286
|
path: _path + ".put",
|
6323
6287
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6324
6288
|
value: input.put
|
6289
|
+
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
6290
|
+
path: _path + ".patch",
|
6291
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6292
|
+
value: input.patch
|
6293
|
+
})) && $vo169(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
6294
|
+
path: _path + ".patch",
|
6295
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6296
|
+
value: input.patch
|
6325
6297
|
}), undefined === input["delete"] || ("object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) || $report(_exceptionable, {
|
6326
6298
|
path: _path + "[\"delete\"]",
|
6327
6299
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6328
6300
|
value: input["delete"]
|
6329
|
-
})) && $
|
6301
|
+
})) && $vo169(input["delete"], _path + "[\"delete\"]", true && _exceptionable) || $report(_exceptionable, {
|
6330
6302
|
path: _path + "[\"delete\"]",
|
6331
6303
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6332
6304
|
value: input["delete"]
|
@@ -6334,40 +6306,24 @@ class MigrateApplication {
|
|
6334
6306
|
path: _path + ".options",
|
6335
6307
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6336
6308
|
value: input.options
|
6337
|
-
})) && $
|
6309
|
+
})) && $vo169(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
|
6338
6310
|
path: _path + ".options",
|
6339
6311
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6340
6312
|
value: input.options
|
6341
|
-
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
6342
|
-
path: _path + ".head",
|
6343
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6344
|
-
value: input.head
|
6345
|
-
})) && $vo171(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
6346
|
-
path: _path + ".head",
|
6347
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6348
|
-
value: input.head
|
6349
|
-
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
6350
|
-
path: _path + ".patch",
|
6351
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6352
|
-
value: input.patch
|
6353
|
-
})) && $vo171(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
6354
|
-
path: _path + ".patch",
|
6355
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6356
|
-
value: input.patch
|
6357
6313
|
}), undefined === input.trace || ("object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) || $report(_exceptionable, {
|
6358
6314
|
path: _path + ".trace",
|
6359
6315
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6360
6316
|
value: input.trace
|
6361
|
-
})) && $
|
6317
|
+
})) && $vo169(input.trace, _path + ".trace", true && _exceptionable) || $report(_exceptionable, {
|
6362
6318
|
path: _path + ".trace",
|
6363
6319
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6364
6320
|
value: input.trace
|
6365
6321
|
})].every(flag => flag);
|
6366
|
-
const $
|
6322
|
+
const $vo166 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
6367
6323
|
path: _path + ".name",
|
6368
6324
|
expected: "(string | undefined)",
|
6369
6325
|
value: input.name
|
6370
|
-
}), "
|
6326
|
+
}), "path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
6371
6327
|
path: _path + "[\"in\"]",
|
6372
6328
|
expected: "(\"cookie\" | \"header\" | \"path\" | \"query\")",
|
6373
6329
|
value: input["in"]
|
@@ -6388,7 +6344,7 @@ class MigrateApplication {
|
|
6388
6344
|
expected: "(string | undefined)",
|
6389
6345
|
value: input.description
|
6390
6346
|
})].every(flag => flag);
|
6391
|
-
const $
|
6347
|
+
const $vo167 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
6392
6348
|
path: _path + ".$ref",
|
6393
6349
|
expected: "`#/components/headers/${string}`",
|
6394
6350
|
value: input.$ref
|
@@ -6405,7 +6361,7 @@ class MigrateApplication {
|
|
6405
6361
|
expected: "(boolean | undefined)",
|
6406
6362
|
value: input.deprecated
|
6407
6363
|
})].every(flag => flag);
|
6408
|
-
const $
|
6364
|
+
const $vo168 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
6409
6365
|
path: _path + ".$ref",
|
6410
6366
|
expected: "`#/components/parameters/${string}`",
|
6411
6367
|
value: input.$ref
|
@@ -6422,7 +6378,7 @@ class MigrateApplication {
|
|
6422
6378
|
expected: "(boolean | undefined)",
|
6423
6379
|
value: input.deprecated
|
6424
6380
|
})].every(flag => flag);
|
6425
|
-
const $
|
6381
|
+
const $vo169 = (input, _path, _exceptionable = true) => [undefined === input.operationId || "string" === typeof input.operationId || $report(_exceptionable, {
|
6426
6382
|
path: _path + ".operationId",
|
6427
6383
|
expected: "(string | undefined)",
|
6428
6384
|
value: input.operationId
|
@@ -6446,7 +6402,7 @@ class MigrateApplication {
|
|
6446
6402
|
path: _path + ".requestBody",
|
6447
6403
|
expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/requestBodies/${string}`> | OpenApiV3_1.IOperation.IRequestBody | undefined)",
|
6448
6404
|
value: input.requestBody
|
6449
|
-
})) && $
|
6405
|
+
})) && $vu17(input.requestBody, _path + ".requestBody", true && _exceptionable) || $report(_exceptionable, {
|
6450
6406
|
path: _path + ".requestBody",
|
6451
6407
|
expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/requestBodies/${string}`> | OpenApiV3_1.IOperation.IRequestBody | undefined)",
|
6452
6408
|
value: input.requestBody
|
@@ -6454,7 +6410,7 @@ class MigrateApplication {
|
|
6454
6410
|
path: _path + ".responses",
|
6455
6411
|
expected: "(Record<string, IResponse | IReference<`#/components/responses/${string}`>>.o1 | undefined)",
|
6456
6412
|
value: input.responses
|
6457
|
-
})) && $
|
6413
|
+
})) && $vo174(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
6458
6414
|
path: _path + ".responses",
|
6459
6415
|
expected: "(Record<string, IResponse | IReference<`#/components/responses/${string}`>>.o1 | undefined)",
|
6460
6416
|
value: input.responses
|
@@ -6466,7 +6422,7 @@ class MigrateApplication {
|
|
6466
6422
|
path: _path + ".servers[" + _index78 + "]",
|
6467
6423
|
expected: "OpenApiV3_1.IServer",
|
6468
6424
|
value: elem
|
6469
|
-
})) && $
|
6425
|
+
})) && $vo142(elem, _path + ".servers[" + _index78 + "]", true && _exceptionable) || $report(_exceptionable, {
|
6470
6426
|
path: _path + ".servers[" + _index78 + "]",
|
6471
6427
|
expected: "OpenApiV3_1.IServer",
|
6472
6428
|
value: elem
|
@@ -6515,7 +6471,7 @@ class MigrateApplication {
|
|
6515
6471
|
expected: "(boolean | undefined)",
|
6516
6472
|
value: input.deprecated
|
6517
6473
|
})].every(flag => flag);
|
6518
|
-
const $
|
6474
|
+
const $vo170 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
6519
6475
|
path: _path + ".description",
|
6520
6476
|
expected: "(string | undefined)",
|
6521
6477
|
value: input.description
|
@@ -6527,12 +6483,12 @@ class MigrateApplication {
|
|
6527
6483
|
path: _path + ".content",
|
6528
6484
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
6529
6485
|
value: input.content
|
6530
|
-
})) && $
|
6486
|
+
})) && $vo171(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
6531
6487
|
path: _path + ".content",
|
6532
6488
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
6533
6489
|
value: input.content
|
6534
6490
|
})].every(flag => flag);
|
6535
|
-
const $
|
6491
|
+
const $vo171 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
6536
6492
|
const value = input[key];
|
6537
6493
|
if (undefined === value)
|
6538
6494
|
return true;
|
@@ -6540,13 +6496,13 @@ class MigrateApplication {
|
|
6540
6496
|
path: _path + $join(key),
|
6541
6497
|
expected: "OpenApiV3_1.IOperation.IMediaType",
|
6542
6498
|
value: value
|
6543
|
-
})) && $
|
6499
|
+
})) && $vo172(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
6544
6500
|
path: _path + $join(key),
|
6545
6501
|
expected: "OpenApiV3_1.IOperation.IMediaType",
|
6546
6502
|
value: value
|
6547
6503
|
});
|
6548
6504
|
}).every(flag => flag)].every(flag => flag);
|
6549
|
-
const $
|
6505
|
+
const $vo172 = (input, _path, _exceptionable = true) => [undefined === input.schema || ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
6550
6506
|
path: _path + ".schema",
|
6551
6507
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
6552
6508
|
value: input.schema
|
@@ -6555,7 +6511,7 @@ class MigrateApplication {
|
|
6555
6511
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
6556
6512
|
value: input.schema
|
6557
6513
|
})].every(flag => flag);
|
6558
|
-
const $
|
6514
|
+
const $vo173 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
6559
6515
|
path: _path + ".$ref",
|
6560
6516
|
expected: "`#/components/requestBodies/${string}`",
|
6561
6517
|
value: input.$ref
|
@@ -6572,7 +6528,7 @@ class MigrateApplication {
|
|
6572
6528
|
expected: "(boolean | undefined)",
|
6573
6529
|
value: input.deprecated
|
6574
6530
|
})].every(flag => flag);
|
6575
|
-
const $
|
6531
|
+
const $vo174 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
6576
6532
|
const value = input[key];
|
6577
6533
|
if (undefined === value)
|
6578
6534
|
return true;
|
@@ -6580,17 +6536,17 @@ class MigrateApplication {
|
|
6580
6536
|
path: _path + $join(key),
|
6581
6537
|
expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/responses/${string}`> | OpenApiV3_1.IOperation.IResponse)",
|
6582
6538
|
value: value
|
6583
|
-
})) && $
|
6539
|
+
})) && $vu18(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
6584
6540
|
path: _path + $join(key),
|
6585
6541
|
expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/responses/${string}`> | OpenApiV3_1.IOperation.IResponse)",
|
6586
6542
|
value: value
|
6587
6543
|
});
|
6588
6544
|
}).every(flag => flag)].every(flag => flag);
|
6589
|
-
const $
|
6545
|
+
const $vo175 = (input, _path, _exceptionable = true) => [undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
|
6590
6546
|
path: _path + ".content",
|
6591
6547
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
6592
6548
|
value: input.content
|
6593
|
-
})) && $
|
6549
|
+
})) && $vo171(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
6594
6550
|
path: _path + ".content",
|
6595
6551
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
6596
6552
|
value: input.content
|
@@ -6598,7 +6554,7 @@ class MigrateApplication {
|
|
6598
6554
|
path: _path + ".headers",
|
6599
6555
|
expected: "(Record<string, IReference<`#/components/headers/${string}`> | Omit<IParameter, \"in\">> | undefined)",
|
6600
6556
|
value: input.headers
|
6601
|
-
})) && $
|
6557
|
+
})) && $vo176(input.headers, _path + ".headers", true && _exceptionable) || $report(_exceptionable, {
|
6602
6558
|
path: _path + ".headers",
|
6603
6559
|
expected: "(Record<string, IReference<`#/components/headers/${string}`> | Omit<IParameter, \"in\">> | undefined)",
|
6604
6560
|
value: input.headers
|
@@ -6607,7 +6563,7 @@ class MigrateApplication {
|
|
6607
6563
|
expected: "(string | undefined)",
|
6608
6564
|
value: input.description
|
6609
6565
|
})].every(flag => flag);
|
6610
|
-
const $
|
6566
|
+
const $vo176 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
6611
6567
|
const value = input[key];
|
6612
6568
|
if (undefined === value)
|
6613
6569
|
return true;
|
@@ -6615,20 +6571,16 @@ class MigrateApplication {
|
|
6615
6571
|
path: _path + $join(key),
|
6616
6572
|
expected: "(Omit<OpenApiV3_1.IOperation.IParameter, \"in\"> | OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`>)",
|
6617
6573
|
value: value
|
6618
|
-
})) && $
|
6574
|
+
})) && $vu19(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
6619
6575
|
path: _path + $join(key),
|
6620
6576
|
expected: "(Omit<OpenApiV3_1.IOperation.IParameter, \"in\"> | OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`>)",
|
6621
6577
|
value: value
|
6622
6578
|
});
|
6623
6579
|
}).every(flag => flag)].every(flag => flag);
|
6624
|
-
const $
|
6580
|
+
const $vo177 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
6625
6581
|
path: _path + ".description",
|
6626
6582
|
expected: "(string | undefined)",
|
6627
6583
|
value: input.description
|
6628
|
-
}), undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
6629
|
-
path: _path + ".name",
|
6630
|
-
expected: "(string | undefined)",
|
6631
|
-
value: input.name
|
6632
6584
|
}), undefined === input.required || "boolean" === typeof input.required || $report(_exceptionable, {
|
6633
6585
|
path: _path + ".required",
|
6634
6586
|
expected: "(boolean | undefined)",
|
@@ -6641,8 +6593,12 @@ class MigrateApplication {
|
|
6641
6593
|
path: _path + ".schema",
|
6642
6594
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6643
6595
|
value: input.schema
|
6596
|
+
}), undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
6597
|
+
path: _path + ".name",
|
6598
|
+
expected: "(string | undefined)",
|
6599
|
+
value: input.name
|
6644
6600
|
})].every(flag => flag);
|
6645
|
-
const $
|
6601
|
+
const $vo178 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
6646
6602
|
path: _path + ".$ref",
|
6647
6603
|
expected: "`#/components/responses/${string}`",
|
6648
6604
|
value: input.$ref
|
@@ -6659,7 +6615,7 @@ class MigrateApplication {
|
|
6659
6615
|
expected: "(boolean | undefined)",
|
6660
6616
|
value: input.deprecated
|
6661
6617
|
})].every(flag => flag);
|
6662
|
-
const $
|
6618
|
+
const $vo179 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
6663
6619
|
const value = input[key];
|
6664
6620
|
if (undefined === value)
|
6665
6621
|
return true;
|
@@ -6667,13 +6623,13 @@ class MigrateApplication {
|
|
6667
6623
|
path: _path + $join(key),
|
6668
6624
|
expected: "OpenApiV3_1.IOperation.IResponse",
|
6669
6625
|
value: value
|
6670
|
-
})) && $
|
6626
|
+
})) && $vo175(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
6671
6627
|
path: _path + $join(key),
|
6672
6628
|
expected: "OpenApiV3_1.IOperation.IResponse",
|
6673
6629
|
value: value
|
6674
6630
|
});
|
6675
6631
|
}).every(flag => flag)].every(flag => flag);
|
6676
|
-
const $
|
6632
|
+
const $vo180 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
6677
6633
|
const value = input[key];
|
6678
6634
|
if (undefined === value)
|
6679
6635
|
return true;
|
@@ -6681,13 +6637,13 @@ class MigrateApplication {
|
|
6681
6637
|
path: _path + $join(key),
|
6682
6638
|
expected: "OpenApiV3_1.IOperation.IParameter",
|
6683
6639
|
value: value
|
6684
|
-
})) && $
|
6640
|
+
})) && $vo166(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
6685
6641
|
path: _path + $join(key),
|
6686
6642
|
expected: "OpenApiV3_1.IOperation.IParameter",
|
6687
6643
|
value: value
|
6688
6644
|
});
|
6689
6645
|
}).every(flag => flag)].every(flag => flag);
|
6690
|
-
const $
|
6646
|
+
const $vo181 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
6691
6647
|
const value = input[key];
|
6692
6648
|
if (undefined === value)
|
6693
6649
|
return true;
|
@@ -6695,13 +6651,13 @@ class MigrateApplication {
|
|
6695
6651
|
path: _path + $join(key),
|
6696
6652
|
expected: "OpenApiV3_1.IOperation.IRequestBody",
|
6697
6653
|
value: value
|
6698
|
-
})) && $
|
6654
|
+
})) && $vo170(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
6699
6655
|
path: _path + $join(key),
|
6700
6656
|
expected: "OpenApiV3_1.IOperation.IRequestBody",
|
6701
6657
|
value: value
|
6702
6658
|
});
|
6703
6659
|
}).every(flag => flag)].every(flag => flag);
|
6704
|
-
const $
|
6660
|
+
const $vo182 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
6705
6661
|
const value = input[key];
|
6706
6662
|
if (undefined === value)
|
6707
6663
|
return true;
|
@@ -6709,17 +6665,17 @@ class MigrateApplication {
|
|
6709
6665
|
path: _path + $join(key),
|
6710
6666
|
expected: "(OpenApiV3_1.ISecurityScheme.IApiKey | OpenApiV3_1.ISecurityScheme.IHttpBasic | OpenApiV3_1.ISecurityScheme.IHttpBearer | OpenApiV3_1.ISecurityScheme.IOAuth2 | OpenApiV3_1.ISecurityScheme.IOpenId)",
|
6711
6667
|
value: value
|
6712
|
-
})) && $
|
6668
|
+
})) && $vu20(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
6713
6669
|
path: _path + $join(key),
|
6714
6670
|
expected: "(OpenApiV3_1.ISecurityScheme.IApiKey | OpenApiV3_1.ISecurityScheme.IHttpBasic | OpenApiV3_1.ISecurityScheme.IHttpBearer | OpenApiV3_1.ISecurityScheme.IOAuth2 | OpenApiV3_1.ISecurityScheme.IOpenId)",
|
6715
6671
|
value: value
|
6716
6672
|
});
|
6717
6673
|
}).every(flag => flag)].every(flag => flag);
|
6718
|
-
const $
|
6674
|
+
const $vo183 = (input, _path, _exceptionable = true) => ["apiKey" === input.type || $report(_exceptionable, {
|
6719
6675
|
path: _path + ".type",
|
6720
6676
|
expected: "\"apiKey\"",
|
6721
6677
|
value: input.type
|
6722
|
-
}), undefined === input["in"] || "
|
6678
|
+
}), undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
6723
6679
|
path: _path + "[\"in\"]",
|
6724
6680
|
expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
|
6725
6681
|
value: input["in"]
|
@@ -6732,7 +6688,7 @@ class MigrateApplication {
|
|
6732
6688
|
expected: "(string | undefined)",
|
6733
6689
|
value: input.description
|
6734
6690
|
})].every(flag => flag);
|
6735
|
-
const $
|
6691
|
+
const $vo184 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
|
6736
6692
|
path: _path + ".type",
|
6737
6693
|
expected: "\"http\"",
|
6738
6694
|
value: input.type
|
@@ -6745,7 +6701,7 @@ class MigrateApplication {
|
|
6745
6701
|
expected: "(string | undefined)",
|
6746
6702
|
value: input.description
|
6747
6703
|
})].every(flag => flag);
|
6748
|
-
const $
|
6704
|
+
const $vo185 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
|
6749
6705
|
path: _path + ".type",
|
6750
6706
|
expected: "\"http\"",
|
6751
6707
|
value: input.type
|
@@ -6762,7 +6718,7 @@ class MigrateApplication {
|
|
6762
6718
|
expected: "(string | undefined)",
|
6763
6719
|
value: input.description
|
6764
6720
|
})].every(flag => flag);
|
6765
|
-
const $
|
6721
|
+
const $vo186 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
6766
6722
|
path: _path + ".type",
|
6767
6723
|
expected: "\"oauth2\"",
|
6768
6724
|
value: input.type
|
@@ -6770,7 +6726,7 @@ class MigrateApplication {
|
|
6770
6726
|
path: _path + ".flows",
|
6771
6727
|
expected: "OpenApiV3_1.ISecurityScheme.IOAuth2.IFlowSet",
|
6772
6728
|
value: input.flows
|
6773
|
-
})) && $
|
6729
|
+
})) && $vo187(input.flows, _path + ".flows", true && _exceptionable) || $report(_exceptionable, {
|
6774
6730
|
path: _path + ".flows",
|
6775
6731
|
expected: "OpenApiV3_1.ISecurityScheme.IOAuth2.IFlowSet",
|
6776
6732
|
value: input.flows
|
@@ -6779,11 +6735,11 @@ class MigrateApplication {
|
|
6779
6735
|
expected: "(string | undefined)",
|
6780
6736
|
value: input.description
|
6781
6737
|
})].every(flag => flag);
|
6782
|
-
const $
|
6738
|
+
const $vo187 = (input, _path, _exceptionable = true) => [undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) || $report(_exceptionable, {
|
6783
6739
|
path: _path + ".authorizationCode",
|
6784
6740
|
expected: "(OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
6785
6741
|
value: input.authorizationCode
|
6786
|
-
})) && $
|
6742
|
+
})) && $vo188(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $report(_exceptionable, {
|
6787
6743
|
path: _path + ".authorizationCode",
|
6788
6744
|
expected: "(OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
6789
6745
|
value: input.authorizationCode
|
@@ -6791,7 +6747,7 @@ class MigrateApplication {
|
|
6791
6747
|
path: _path + ".implicit",
|
6792
6748
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
6793
6749
|
value: input.implicit
|
6794
|
-
})) && $
|
6750
|
+
})) && $vo189(input.implicit, _path + ".implicit", true && _exceptionable) || $report(_exceptionable, {
|
6795
6751
|
path: _path + ".implicit",
|
6796
6752
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
6797
6753
|
value: input.implicit
|
@@ -6799,7 +6755,7 @@ class MigrateApplication {
|
|
6799
6755
|
path: _path + ".password",
|
6800
6756
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
6801
6757
|
value: input.password
|
6802
|
-
})) && $
|
6758
|
+
})) && $vo190(input.password, _path + ".password", true && _exceptionable) || $report(_exceptionable, {
|
6803
6759
|
path: _path + ".password",
|
6804
6760
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
6805
6761
|
value: input.password
|
@@ -6807,12 +6763,12 @@ class MigrateApplication {
|
|
6807
6763
|
path: _path + ".clientCredentials",
|
6808
6764
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
6809
6765
|
value: input.clientCredentials
|
6810
|
-
})) && $
|
6766
|
+
})) && $vo190(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $report(_exceptionable, {
|
6811
6767
|
path: _path + ".clientCredentials",
|
6812
6768
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
6813
6769
|
value: input.clientCredentials
|
6814
6770
|
})].every(flag => flag);
|
6815
|
-
const $
|
6771
|
+
const $vo188 = (input, _path, _exceptionable = true) => [undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
6816
6772
|
path: _path + ".authorizationUrl",
|
6817
6773
|
expected: "(string | undefined)",
|
6818
6774
|
value: input.authorizationUrl
|
@@ -6833,15 +6789,7 @@ class MigrateApplication {
|
|
6833
6789
|
expected: "(Record<string, string> | undefined)",
|
6834
6790
|
value: input.scopes
|
6835
6791
|
})].every(flag => flag);
|
6836
|
-
const $
|
6837
|
-
path: _path + ".scopes",
|
6838
|
-
expected: "(Record<string, string> | undefined)",
|
6839
|
-
value: input.scopes
|
6840
|
-
})) && $vo28(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
6841
|
-
path: _path + ".scopes",
|
6842
|
-
expected: "(Record<string, string> | undefined)",
|
6843
|
-
value: input.scopes
|
6844
|
-
}), undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
6792
|
+
const $vo189 = (input, _path, _exceptionable = true) => [undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
6845
6793
|
path: _path + ".authorizationUrl",
|
6846
6794
|
expected: "(string | undefined)",
|
6847
6795
|
value: input.authorizationUrl
|
@@ -6849,8 +6797,7 @@ class MigrateApplication {
|
|
6849
6797
|
path: _path + ".refreshUrl",
|
6850
6798
|
expected: "(string | undefined)",
|
6851
6799
|
value: input.refreshUrl
|
6852
|
-
})
|
6853
|
-
const $vo192 = (input, _path, _exceptionable = true) => [undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
6800
|
+
}), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
6854
6801
|
path: _path + ".scopes",
|
6855
6802
|
expected: "(Record<string, string> | undefined)",
|
6856
6803
|
value: input.scopes
|
@@ -6858,7 +6805,8 @@ class MigrateApplication {
|
|
6858
6805
|
path: _path + ".scopes",
|
6859
6806
|
expected: "(Record<string, string> | undefined)",
|
6860
6807
|
value: input.scopes
|
6861
|
-
})
|
6808
|
+
})].every(flag => flag);
|
6809
|
+
const $vo190 = (input, _path, _exceptionable = true) => [undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $report(_exceptionable, {
|
6862
6810
|
path: _path + ".tokenUrl",
|
6863
6811
|
expected: "(string | undefined)",
|
6864
6812
|
value: input.tokenUrl
|
@@ -6866,8 +6814,16 @@ class MigrateApplication {
|
|
6866
6814
|
path: _path + ".refreshUrl",
|
6867
6815
|
expected: "(string | undefined)",
|
6868
6816
|
value: input.refreshUrl
|
6817
|
+
}), undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
6818
|
+
path: _path + ".scopes",
|
6819
|
+
expected: "(Record<string, string> | undefined)",
|
6820
|
+
value: input.scopes
|
6821
|
+
})) && $vo28(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
6822
|
+
path: _path + ".scopes",
|
6823
|
+
expected: "(Record<string, string> | undefined)",
|
6824
|
+
value: input.scopes
|
6869
6825
|
})].every(flag => flag);
|
6870
|
-
const $
|
6826
|
+
const $vo191 = (input, _path, _exceptionable = true) => ["openIdConnect" === input.type || $report(_exceptionable, {
|
6871
6827
|
path: _path + ".type",
|
6872
6828
|
expected: "\"openIdConnect\"",
|
6873
6829
|
value: input.type
|
@@ -6880,7 +6836,7 @@ class MigrateApplication {
|
|
6880
6836
|
expected: "(string | undefined)",
|
6881
6837
|
value: input.description
|
6882
6838
|
})].every(flag => flag);
|
6883
|
-
const $
|
6839
|
+
const $vo192 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
6884
6840
|
const value = input[key];
|
6885
6841
|
if (undefined === value)
|
6886
6842
|
return true;
|
@@ -6888,13 +6844,13 @@ class MigrateApplication {
|
|
6888
6844
|
path: _path + $join(key),
|
6889
6845
|
expected: "Omit<OpenApiV3_1.IOperation.IParameter, \"in\">",
|
6890
6846
|
value: value
|
6891
|
-
})) && $
|
6847
|
+
})) && $vo177(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
6892
6848
|
path: _path + $join(key),
|
6893
6849
|
expected: "Omit<OpenApiV3_1.IOperation.IParameter, \"in\">",
|
6894
6850
|
value: value
|
6895
6851
|
});
|
6896
6852
|
}).every(flag => flag)].every(flag => flag);
|
6897
|
-
const $
|
6853
|
+
const $vo193 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
6898
6854
|
const value = input[key];
|
6899
6855
|
if (undefined === value)
|
6900
6856
|
return true;
|
@@ -6902,13 +6858,13 @@ class MigrateApplication {
|
|
6902
6858
|
path: _path + $join(key),
|
6903
6859
|
expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/pathItems/${string}`> | OpenApiV3_1.IPath)",
|
6904
6860
|
value: value
|
6905
|
-
})) && $
|
6861
|
+
})) && $vu21(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
6906
6862
|
path: _path + $join(key),
|
6907
6863
|
expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/pathItems/${string}`> | OpenApiV3_1.IPath)",
|
6908
6864
|
value: value
|
6909
6865
|
});
|
6910
6866
|
}).every(flag => flag)].every(flag => flag);
|
6911
|
-
const $
|
6867
|
+
const $vo194 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/pathItems\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
6912
6868
|
path: _path + ".$ref",
|
6913
6869
|
expected: "`#/components/pathItems/${string}`",
|
6914
6870
|
value: input.$ref
|
@@ -6925,7 +6881,7 @@ class MigrateApplication {
|
|
6925
6881
|
expected: "(boolean | undefined)",
|
6926
6882
|
value: input.deprecated
|
6927
6883
|
})].every(flag => flag);
|
6928
|
-
const $
|
6884
|
+
const $vo195 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
6929
6885
|
path: _path + ".name",
|
6930
6886
|
expected: "string",
|
6931
6887
|
value: input.name
|
@@ -6986,109 +6942,109 @@ class MigrateApplication {
|
|
6986
6942
|
})();
|
6987
6943
|
const $vu2 = (input, _path, _exceptionable = true) => (() => {
|
6988
6944
|
if ("boolean" === input.type)
|
6989
|
-
return $
|
6945
|
+
return $vo49(input, _path, true && _exceptionable);
|
6990
6946
|
else if ("number" === input.type)
|
6991
|
-
return $
|
6947
|
+
return $vo51(input, _path, true && _exceptionable);
|
6992
6948
|
else if ("integer" === input.type)
|
6993
|
-
return $
|
6949
|
+
return $vo50(input, _path, true && _exceptionable);
|
6994
6950
|
else if ("string" === input.type)
|
6995
|
-
return $
|
6951
|
+
return $vo52(input, _path, true && _exceptionable);
|
6996
6952
|
else if ("array" === input.type)
|
6997
|
-
return $
|
6953
|
+
return $vo53(input, _path, true && _exceptionable);
|
6998
6954
|
else if ("object" === input.type)
|
6999
|
-
return $
|
6955
|
+
return $vo54(input, _path, true && _exceptionable);
|
7000
6956
|
else if (undefined !== input.$ref)
|
7001
|
-
return $
|
6957
|
+
return $vo55(input, _path, true && _exceptionable);
|
7002
6958
|
else if ("null" === input.type)
|
7003
|
-
return $
|
6959
|
+
return $vo57(input, _path, true && _exceptionable);
|
7004
6960
|
else if (undefined !== input["x-anyOf"])
|
7005
|
-
return $
|
6961
|
+
return $vo58(input, _path, true && _exceptionable);
|
7006
6962
|
else if (undefined !== input["x-oneOf"])
|
7007
|
-
return $
|
6963
|
+
return $vo59(input, _path, true && _exceptionable);
|
7008
6964
|
else
|
7009
|
-
return $
|
6965
|
+
return $vo56(input, _path, true && _exceptionable);
|
7010
6966
|
})();
|
7011
6967
|
const $vu3 = (input, _path, _exceptionable = true) => (() => {
|
7012
6968
|
if ("boolean" === input.type)
|
7013
|
-
return $
|
6969
|
+
return $vo61(input, _path, true && _exceptionable);
|
7014
6970
|
else if ("number" === input.type)
|
7015
|
-
return $
|
6971
|
+
return $vo63(input, _path, true && _exceptionable);
|
7016
6972
|
else if ("integer" === input.type)
|
7017
|
-
return $
|
6973
|
+
return $vo62(input, _path, true && _exceptionable);
|
7018
6974
|
else if ("string" === input.type)
|
7019
|
-
return $
|
6975
|
+
return $vo64(input, _path, true && _exceptionable);
|
7020
6976
|
else if ("array" === input.type)
|
7021
|
-
return $
|
6977
|
+
return $vo65(input, _path, true && _exceptionable);
|
7022
6978
|
else if ("object" === input.type)
|
7023
|
-
return $
|
6979
|
+
return $vo66(input, _path, true && _exceptionable);
|
7024
6980
|
else if ("null" === input.type)
|
7025
|
-
return $
|
6981
|
+
return $vo69(input, _path, true && _exceptionable);
|
7026
6982
|
else if (undefined !== input["x-anyOf"])
|
7027
|
-
return $
|
6983
|
+
return $vo70(input, _path, true && _exceptionable);
|
7028
6984
|
else if (undefined !== input["x-oneOf"])
|
7029
|
-
return $
|
6985
|
+
return $vo71(input, _path, true && _exceptionable);
|
7030
6986
|
else if (undefined !== input.schema)
|
7031
|
-
return $
|
6987
|
+
return $vo72(input, _path, true && _exceptionable);
|
7032
6988
|
else
|
7033
|
-
return $
|
6989
|
+
return $vo67(input, _path, false && _exceptionable) || $vo68(input, _path, false && _exceptionable) || $vo84(input, _path, false && _exceptionable);
|
7034
6990
|
})();
|
7035
6991
|
const $vu4 = (input, _path, _exceptionable = true) => (() => {
|
7036
6992
|
if ("boolean" === input.type)
|
7037
|
-
return $
|
6993
|
+
return $vo61(input, _path, true && _exceptionable);
|
7038
6994
|
else if ("number" === input.type)
|
7039
|
-
return $
|
6995
|
+
return $vo63(input, _path, true && _exceptionable);
|
7040
6996
|
else if ("integer" === input.type)
|
7041
|
-
return $
|
6997
|
+
return $vo62(input, _path, true && _exceptionable);
|
7042
6998
|
else if ("string" === input.type)
|
7043
|
-
return $
|
6999
|
+
return $vo64(input, _path, true && _exceptionable);
|
7044
7000
|
else if ("array" === input.type)
|
7045
|
-
return $
|
7001
|
+
return $vo65(input, _path, true && _exceptionable);
|
7046
7002
|
else if ("object" === input.type)
|
7047
|
-
return $
|
7003
|
+
return $vo66(input, _path, true && _exceptionable);
|
7048
7004
|
else if ("null" === input.type)
|
7049
|
-
return $
|
7005
|
+
return $vo69(input, _path, true && _exceptionable);
|
7050
7006
|
else if (undefined !== input["x-anyOf"])
|
7051
|
-
return $
|
7007
|
+
return $vo70(input, _path, true && _exceptionable);
|
7052
7008
|
else if (undefined !== input["x-oneOf"])
|
7053
|
-
return $
|
7009
|
+
return $vo71(input, _path, true && _exceptionable);
|
7054
7010
|
else if (undefined !== input.schema)
|
7055
|
-
return $
|
7011
|
+
return $vo72(input, _path, true && _exceptionable);
|
7056
7012
|
else
|
7057
|
-
return $
|
7013
|
+
return $vo67(input, _path, false && _exceptionable) || $vo68(input, _path, false && _exceptionable) || $vo86(input, _path, false && _exceptionable);
|
7058
7014
|
})();
|
7059
7015
|
const $vu5 = (input, _path, _exceptionable = true) => (() => {
|
7060
7016
|
if ("boolean" === input.type)
|
7061
|
-
return $
|
7017
|
+
return $vo99(input, _path, true && _exceptionable);
|
7062
7018
|
else if ("number" === input.type)
|
7063
|
-
return $
|
7019
|
+
return $vo101(input, _path, true && _exceptionable);
|
7064
7020
|
else if ("integer" === input.type)
|
7065
|
-
return $
|
7021
|
+
return $vo100(input, _path, true && _exceptionable);
|
7066
7022
|
else if ("string" === input.type)
|
7067
|
-
return $
|
7023
|
+
return $vo102(input, _path, true && _exceptionable);
|
7068
7024
|
else if ("array" === input.type)
|
7069
|
-
return $
|
7025
|
+
return $vo103(input, _path, true && _exceptionable);
|
7070
7026
|
else if ("object" === input.type)
|
7071
|
-
return $
|
7027
|
+
return $vo104(input, _path, true && _exceptionable);
|
7072
7028
|
else if (undefined !== input.$ref)
|
7073
|
-
return $
|
7029
|
+
return $vo105(input, _path, true && _exceptionable);
|
7074
7030
|
else if ("null" === input.type)
|
7075
|
-
return $
|
7031
|
+
return $vo107(input, _path, true && _exceptionable);
|
7076
7032
|
else if (undefined !== input.allOf)
|
7077
|
-
return $
|
7033
|
+
return $vo108(input, _path, true && _exceptionable);
|
7078
7034
|
else if (undefined !== input.anyOf)
|
7079
|
-
return $
|
7035
|
+
return $vo109(input, _path, true && _exceptionable);
|
7080
7036
|
else if (undefined !== input.oneOf)
|
7081
|
-
return $
|
7037
|
+
return $vo110(input, _path, true && _exceptionable);
|
7082
7038
|
else
|
7083
|
-
return $
|
7039
|
+
return $vo106(input, _path, true && _exceptionable);
|
7084
7040
|
})();
|
7085
7041
|
const $vu6 = (input, _path, _exceptionable = true) => (() => {
|
7086
7042
|
if (undefined !== input["in"])
|
7087
|
-
return $
|
7043
|
+
return $vo119(input, _path, true && _exceptionable);
|
7088
7044
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref))
|
7089
|
-
return $
|
7045
|
+
return $vo135(input, _path, true && _exceptionable);
|
7090
7046
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref))
|
7091
|
-
return $
|
7047
|
+
return $vo117(input, _path, true && _exceptionable);
|
7092
7048
|
else
|
7093
7049
|
return $report(_exceptionable, {
|
7094
7050
|
path: _path,
|
@@ -7098,44 +7054,44 @@ class MigrateApplication {
|
|
7098
7054
|
})();
|
7099
7055
|
const $vu7 = (input, _path, _exceptionable = true) => (() => {
|
7100
7056
|
if (Array.isArray(input.type) && input.type.map((elem, _index81) => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem).every(flag => flag))
|
7101
|
-
return $
|
7057
|
+
return $vo150(input, _path, true && _exceptionable);
|
7102
7058
|
else if ("boolean" === input.type)
|
7103
|
-
return $
|
7059
|
+
return $vo152(input, _path, true && _exceptionable);
|
7104
7060
|
else if ("number" === input.type)
|
7105
|
-
return $
|
7061
|
+
return $vo154(input, _path, true && _exceptionable);
|
7106
7062
|
else if ("integer" === input.type)
|
7107
|
-
return $
|
7063
|
+
return $vo153(input, _path, true && _exceptionable);
|
7108
7064
|
else if ("string" === input.type)
|
7109
|
-
return $
|
7065
|
+
return $vo155(input, _path, true && _exceptionable);
|
7110
7066
|
else if ("array" === input.type)
|
7111
|
-
return $
|
7067
|
+
return $vo156(input, _path, true && _exceptionable);
|
7112
7068
|
else if ("object" === input.type)
|
7113
|
-
return $
|
7069
|
+
return $vo157(input, _path, true && _exceptionable);
|
7114
7070
|
else if (undefined !== input.$ref)
|
7115
|
-
return $
|
7071
|
+
return $vo158(input, _path, true && _exceptionable);
|
7116
7072
|
else if ("null" === input.type)
|
7117
|
-
return $
|
7073
|
+
return $vo160(input, _path, true && _exceptionable);
|
7118
7074
|
else
|
7119
7075
|
return (() => {
|
7120
7076
|
if (undefined !== input["const"])
|
7121
|
-
return $
|
7077
|
+
return $vo151(input, _path, true && _exceptionable);
|
7122
7078
|
else if (undefined !== input.allOf)
|
7123
|
-
return $
|
7079
|
+
return $vo161(input, _path, true && _exceptionable);
|
7124
7080
|
else if (undefined !== input.anyOf)
|
7125
|
-
return $
|
7081
|
+
return $vo162(input, _path, true && _exceptionable);
|
7126
7082
|
else if (undefined !== input.oneOf)
|
7127
|
-
return $
|
7083
|
+
return $vo163(input, _path, true && _exceptionable);
|
7128
7084
|
else
|
7129
|
-
return $
|
7085
|
+
return $vo159(input, _path, true && _exceptionable);
|
7130
7086
|
})();
|
7131
7087
|
})();
|
7132
7088
|
const $vu8 = (input, _path, _exceptionable = true) => (() => {
|
7133
7089
|
if (undefined !== input["in"])
|
7134
|
-
return $
|
7090
|
+
return $vo166(input, _path, true && _exceptionable);
|
7135
7091
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref))
|
7136
|
-
return $
|
7092
|
+
return $vo168(input, _path, true && _exceptionable);
|
7137
7093
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref))
|
7138
|
-
return $
|
7094
|
+
return $vo167(input, _path, true && _exceptionable);
|
7139
7095
|
else
|
7140
7096
|
return $report(_exceptionable, {
|
7141
7097
|
path: _path,
|
@@ -7162,50 +7118,44 @@ class MigrateApplication {
|
|
7162
7118
|
});
|
7163
7119
|
})();
|
7164
7120
|
const $vu10 = (input, _path, _exceptionable = true) => (() => {
|
7165
|
-
if (undefined !== input.$ref)
|
7166
|
-
return $vo44(input, _path, true && _exceptionable);
|
7167
|
-
else
|
7168
|
-
return $vo33(input, _path, true && _exceptionable);
|
7169
|
-
})();
|
7170
|
-
const $vu11 = (input, _path, _exceptionable = true) => (() => {
|
7171
7121
|
if ("boolean" === input.type)
|
7172
|
-
return $
|
7122
|
+
return $vo61(input, _path, true && _exceptionable);
|
7173
7123
|
else if ("number" === input.type)
|
7174
|
-
return $
|
7124
|
+
return $vo63(input, _path, true && _exceptionable);
|
7175
7125
|
else if ("integer" === input.type)
|
7176
|
-
return $
|
7126
|
+
return $vo62(input, _path, true && _exceptionable);
|
7177
7127
|
else if ("string" === input.type)
|
7178
|
-
return $
|
7128
|
+
return $vo64(input, _path, true && _exceptionable);
|
7179
7129
|
else if ("array" === input.type)
|
7180
|
-
return $
|
7130
|
+
return $vo65(input, _path, true && _exceptionable);
|
7181
7131
|
else if ("object" === input.type)
|
7182
|
-
return $
|
7132
|
+
return $vo66(input, _path, true && _exceptionable);
|
7183
7133
|
else if (undefined !== input.$ref)
|
7184
|
-
return $
|
7134
|
+
return $vo67(input, _path, true && _exceptionable);
|
7185
7135
|
else if ("null" === input.type)
|
7186
|
-
return $
|
7136
|
+
return $vo69(input, _path, true && _exceptionable);
|
7187
7137
|
else if (undefined !== input["x-anyOf"])
|
7188
|
-
return $
|
7138
|
+
return $vo70(input, _path, true && _exceptionable);
|
7189
7139
|
else if (undefined !== input["x-oneOf"])
|
7190
|
-
return $
|
7140
|
+
return $vo71(input, _path, true && _exceptionable);
|
7191
7141
|
else if (undefined !== input.schema)
|
7192
|
-
return $
|
7142
|
+
return $vo72(input, _path, true && _exceptionable);
|
7193
7143
|
else
|
7194
|
-
return $
|
7144
|
+
return $vo68(input, _path, true && _exceptionable);
|
7195
7145
|
})();
|
7196
|
-
const $
|
7146
|
+
const $vu11 = (input, _path, _exceptionable = true) => (() => {
|
7197
7147
|
if ("apiKey" === input.type)
|
7198
|
-
return $
|
7148
|
+
return $vo76(input, _path, true && _exceptionable);
|
7199
7149
|
else if ("basic" === input.type)
|
7200
|
-
return $
|
7150
|
+
return $vo77(input, _path, true && _exceptionable);
|
7201
7151
|
else if ("implicit" === input.flow)
|
7202
|
-
return $
|
7152
|
+
return $vo78(input, _path, true && _exceptionable);
|
7203
7153
|
else if ("accessCode" === input.flow)
|
7204
|
-
return $
|
7154
|
+
return $vo79(input, _path, true && _exceptionable);
|
7205
7155
|
else if ("application" === input.flow)
|
7206
|
-
return $
|
7156
|
+
return $vo81(input, _path, true && _exceptionable);
|
7207
7157
|
else if ("password" === input.flow)
|
7208
|
-
return $
|
7158
|
+
return $vo80(input, _path, true && _exceptionable);
|
7209
7159
|
else
|
7210
7160
|
return $report(_exceptionable, {
|
7211
7161
|
path: _path,
|
@@ -7213,17 +7163,17 @@ class MigrateApplication {
|
|
7213
7163
|
value: input
|
7214
7164
|
});
|
7215
7165
|
})();
|
7216
|
-
const $
|
7166
|
+
const $vu12 = (input, _path, _exceptionable = true) => (() => {
|
7217
7167
|
if (undefined !== input.$ref)
|
7218
|
-
return $
|
7168
|
+
return $vo88(input, _path, true && _exceptionable);
|
7219
7169
|
else
|
7220
|
-
return $
|
7170
|
+
return $vo74(input, _path, true && _exceptionable);
|
7221
7171
|
})();
|
7222
|
-
const $
|
7172
|
+
const $vu13 = (input, _path, _exceptionable = true) => (() => {
|
7223
7173
|
if (undefined !== input.schema)
|
7224
|
-
return $
|
7174
|
+
return $vo116(input, _path, true && _exceptionable);
|
7225
7175
|
else if (undefined !== input.$ref)
|
7226
|
-
return $
|
7176
|
+
return $vo117(input, _path, true && _exceptionable);
|
7227
7177
|
else
|
7228
7178
|
return $report(_exceptionable, {
|
7229
7179
|
path: _path,
|
@@ -7231,17 +7181,17 @@ class MigrateApplication {
|
|
7231
7181
|
value: input
|
7232
7182
|
});
|
7233
7183
|
})();
|
7234
|
-
const $
|
7184
|
+
const $vu14 = (input, _path, _exceptionable = true) => (() => {
|
7235
7185
|
if ("apiKey" === input.type)
|
7236
|
-
return $
|
7186
|
+
return $vo123(input, _path, true && _exceptionable);
|
7237
7187
|
else if ("basic" === input.scheme)
|
7238
|
-
return $
|
7188
|
+
return $vo124(input, _path, true && _exceptionable);
|
7239
7189
|
else if ("bearer" === input.scheme)
|
7240
|
-
return $
|
7190
|
+
return $vo125(input, _path, true && _exceptionable);
|
7241
7191
|
else if ("oauth2" === input.type)
|
7242
|
-
return $
|
7192
|
+
return $vo126(input, _path, true && _exceptionable);
|
7243
7193
|
else if ("openIdConnect" === input.type)
|
7244
|
-
return $
|
7194
|
+
return $vo131(input, _path, true && _exceptionable);
|
7245
7195
|
else
|
7246
7196
|
return $report(_exceptionable, {
|
7247
7197
|
path: _path,
|
@@ -7249,35 +7199,35 @@ class MigrateApplication {
|
|
7249
7199
|
value: input
|
7250
7200
|
});
|
7251
7201
|
})();
|
7202
|
+
const $vu15 = (input, _path, _exceptionable = true) => (() => {
|
7203
|
+
if (undefined !== input.$ref)
|
7204
|
+
return $vo137(input, _path, true && _exceptionable);
|
7205
|
+
else
|
7206
|
+
return $vo121(input, _path, true && _exceptionable);
|
7207
|
+
})();
|
7252
7208
|
const $vu16 = (input, _path, _exceptionable = true) => (() => {
|
7253
7209
|
if (undefined !== input.$ref)
|
7254
7210
|
return $vo139(input, _path, true && _exceptionable);
|
7255
7211
|
else
|
7256
|
-
return $
|
7212
|
+
return $vo112(input, _path, true && _exceptionable);
|
7257
7213
|
})();
|
7258
7214
|
const $vu17 = (input, _path, _exceptionable = true) => (() => {
|
7259
7215
|
if (undefined !== input.$ref)
|
7260
|
-
return $
|
7216
|
+
return $vo173(input, _path, true && _exceptionable);
|
7261
7217
|
else
|
7262
|
-
return $
|
7218
|
+
return $vo170(input, _path, true && _exceptionable);
|
7263
7219
|
})();
|
7264
7220
|
const $vu18 = (input, _path, _exceptionable = true) => (() => {
|
7265
7221
|
if (undefined !== input.$ref)
|
7266
|
-
return $
|
7222
|
+
return $vo178(input, _path, true && _exceptionable);
|
7267
7223
|
else
|
7268
|
-
return $
|
7224
|
+
return $vo175(input, _path, true && _exceptionable);
|
7269
7225
|
})();
|
7270
7226
|
const $vu19 = (input, _path, _exceptionable = true) => (() => {
|
7271
7227
|
if (undefined !== input.$ref)
|
7272
|
-
return $
|
7273
|
-
else
|
7274
|
-
return $vo177(input, _path, true && _exceptionable);
|
7275
|
-
})();
|
7276
|
-
const $vu20 = (input, _path, _exceptionable = true) => (() => {
|
7277
|
-
if (undefined !== input.$ref)
|
7278
|
-
return $vo169(input, _path, true && _exceptionable);
|
7228
|
+
return $vo167(input, _path, true && _exceptionable);
|
7279
7229
|
else if (undefined !== input.schema)
|
7280
|
-
return $
|
7230
|
+
return $vo177(input, _path, true && _exceptionable);
|
7281
7231
|
else
|
7282
7232
|
return $report(_exceptionable, {
|
7283
7233
|
path: _path,
|
@@ -7285,17 +7235,17 @@ class MigrateApplication {
|
|
7285
7235
|
value: input
|
7286
7236
|
});
|
7287
7237
|
})();
|
7288
|
-
const $
|
7238
|
+
const $vu20 = (input, _path, _exceptionable = true) => (() => {
|
7289
7239
|
if ("apiKey" === input.type)
|
7290
|
-
return $
|
7240
|
+
return $vo183(input, _path, true && _exceptionable);
|
7291
7241
|
else if ("basic" === input.scheme)
|
7292
|
-
return $
|
7242
|
+
return $vo184(input, _path, true && _exceptionable);
|
7293
7243
|
else if ("bearer" === input.scheme)
|
7294
|
-
return $
|
7244
|
+
return $vo185(input, _path, true && _exceptionable);
|
7295
7245
|
else if ("oauth2" === input.type)
|
7296
|
-
return $
|
7246
|
+
return $vo186(input, _path, true && _exceptionable);
|
7297
7247
|
else if ("openIdConnect" === input.type)
|
7298
|
-
return $
|
7248
|
+
return $vo191(input, _path, true && _exceptionable);
|
7299
7249
|
else
|
7300
7250
|
return $report(_exceptionable, {
|
7301
7251
|
path: _path,
|
@@ -7303,21 +7253,21 @@ class MigrateApplication {
|
|
7303
7253
|
value: input
|
7304
7254
|
});
|
7305
7255
|
})();
|
7306
|
-
const $
|
7256
|
+
const $vu21 = (input, _path, _exceptionable = true) => (() => {
|
7307
7257
|
if (undefined !== input.$ref)
|
7308
|
-
return $
|
7258
|
+
return $vo194(input, _path, true && _exceptionable);
|
7309
7259
|
else
|
7310
|
-
return $
|
7260
|
+
return $vo165(input, _path, true && _exceptionable);
|
7311
7261
|
})();
|
7312
|
-
const $
|
7262
|
+
const $vu22 = (input, _path, _exceptionable = true) => (() => {
|
7313
7263
|
if (undefined !== input["x-samchon-emended"])
|
7314
7264
|
return $vo0(input, _path, true && _exceptionable);
|
7315
7265
|
else if (undefined !== input.swagger)
|
7316
|
-
return $
|
7266
|
+
return $vo44(input, _path, true && _exceptionable);
|
7317
7267
|
else if (null !== input.openapi && undefined !== input.openapi && ("3.0" === input.openapi || "string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi)))
|
7318
|
-
return $
|
7268
|
+
return $vo90(input, _path, true && _exceptionable);
|
7319
7269
|
else if ("string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi))
|
7320
|
-
return $
|
7270
|
+
return $vo141(input, _path, true && _exceptionable);
|
7321
7271
|
else
|
7322
7272
|
return $report(_exceptionable, {
|
7323
7273
|
path: _path,
|
@@ -7329,7 +7279,7 @@ class MigrateApplication {
|
|
7329
7279
|
path: _path + "",
|
7330
7280
|
expected: "(OpenApi.IDocument | OpenApiV3.IDocument | OpenApiV3_1.IDocument | SwaggerV2.IDocument)",
|
7331
7281
|
value: input
|
7332
|
-
})) && $
|
7282
|
+
})) && $vu22(input, _path + "", true) || $report(true, {
|
7333
7283
|
path: _path + "",
|
7334
7284
|
expected: "(OpenApi.IDocument | OpenApiV3.IDocument | OpenApiV3_1.IDocument | SwaggerV2.IDocument)",
|
7335
7285
|
value: input
|
@@ -7356,7 +7306,6 @@ class MigrateApplication {
|
|
7356
7306
|
const program = MigrateAnalyzer_1.MigrateAnalyzer.analyze({
|
7357
7307
|
mode: "nest",
|
7358
7308
|
document: this.document,
|
7359
|
-
dictionary: new Map(),
|
7360
7309
|
simulate: config.simulate,
|
7361
7310
|
e2e: config.e2e,
|
7362
7311
|
});
|
@@ -7368,13 +7317,13 @@ class MigrateApplication {
|
|
7368
7317
|
...MigrateApiProgrammer_1.MigrateApiProgrammer.write(program),
|
7369
7318
|
...(config.e2e ? MigrateE2eProgrammer_1.MigrateE2eProgrammer.write(program) : []),
|
7370
7319
|
],
|
7320
|
+
errors: program.errors,
|
7371
7321
|
};
|
7372
7322
|
}
|
7373
7323
|
sdk(config) {
|
7374
7324
|
const program = MigrateAnalyzer_1.MigrateAnalyzer.analyze({
|
7375
7325
|
mode: "sdk",
|
7376
7326
|
document: this.document,
|
7377
|
-
dictionary: new Map(),
|
7378
7327
|
simulate: config.simulate,
|
7379
7328
|
e2e: config.e2e,
|
7380
7329
|
});
|
@@ -7391,6 +7340,7 @@ class MigrateApplication {
|
|
7391
7340
|
content: JSON.stringify(this.document, null, 2),
|
7392
7341
|
},
|
7393
7342
|
],
|
7343
|
+
errors: program.errors,
|
7394
7344
|
};
|
7395
7345
|
}
|
7396
7346
|
}
|