@nestia/migrate 0.13.0-dev.20240411 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/MigrateApplication.js +776 -710
- package/lib/MigrateApplication.js.map +1 -1
- package/lib/bundles/NEST_TEMPLATE.js +2 -2
- package/lib/bundles/NEST_TEMPLATE.js.map +1 -1
- package/lib/bundles/SDK_TEMPLATE.js +1 -1
- package/lib/bundles/SDK_TEMPLATE.js.map +1 -1
- package/lib/programmers/MigrateSchemaProgrammer.js +26 -26
- package/package.json +6 -6
- package/src/bundles/NEST_TEMPLATE.ts +2 -2
- package/src/bundles/SDK_TEMPLATE.ts +1 -1
@@ -31,618 +31,621 @@ class MigrateApplication {
|
|
31
31
|
const result = (input => {
|
32
32
|
const errors = [];
|
33
33
|
const __is = input => {
|
34
|
-
const $io0 = 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.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) && $
|
35
|
-
const $io1 = input =>
|
34
|
+
const $io0 = 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 && $io1(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) && $io4(input.definitions)) && (undefined === input.parameters || "object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) && $io17(input.parameters)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io31(input.responses)) && (undefined === input.securityDefinitions || "object" === typeof input.securityDefinitions && null !== input.securityDefinitions && false === Array.isArray(input.securityDefinitions) && $io33(input.securityDefinitions)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io41(elem))) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io42(input.paths)) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && $io49(elem)));
|
35
|
+
const $io1 = 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) && $io2(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io3(input.license)) && "string" === typeof input.version;
|
36
|
+
const $io2 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email);
|
37
|
+
const $io3 = input => "string" === typeof input.name && (undefined === input.url || "string" === typeof input.url);
|
38
|
+
const $io4 = input => Object.keys(input).every(key => {
|
36
39
|
const value = input[key];
|
37
40
|
if (undefined === value)
|
38
41
|
return true;
|
39
42
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu0(value);
|
40
43
|
});
|
41
|
-
const $
|
42
|
-
const $
|
43
|
-
const $
|
44
|
-
const $
|
45
|
-
const $
|
46
|
-
const $
|
47
|
-
const $
|
48
|
-
const $
|
49
|
-
const $
|
50
|
-
const $
|
51
|
-
const $
|
52
|
-
const $
|
53
|
-
const $
|
44
|
+
const $io5 = 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);
|
45
|
+
const $io6 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295)) && "integer" === input.type && (undefined === input["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);
|
46
|
+
const $io7 = input => (undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf) && "number" === input.type && (undefined === input["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);
|
47
|
+
const $io8 = input => (undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "string" === typeof elem)) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295)) && "string" === input.type && (undefined === input["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);
|
48
|
+
const $io9 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu0(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 <= 4294967295)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295)) && "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);
|
49
|
+
const $io10 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io4(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && $iu0(input.additionalProperties))) && (undefined === input.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);
|
50
|
+
const $io11 = 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);
|
51
|
+
const $io12 = 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);
|
52
|
+
const $io13 = 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);
|
53
|
+
const $io14 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
54
|
+
const $io15 = input => Array.isArray(input["x-anyOf"]) && input["x-anyOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
55
|
+
const $io16 = input => Array.isArray(input["x-oneOf"]) && input["x-oneOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
56
|
+
const $io17 = input => Object.keys(input).every(key => {
|
54
57
|
const value = input[key];
|
55
58
|
if (undefined === value)
|
56
59
|
return true;
|
57
60
|
return "object" === typeof value && null !== value && $iu7(value);
|
58
61
|
});
|
59
|
-
const $
|
60
|
-
const $
|
61
|
-
const $
|
62
|
-
const $
|
63
|
-
const $
|
64
|
-
const $
|
65
|
-
const $
|
66
|
-
const $
|
67
|
-
const $
|
68
|
-
const $
|
69
|
-
const $
|
70
|
-
const $
|
71
|
-
const $
|
72
|
-
const $
|
62
|
+
const $io18 = 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"];
|
63
|
+
const $io19 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295)) && "integer" === input.type && (undefined === input["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"];
|
64
|
+
const $io20 = input => (undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf) && "number" === input.type && (undefined === input["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"];
|
65
|
+
const $io21 = input => (undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "string" === typeof elem)) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295)) && "string" === input.type && (undefined === input["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"];
|
66
|
+
const $io22 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu0(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 <= 4294967295)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295)) && "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"];
|
67
|
+
const $io23 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io4(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && $iu0(input.additionalProperties))) && (undefined === input.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"];
|
68
|
+
const $io24 = 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"];
|
69
|
+
const $io25 = 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"];
|
70
|
+
const $io26 = 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"];
|
71
|
+
const $io27 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
72
|
+
const $io28 = input => Array.isArray(input["x-anyOf"]) && input["x-anyOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
73
|
+
const $io29 = input => Array.isArray(input["x-oneOf"]) && input["x-oneOf"].every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && "string" === typeof input.name && "string" === typeof input["in"];
|
74
|
+
const $io30 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema) && "string" === typeof input.name && "string" === typeof input["in"] && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required);
|
75
|
+
const $io31 = input => Object.keys(input).every(key => {
|
73
76
|
const value = input[key];
|
74
77
|
if (undefined === value)
|
75
78
|
return true;
|
76
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
79
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io32(value);
|
77
80
|
});
|
78
|
-
const $
|
79
|
-
const $
|
81
|
+
const $io32 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io4(input.headers)) && (undefined === input.schema || "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema));
|
82
|
+
const $io33 = input => Object.keys(input).every(key => {
|
80
83
|
const value = input[key];
|
81
84
|
if (undefined === value)
|
82
85
|
return true;
|
83
86
|
return "object" === typeof value && null !== value && $iu8(value);
|
84
87
|
});
|
85
|
-
const $
|
86
|
-
const $
|
87
|
-
const $
|
88
|
-
const $
|
88
|
+
const $io34 = input => "apiKey" === input.type && (undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description);
|
89
|
+
const $io35 = input => "basic" === input.type && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description);
|
90
|
+
const $io36 = 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) && $io37(input.scopes)) && (undefined === input.description || "string" === typeof input.description);
|
91
|
+
const $io37 = input => Object.keys(input).every(key => {
|
89
92
|
const value = input[key];
|
90
93
|
if (undefined === value)
|
91
94
|
return true;
|
92
95
|
return "string" === typeof value;
|
93
96
|
});
|
94
|
-
const $
|
95
|
-
const $
|
96
|
-
const $
|
97
|
-
const $
|
97
|
+
const $io38 = 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) && $io37(input.scopes)) && (undefined === input.description || "string" === typeof input.description);
|
98
|
+
const $io39 = 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) && $io37(input.scopes)) && (undefined === input.description || "string" === typeof input.description);
|
99
|
+
const $io40 = 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) && $io37(input.scopes)) && (undefined === input.description || "string" === typeof input.description);
|
100
|
+
const $io41 = input => Object.keys(input).every(key => {
|
98
101
|
const value = input[key];
|
99
102
|
if (undefined === value)
|
100
103
|
return true;
|
101
104
|
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
102
105
|
});
|
103
|
-
const $
|
106
|
+
const $io42 = input => Object.keys(input).every(key => {
|
104
107
|
const value = input[key];
|
105
108
|
if (undefined === value)
|
106
109
|
return true;
|
107
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
110
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io43(value);
|
108
111
|
});
|
109
|
-
const $
|
110
|
-
const $
|
111
|
-
const $
|
112
|
-
const $
|
113
|
-
const $
|
112
|
+
const $io43 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu1(elem))) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io45(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io45(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io45(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io45(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io45(input.options)) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && $io45(input.head)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io45(input.patch)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && $io45(input.trace));
|
113
|
+
const $io44 = 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);
|
114
|
+
const $io45 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu2(elem))) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io47(input.responses)) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io41(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
115
|
+
const $io46 = 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);
|
116
|
+
const $io47 = input => Object.keys(input).every(key => {
|
114
117
|
const value = input[key];
|
115
118
|
if (undefined === value)
|
116
119
|
return true;
|
117
120
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu9(value);
|
118
121
|
});
|
119
|
-
const $
|
120
|
-
const $
|
121
|
-
const $
|
122
|
-
const $
|
123
|
-
const $
|
122
|
+
const $io48 = 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);
|
123
|
+
const $io49 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
124
|
+
const $io50 = 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 && $io51(elem))) && (undefined === input.info || "object" === typeof input.info && null !== input.info && $io54(input.info)) && (undefined === input.components || "object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && $io57(input.components)) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io93(input.paths)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io41(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && $io100(elem)));
|
125
|
+
const $io51 = 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) && $io52(input.variables));
|
126
|
+
const $io52 = input => Object.keys(input).every(key => {
|
124
127
|
const value = input[key];
|
125
128
|
if (undefined === value)
|
126
129
|
return true;
|
127
|
-
return "object" === typeof value && null !== value && $
|
130
|
+
return "object" === typeof value && null !== value && $io53(value);
|
128
131
|
});
|
129
|
-
const $
|
130
|
-
const $
|
131
|
-
const $
|
132
|
-
const $
|
133
|
-
const $
|
134
|
-
const $
|
132
|
+
const $io53 = 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);
|
133
|
+
const $io54 = 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) && $io55(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io56(input.license)) && "string" === typeof input.version;
|
134
|
+
const $io55 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email);
|
135
|
+
const $io56 = input => "string" === typeof input.name && (undefined === input.url || "string" === typeof input.url);
|
136
|
+
const $io57 = input => (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && $io58(input.schemas)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io71(input.responses)) && (undefined === input.parameters || "object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) && $io78(input.parameters)) && (undefined === input.requestBodies || "object" === typeof input.requestBodies && null !== input.requestBodies && false === Array.isArray(input.requestBodies) && $io80(input.requestBodies)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && $io82(input.securitySchemes)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io92(input.headers));
|
137
|
+
const $io58 = input => Object.keys(input).every(key => {
|
135
138
|
const value = input[key];
|
136
139
|
if (undefined === value)
|
137
140
|
return true;
|
138
141
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu3(value);
|
139
142
|
});
|
140
|
-
const $
|
141
|
-
const $
|
142
|
-
const $
|
143
|
-
const $
|
144
|
-
const $
|
145
|
-
const $
|
146
|
-
const $
|
147
|
-
const $
|
148
|
-
const $
|
149
|
-
const $
|
150
|
-
const $
|
151
|
-
const $
|
152
|
-
const $
|
143
|
+
const $io59 = 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);
|
144
|
+
const $io60 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295)) && "integer" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
145
|
+
const $io61 = input => (undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf) && "number" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
146
|
+
const $io62 = input => (undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "string" === typeof elem)) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295)) && "string" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
147
|
+
const $io63 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu3(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 <= 4294967295)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295)) && "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);
|
148
|
+
const $io64 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io58(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) && $iu3(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);
|
149
|
+
const $io65 = 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);
|
150
|
+
const $io66 = 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);
|
151
|
+
const $io67 = 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);
|
152
|
+
const $io68 = input => Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu3(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
153
|
+
const $io69 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu3(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
154
|
+
const $io70 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu3(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
155
|
+
const $io71 = input => Object.keys(input).every(key => {
|
153
156
|
const value = input[key];
|
154
157
|
if (undefined === value)
|
155
158
|
return true;
|
156
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
159
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io72(value);
|
157
160
|
});
|
158
|
-
const $
|
159
|
-
const $
|
161
|
+
const $io72 = input => (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io73(input.content)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io75(input.headers)) && (undefined === input.description || "string" === typeof input.description);
|
162
|
+
const $io73 = input => Object.keys(input).every(key => {
|
160
163
|
const value = input[key];
|
161
164
|
if (undefined === value)
|
162
165
|
return true;
|
163
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
166
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io74(value);
|
164
167
|
});
|
165
|
-
const $
|
166
|
-
const $
|
168
|
+
const $io74 = input => undefined === input.schema || "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu3(input.schema);
|
169
|
+
const $io75 = input => Object.keys(input).every(key => {
|
167
170
|
const value = input[key];
|
168
171
|
if (undefined === value)
|
169
172
|
return true;
|
170
173
|
return "object" === typeof value && null !== value && $iu10(value);
|
171
174
|
});
|
172
|
-
const $
|
173
|
-
const $
|
174
|
-
const $
|
175
|
+
const $io76 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.required || "boolean" === typeof input.required) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu3(input.schema));
|
176
|
+
const $io77 = 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);
|
177
|
+
const $io78 = input => Object.keys(input).every(key => {
|
175
178
|
const value = input[key];
|
176
179
|
if (undefined === value)
|
177
180
|
return true;
|
178
|
-
return "object" === typeof value && null !== value && $
|
181
|
+
return "object" === typeof value && null !== value && $io79(value);
|
179
182
|
});
|
180
|
-
const $
|
181
|
-
const $
|
183
|
+
const $io79 = input => (undefined === input.name || "string" === typeof input.name) && ("header" === input["in"] || "query" === input["in"] || "path" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu3(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description);
|
184
|
+
const $io80 = input => Object.keys(input).every(key => {
|
182
185
|
const value = input[key];
|
183
186
|
if (undefined === value)
|
184
187
|
return true;
|
185
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
188
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io81(value);
|
186
189
|
});
|
187
|
-
const $
|
188
|
-
const $
|
190
|
+
const $io81 = 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) && $io73(input.content));
|
191
|
+
const $io82 = input => Object.keys(input).every(key => {
|
189
192
|
const value = input[key];
|
190
193
|
if (undefined === value)
|
191
194
|
return true;
|
192
195
|
return "object" === typeof value && null !== value && $iu11(value);
|
193
196
|
});
|
194
|
-
const $
|
195
|
-
const $
|
196
|
-
const $
|
197
|
-
const $
|
198
|
-
const $
|
199
|
-
const $
|
200
|
-
const $
|
201
|
-
const $
|
202
|
-
const $
|
203
|
-
const $
|
197
|
+
const $io83 = input => "apiKey" === input.type && (undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description);
|
198
|
+
const $io84 = input => "http" === input.type && "basic" === input.scheme && (undefined === input.description || "string" === typeof input.description);
|
199
|
+
const $io85 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat) && (undefined === input.description || "string" === typeof input.description);
|
200
|
+
const $io86 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io87(input.flows)) && (undefined === input.description || "string" === typeof input.description);
|
201
|
+
const $io87 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) && $io88(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && false === Array.isArray(input.implicit) && $io89(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) && $io90(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) && $io90(input.clientCredentials));
|
202
|
+
const $io88 = 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) && $io37(input.scopes));
|
203
|
+
const $io89 = input => (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io37(input.scopes)) && (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl);
|
204
|
+
const $io90 = input => (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io37(input.scopes)) && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl);
|
205
|
+
const $io91 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl && (undefined === input.description || "string" === typeof input.description);
|
206
|
+
const $io92 = input => Object.keys(input).every(key => {
|
204
207
|
const value = input[key];
|
205
208
|
if (undefined === value)
|
206
209
|
return true;
|
207
|
-
return "object" === typeof value && null !== value && $
|
210
|
+
return "object" === typeof value && null !== value && $io76(value);
|
208
211
|
});
|
209
|
-
const $
|
212
|
+
const $io93 = input => Object.keys(input).every(key => {
|
210
213
|
const value = input[key];
|
211
214
|
if (undefined === value)
|
212
215
|
return true;
|
213
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
216
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io94(value);
|
214
217
|
});
|
215
|
-
const $
|
216
|
-
const $
|
217
|
-
const $
|
218
|
-
const $
|
219
|
-
const $
|
218
|
+
const $io94 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu4(elem))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io51(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io96(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io96(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io96(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io96(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io96(input.options)) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && $io96(input.head)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io96(input.patch)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && $io96(input.trace));
|
219
|
+
const $io95 = 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);
|
220
|
+
const $io96 = 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.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && $iu12(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io98(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io51(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) && $io41(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
221
|
+
const $io97 = 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);
|
222
|
+
const $io98 = input => Object.keys(input).every(key => {
|
220
223
|
const value = input[key];
|
221
224
|
if (undefined === value)
|
222
225
|
return true;
|
223
226
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu13(value);
|
224
227
|
});
|
225
|
-
const $
|
226
|
-
const $
|
227
|
-
const $
|
228
|
-
const $
|
229
|
-
const $
|
228
|
+
const $io99 = 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);
|
229
|
+
const $io100 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
230
|
+
const $io101 = 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 && $io102(elem))) && (undefined === input.info || "object" === typeof input.info && null !== input.info && $io105(input.info)) && (undefined === input.components || "object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && $io108(input.components)) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io124(input.paths)) && (undefined === input.webhooks || "object" === typeof input.webhooks && null !== input.webhooks && false === Array.isArray(input.webhooks) && $io153(input.webhooks)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io41(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && $io155(elem)));
|
231
|
+
const $io102 = 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) && $io103(input.variables));
|
232
|
+
const $io103 = input => Object.keys(input).every(key => {
|
230
233
|
const value = input[key];
|
231
234
|
if (undefined === value)
|
232
235
|
return true;
|
233
|
-
return "object" === typeof value && null !== value && $
|
236
|
+
return "object" === typeof value && null !== value && $io104(value);
|
234
237
|
});
|
235
|
-
const $
|
236
|
-
const $
|
237
|
-
const $
|
238
|
-
const $
|
239
|
-
const $
|
240
|
-
const $
|
238
|
+
const $io104 = 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);
|
239
|
+
const $io105 = 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) && $io106(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io107(input.license)) && "string" === typeof input.version;
|
240
|
+
const $io106 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email);
|
241
|
+
const $io107 = input => "string" === typeof input.name && (undefined === input.identifier || "string" === typeof input.identifier) && (undefined === input.url || "string" === typeof input.url);
|
242
|
+
const $io108 = input => (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && $io109(input.schemas)) && (undefined === input.pathItems || "object" === typeof input.pathItems && null !== input.pathItems && false === Array.isArray(input.pathItems) && $io124(input.pathItems)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io139(input.responses)) && (undefined === input.parameters || "object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) && $io140(input.parameters)) && (undefined === input.requestBodies || "object" === typeof input.requestBodies && null !== input.requestBodies && false === Array.isArray(input.requestBodies) && $io141(input.requestBodies)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && $io142(input.securitySchemes)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io152(input.headers));
|
243
|
+
const $io109 = input => Object.keys(input).every(key => {
|
241
244
|
const value = input[key];
|
242
245
|
if (undefined === value)
|
243
246
|
return true;
|
244
247
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu5(value);
|
245
248
|
});
|
246
|
-
const $
|
247
|
-
const $
|
248
|
-
const $
|
249
|
-
const $
|
250
|
-
const $
|
251
|
-
const $
|
252
|
-
const $
|
253
|
-
const $
|
254
|
-
const $
|
255
|
-
const $
|
256
|
-
const $
|
257
|
-
const $
|
258
|
-
const $
|
259
|
-
const $
|
260
|
-
const $
|
249
|
+
const $io110 = 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.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) && (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 <= 4294967295)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295)) && (null !== input.items && undefined !== input.items && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu5(input.items))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 4294967295)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295)) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(elem))) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && $iu5(input.additionalItems))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io109(input.properties)) && (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.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) && $iu5(elem))) && (Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(elem))) && (Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(elem)));
|
250
|
+
const $io111 = 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);
|
251
|
+
const $io112 = 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.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
252
|
+
const $io113 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -2147483648 <= input.exclusiveMinimum && input.exclusiveMinimum <= 2147483647) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -2147483648 <= input.exclusiveMaximum && input.exclusiveMaximum <= 2147483647) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295)) && "integer" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
253
|
+
const $io114 = 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) && "number" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
254
|
+
const $io115 = 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 <= 4294967295)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295)) && "string" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
255
|
+
const $io116 = input => null !== input.items && undefined !== input.items && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu5(input.items)) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu5(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) && $iu5(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 4294967295)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295)) && "array" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
256
|
+
const $io117 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io109(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.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
257
|
+
const $io118 = 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);
|
258
|
+
const $io119 = 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);
|
259
|
+
const $io120 = 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);
|
260
|
+
const $io121 = 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);
|
261
|
+
const $io122 = 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);
|
262
|
+
const $io123 = 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);
|
263
|
+
const $io124 = input => Object.keys(input).every(key => {
|
261
264
|
const value = input[key];
|
262
265
|
if (undefined === value)
|
263
266
|
return true;
|
264
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
267
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io125(value);
|
265
268
|
});
|
266
|
-
const $
|
267
|
-
const $
|
268
|
-
const $
|
269
|
-
const $
|
270
|
-
const $
|
271
|
-
const $
|
272
|
-
const $
|
269
|
+
const $io125 = 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 && $io102(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io129(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io129(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io129(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io129(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io129(input.options)) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && $io129(input.head)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io129(input.patch)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && $io129(input.trace));
|
270
|
+
const $io126 = input => (undefined === input.name || "string" === typeof input.name) && ("header" === input["in"] || "query" === input["in"] || "path" === 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);
|
271
|
+
const $io127 = 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);
|
272
|
+
const $io128 = 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);
|
273
|
+
const $io129 = 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) && $iu14(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io134(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io102(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) && $io41(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
274
|
+
const $io130 = 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) && $io131(input.content));
|
275
|
+
const $io131 = input => Object.keys(input).every(key => {
|
273
276
|
const value = input[key];
|
274
277
|
if (undefined === value)
|
275
278
|
return true;
|
276
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
279
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io132(value);
|
277
280
|
});
|
278
|
-
const $
|
279
|
-
const $
|
280
|
-
const $
|
281
|
+
const $io132 = input => undefined === input.schema || "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu5(input.schema);
|
282
|
+
const $io133 = 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);
|
283
|
+
const $io134 = input => Object.keys(input).every(key => {
|
281
284
|
const value = input[key];
|
282
285
|
if (undefined === value)
|
283
286
|
return true;
|
284
287
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu15(value);
|
285
288
|
});
|
286
|
-
const $
|
287
|
-
const $
|
289
|
+
const $io135 = input => (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io131(input.content)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io136(input.headers)) && (undefined === input.description || "string" === typeof input.description);
|
290
|
+
const $io136 = input => Object.keys(input).every(key => {
|
288
291
|
const value = input[key];
|
289
292
|
if (undefined === value)
|
290
293
|
return true;
|
291
294
|
return "object" === typeof value && null !== value && $iu16(value);
|
292
295
|
});
|
293
|
-
const $
|
294
|
-
const $
|
295
|
-
const $
|
296
|
+
const $io137 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.required || "boolean" === typeof input.required) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu5(input.schema));
|
297
|
+
const $io138 = 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);
|
298
|
+
const $io139 = input => Object.keys(input).every(key => {
|
296
299
|
const value = input[key];
|
297
300
|
if (undefined === value)
|
298
301
|
return true;
|
299
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
302
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io135(value);
|
300
303
|
});
|
301
|
-
const $
|
304
|
+
const $io140 = input => Object.keys(input).every(key => {
|
302
305
|
const value = input[key];
|
303
306
|
if (undefined === value)
|
304
307
|
return true;
|
305
|
-
return "object" === typeof value && null !== value && $
|
308
|
+
return "object" === typeof value && null !== value && $io126(value);
|
306
309
|
});
|
307
|
-
const $
|
310
|
+
const $io141 = input => Object.keys(input).every(key => {
|
308
311
|
const value = input[key];
|
309
312
|
if (undefined === value)
|
310
313
|
return true;
|
311
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
314
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io130(value);
|
312
315
|
});
|
313
|
-
const $
|
316
|
+
const $io142 = input => Object.keys(input).every(key => {
|
314
317
|
const value = input[key];
|
315
318
|
if (undefined === value)
|
316
319
|
return true;
|
317
320
|
return "object" === typeof value && null !== value && $iu17(value);
|
318
321
|
});
|
319
|
-
const $
|
320
|
-
const $
|
321
|
-
const $
|
322
|
-
const $
|
323
|
-
const $
|
324
|
-
const $
|
325
|
-
const $
|
326
|
-
const $
|
327
|
-
const $
|
328
|
-
const $
|
322
|
+
const $io143 = input => "apiKey" === input.type && (undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description);
|
323
|
+
const $io144 = input => "http" === input.type && "basic" === input.scheme && (undefined === input.description || "string" === typeof input.description);
|
324
|
+
const $io145 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat) && (undefined === input.description || "string" === typeof input.description);
|
325
|
+
const $io146 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io147(input.flows)) && (undefined === input.description || "string" === typeof input.description);
|
326
|
+
const $io147 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) && $io148(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && false === Array.isArray(input.implicit) && $io149(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) && $io150(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) && $io150(input.clientCredentials));
|
327
|
+
const $io148 = 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) && $io37(input.scopes));
|
328
|
+
const $io149 = input => (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io37(input.scopes)) && (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl);
|
329
|
+
const $io150 = input => (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io37(input.scopes)) && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl);
|
330
|
+
const $io151 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl && (undefined === input.description || "string" === typeof input.description);
|
331
|
+
const $io152 = input => Object.keys(input).every(key => {
|
329
332
|
const value = input[key];
|
330
333
|
if (undefined === value)
|
331
334
|
return true;
|
332
|
-
return "object" === typeof value && null !== value && $
|
335
|
+
return "object" === typeof value && null !== value && $io137(value);
|
333
336
|
});
|
334
|
-
const $
|
337
|
+
const $io153 = input => Object.keys(input).every(key => {
|
335
338
|
const value = input[key];
|
336
339
|
if (undefined === value)
|
337
340
|
return true;
|
338
341
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu18(value);
|
339
342
|
});
|
340
|
-
const $
|
341
|
-
const $
|
343
|
+
const $io154 = 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);
|
344
|
+
const $io155 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
342
345
|
const $iu0 = input => (() => {
|
343
346
|
if ("boolean" === input.type)
|
344
|
-
return $
|
347
|
+
return $io5(input);
|
345
348
|
else if ("number" === input.type)
|
346
|
-
return $
|
349
|
+
return $io7(input);
|
347
350
|
else if ("integer" === input.type)
|
348
|
-
return $
|
351
|
+
return $io6(input);
|
349
352
|
else if ("string" === input.type)
|
350
|
-
return $
|
353
|
+
return $io8(input);
|
351
354
|
else if ("array" === input.type)
|
352
|
-
return $
|
355
|
+
return $io9(input);
|
353
356
|
else if ("object" === input.type)
|
354
|
-
return $
|
357
|
+
return $io10(input);
|
355
358
|
else if (undefined !== input.$ref)
|
356
|
-
return $
|
359
|
+
return $io11(input);
|
357
360
|
else if ("null" === input.type)
|
358
|
-
return $
|
361
|
+
return $io13(input);
|
359
362
|
else if (undefined !== input.allOf)
|
360
|
-
return $
|
363
|
+
return $io14(input);
|
361
364
|
else if (undefined !== input["x-anyOf"])
|
362
|
-
return $
|
365
|
+
return $io15(input);
|
363
366
|
else if (undefined !== input["x-oneOf"])
|
364
|
-
return $
|
367
|
+
return $io16(input);
|
365
368
|
else
|
366
|
-
return $
|
369
|
+
return $io12(input);
|
367
370
|
})();
|
368
371
|
const $iu1 = input => (() => {
|
369
372
|
if ("boolean" === input.type)
|
370
|
-
return $
|
373
|
+
return $io18(input);
|
371
374
|
else if ("number" === input.type)
|
372
|
-
return $
|
375
|
+
return $io20(input);
|
373
376
|
else if ("integer" === input.type)
|
374
|
-
return $
|
377
|
+
return $io19(input);
|
375
378
|
else if ("string" === input.type)
|
376
|
-
return $
|
379
|
+
return $io21(input);
|
377
380
|
else if ("array" === input.type)
|
378
|
-
return $
|
381
|
+
return $io22(input);
|
379
382
|
else if ("object" === input.type)
|
380
|
-
return $io20(input);
|
381
|
-
else if ("null" === input.type)
|
382
383
|
return $io23(input);
|
384
|
+
else if ("null" === input.type)
|
385
|
+
return $io26(input);
|
383
386
|
else if (undefined !== input.allOf)
|
384
|
-
return $
|
387
|
+
return $io27(input);
|
385
388
|
else if (undefined !== input["x-anyOf"])
|
386
|
-
return $
|
389
|
+
return $io28(input);
|
387
390
|
else if (undefined !== input["x-oneOf"])
|
388
|
-
return $
|
391
|
+
return $io29(input);
|
389
392
|
else if (undefined !== input.schema)
|
390
|
-
return $
|
393
|
+
return $io30(input);
|
391
394
|
else
|
392
395
|
return (() => {
|
393
|
-
if ($
|
394
|
-
return $
|
395
|
-
if ($
|
396
|
-
return $
|
397
|
-
if ($
|
398
|
-
return $
|
396
|
+
if ($io24(input))
|
397
|
+
return $io24(input);
|
398
|
+
if ($io25(input))
|
399
|
+
return $io25(input);
|
400
|
+
if ($io44(input))
|
401
|
+
return $io44(input);
|
399
402
|
return false;
|
400
403
|
})();
|
401
404
|
})();
|
402
405
|
const $iu2 = input => (() => {
|
403
406
|
if ("boolean" === input.type)
|
404
|
-
return $
|
407
|
+
return $io18(input);
|
405
408
|
else if ("number" === input.type)
|
406
|
-
return $
|
409
|
+
return $io20(input);
|
407
410
|
else if ("integer" === input.type)
|
408
|
-
return $
|
411
|
+
return $io19(input);
|
409
412
|
else if ("string" === input.type)
|
410
|
-
return $
|
413
|
+
return $io21(input);
|
411
414
|
else if ("array" === input.type)
|
412
|
-
return $
|
415
|
+
return $io22(input);
|
413
416
|
else if ("object" === input.type)
|
414
|
-
return $io20(input);
|
415
|
-
else if ("null" === input.type)
|
416
417
|
return $io23(input);
|
418
|
+
else if ("null" === input.type)
|
419
|
+
return $io26(input);
|
417
420
|
else if (undefined !== input.allOf)
|
418
|
-
return $
|
421
|
+
return $io27(input);
|
419
422
|
else if (undefined !== input["x-anyOf"])
|
420
|
-
return $
|
423
|
+
return $io28(input);
|
421
424
|
else if (undefined !== input["x-oneOf"])
|
422
|
-
return $
|
425
|
+
return $io29(input);
|
423
426
|
else if (undefined !== input.schema)
|
424
|
-
return $
|
427
|
+
return $io30(input);
|
425
428
|
else
|
426
429
|
return (() => {
|
427
|
-
if ($
|
428
|
-
return $
|
429
|
-
if ($
|
430
|
-
return $
|
431
|
-
if ($
|
432
|
-
return $
|
430
|
+
if ($io24(input))
|
431
|
+
return $io24(input);
|
432
|
+
if ($io25(input))
|
433
|
+
return $io25(input);
|
434
|
+
if ($io46(input))
|
435
|
+
return $io46(input);
|
433
436
|
return false;
|
434
437
|
})();
|
435
438
|
})();
|
436
439
|
const $iu3 = input => (() => {
|
437
440
|
if ("boolean" === input.type)
|
438
|
-
return $
|
441
|
+
return $io59(input);
|
439
442
|
else if ("number" === input.type)
|
440
|
-
return $
|
443
|
+
return $io61(input);
|
441
444
|
else if ("integer" === input.type)
|
442
|
-
return $
|
445
|
+
return $io60(input);
|
443
446
|
else if ("string" === input.type)
|
444
|
-
return $
|
447
|
+
return $io62(input);
|
445
448
|
else if ("array" === input.type)
|
446
|
-
return $
|
449
|
+
return $io63(input);
|
447
450
|
else if ("object" === input.type)
|
448
|
-
return $
|
451
|
+
return $io64(input);
|
449
452
|
else if (undefined !== input.$ref)
|
450
|
-
return $
|
453
|
+
return $io65(input);
|
451
454
|
else if ("null" === input.type)
|
452
|
-
return $
|
455
|
+
return $io67(input);
|
453
456
|
else if (undefined !== input.allOf)
|
454
|
-
return $
|
457
|
+
return $io68(input);
|
455
458
|
else if (undefined !== input.anyOf)
|
456
|
-
return $
|
459
|
+
return $io69(input);
|
457
460
|
else if (undefined !== input.oneOf)
|
458
|
-
return $
|
461
|
+
return $io70(input);
|
459
462
|
else
|
460
|
-
return $
|
463
|
+
return $io66(input);
|
461
464
|
})();
|
462
465
|
const $iu4 = input => (() => {
|
463
466
|
if (undefined !== input["in"])
|
464
|
-
return $
|
467
|
+
return $io79(input);
|
465
468
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref))
|
466
|
-
return $
|
469
|
+
return $io95(input);
|
467
470
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref))
|
468
|
-
return $
|
471
|
+
return $io77(input);
|
469
472
|
else
|
470
473
|
return false;
|
471
474
|
})();
|
472
475
|
const $iu5 = input => (() => {
|
473
|
-
if (Array.isArray(input.type) && input.type.every(elem => "
|
474
|
-
return $
|
476
|
+
if (Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem))
|
477
|
+
return $io110(input);
|
475
478
|
else if ("boolean" === input.type)
|
476
|
-
return $
|
479
|
+
return $io112(input);
|
477
480
|
else if ("number" === input.type)
|
478
|
-
return $
|
481
|
+
return $io114(input);
|
479
482
|
else if ("integer" === input.type)
|
480
|
-
return $
|
483
|
+
return $io113(input);
|
481
484
|
else if ("string" === input.type)
|
482
|
-
return $
|
485
|
+
return $io115(input);
|
483
486
|
else if ("array" === input.type)
|
484
|
-
return $
|
487
|
+
return $io116(input);
|
485
488
|
else if ("object" === input.type)
|
486
|
-
return $
|
489
|
+
return $io117(input);
|
487
490
|
else if (undefined !== input.$ref)
|
488
|
-
return $
|
491
|
+
return $io118(input);
|
489
492
|
else if ("null" === input.type)
|
490
|
-
return $
|
493
|
+
return $io120(input);
|
491
494
|
else
|
492
495
|
return (() => {
|
493
496
|
if (undefined !== input["const"])
|
494
|
-
return $
|
497
|
+
return $io111(input);
|
495
498
|
else if (undefined !== input.allOf)
|
496
|
-
return $
|
499
|
+
return $io121(input);
|
497
500
|
else if (undefined !== input.anyOf)
|
498
|
-
return $
|
501
|
+
return $io122(input);
|
499
502
|
else if (undefined !== input.oneOf)
|
500
|
-
return $
|
503
|
+
return $io123(input);
|
501
504
|
else
|
502
|
-
return $
|
505
|
+
return $io119(input);
|
503
506
|
})();
|
504
507
|
})();
|
505
508
|
const $iu6 = input => (() => {
|
506
509
|
if (undefined !== input["in"])
|
507
|
-
return $
|
510
|
+
return $io126(input);
|
508
511
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref))
|
509
|
-
return $
|
512
|
+
return $io128(input);
|
510
513
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref))
|
511
|
-
return $
|
514
|
+
return $io127(input);
|
512
515
|
else
|
513
516
|
return false;
|
514
517
|
})();
|
515
518
|
const $iu7 = input => (() => {
|
516
519
|
if ("boolean" === input.type)
|
517
|
-
return $
|
520
|
+
return $io18(input);
|
518
521
|
else if ("number" === input.type)
|
519
|
-
return $
|
522
|
+
return $io20(input);
|
520
523
|
else if ("integer" === input.type)
|
521
|
-
return $
|
524
|
+
return $io19(input);
|
522
525
|
else if ("string" === input.type)
|
523
|
-
return $
|
526
|
+
return $io21(input);
|
524
527
|
else if ("array" === input.type)
|
525
|
-
return $
|
528
|
+
return $io22(input);
|
526
529
|
else if ("object" === input.type)
|
527
|
-
return $
|
530
|
+
return $io23(input);
|
528
531
|
else if (undefined !== input.$ref)
|
529
|
-
return $
|
532
|
+
return $io24(input);
|
530
533
|
else if ("null" === input.type)
|
531
|
-
return $
|
534
|
+
return $io26(input);
|
532
535
|
else if (undefined !== input.allOf)
|
533
|
-
return $
|
536
|
+
return $io27(input);
|
534
537
|
else if (undefined !== input["x-anyOf"])
|
535
|
-
return $
|
538
|
+
return $io28(input);
|
536
539
|
else if (undefined !== input["x-oneOf"])
|
537
|
-
return $
|
540
|
+
return $io29(input);
|
538
541
|
else if (undefined !== input.schema)
|
539
|
-
return $
|
542
|
+
return $io30(input);
|
540
543
|
else
|
541
|
-
return $
|
544
|
+
return $io25(input);
|
542
545
|
})();
|
543
546
|
const $iu8 = input => (() => {
|
544
547
|
if ("apiKey" === input.type)
|
545
|
-
return $
|
548
|
+
return $io34(input);
|
546
549
|
else if ("basic" === input.type)
|
547
|
-
return $
|
550
|
+
return $io35(input);
|
548
551
|
else if ("implicit" === input.flow)
|
549
|
-
return $
|
552
|
+
return $io36(input);
|
550
553
|
else if ("accessCode" === input.flow)
|
551
|
-
return $
|
554
|
+
return $io38(input);
|
552
555
|
else if ("application" === input.flow)
|
553
|
-
return $
|
556
|
+
return $io40(input);
|
554
557
|
else if ("password" === input.flow)
|
555
|
-
return $
|
558
|
+
return $io39(input);
|
556
559
|
else
|
557
560
|
return false;
|
558
561
|
})();
|
559
562
|
const $iu9 = input => (() => {
|
560
563
|
if (undefined !== input.$ref)
|
561
|
-
return $
|
564
|
+
return $io48(input);
|
562
565
|
else
|
563
|
-
return $
|
566
|
+
return $io32(input);
|
564
567
|
})();
|
565
568
|
const $iu10 = input => (() => {
|
566
569
|
if (undefined !== input.schema)
|
567
|
-
return $
|
570
|
+
return $io76(input);
|
568
571
|
else if (undefined !== input.$ref)
|
569
|
-
return $
|
572
|
+
return $io77(input);
|
570
573
|
else
|
571
574
|
return false;
|
572
575
|
})();
|
573
576
|
const $iu11 = input => (() => {
|
574
577
|
if ("apiKey" === input.type)
|
575
|
-
return $
|
578
|
+
return $io83(input);
|
576
579
|
else if ("basic" === input.scheme)
|
577
|
-
return $
|
580
|
+
return $io84(input);
|
578
581
|
else if ("bearer" === input.scheme)
|
579
|
-
return $
|
582
|
+
return $io85(input);
|
580
583
|
else if ("oauth2" === input.type)
|
581
|
-
return $
|
584
|
+
return $io86(input);
|
582
585
|
else if ("openIdConnect" === input.type)
|
583
|
-
return $
|
586
|
+
return $io91(input);
|
584
587
|
else
|
585
588
|
return false;
|
586
589
|
})();
|
587
590
|
const $iu12 = input => (() => {
|
588
591
|
if (undefined !== input.$ref)
|
589
|
-
return $
|
592
|
+
return $io97(input);
|
590
593
|
else
|
591
|
-
return $
|
594
|
+
return $io81(input);
|
592
595
|
})();
|
593
596
|
const $iu13 = input => (() => {
|
594
597
|
if (undefined !== input.$ref)
|
595
|
-
return $
|
598
|
+
return $io99(input);
|
596
599
|
else
|
597
|
-
return $
|
600
|
+
return $io72(input);
|
598
601
|
})();
|
599
602
|
const $iu14 = input => (() => {
|
600
603
|
if (undefined !== input.$ref)
|
601
|
-
return $
|
604
|
+
return $io133(input);
|
602
605
|
else
|
603
|
-
return $
|
606
|
+
return $io130(input);
|
604
607
|
})();
|
605
608
|
const $iu15 = input => (() => {
|
606
609
|
if (undefined !== input.$ref)
|
607
|
-
return $
|
610
|
+
return $io138(input);
|
608
611
|
else
|
609
|
-
return $
|
612
|
+
return $io135(input);
|
610
613
|
})();
|
611
614
|
const $iu16 = input => (() => {
|
612
615
|
if (undefined !== input.$ref)
|
613
|
-
return $
|
616
|
+
return $io127(input);
|
614
617
|
else if (undefined !== input.schema)
|
615
|
-
return $
|
618
|
+
return $io137(input);
|
616
619
|
else
|
617
620
|
return false;
|
618
621
|
})();
|
619
622
|
const $iu17 = input => (() => {
|
620
623
|
if ("apiKey" === input.type)
|
621
|
-
return $
|
624
|
+
return $io143(input);
|
622
625
|
else if ("basic" === input.scheme)
|
623
|
-
return $
|
626
|
+
return $io144(input);
|
624
627
|
else if ("bearer" === input.scheme)
|
625
|
-
return $
|
628
|
+
return $io145(input);
|
626
629
|
else if ("oauth2" === input.type)
|
627
|
-
return $
|
630
|
+
return $io146(input);
|
628
631
|
else if ("openIdConnect" === input.type)
|
629
|
-
return $
|
632
|
+
return $io151(input);
|
630
633
|
else
|
631
634
|
return false;
|
632
635
|
})();
|
633
636
|
const $iu18 = input => (() => {
|
634
637
|
if (undefined !== input.$ref)
|
635
|
-
return $
|
638
|
+
return $io154(input);
|
636
639
|
else
|
637
|
-
return $
|
640
|
+
return $io125(input);
|
638
641
|
})();
|
639
642
|
const $iu19 = input => (() => {
|
640
643
|
if (undefined !== input.swagger)
|
641
644
|
return $io0(input);
|
642
645
|
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)))
|
643
|
-
return $
|
646
|
+
return $io50(input);
|
644
647
|
else if ("string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi))
|
645
|
-
return $
|
648
|
+
return $io101(input);
|
646
649
|
else
|
647
650
|
return false;
|
648
651
|
})();
|
@@ -654,17 +657,25 @@ class MigrateApplication {
|
|
654
657
|
const $join = typia_1.default.validate.join;
|
655
658
|
const $vo0 = (input, _path, _exceptionable = true) => [(null !== input.swagger || $report(_exceptionable, {
|
656
659
|
path: _path + ".swagger",
|
657
|
-
expected: "(\"2.0\" | `
|
660
|
+
expected: "(\"2.0\" | `[object Object]${number}`)",
|
658
661
|
value: input.swagger
|
659
662
|
})) && (undefined !== input.swagger || $report(_exceptionable, {
|
660
663
|
path: _path + ".swagger",
|
661
|
-
expected: "(\"2.0\" | `
|
664
|
+
expected: "(\"2.0\" | `[object Object]${number}`)",
|
662
665
|
value: input.swagger
|
663
666
|
})) && ("2.0" === input.swagger || "string" === typeof input.swagger && RegExp(/^2\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.swagger) || $report(_exceptionable, {
|
664
667
|
path: _path + ".swagger",
|
665
|
-
expected: "(\"2.0\" | `
|
668
|
+
expected: "(\"2.0\" | `[object Object]${number}`)",
|
666
669
|
value: input.swagger
|
667
|
-
})), undefined === input.
|
670
|
+
})), undefined === input.info || ("object" === typeof input.info && null !== input.info || $report(_exceptionable, {
|
671
|
+
path: _path + ".info",
|
672
|
+
expected: "(SwaggerV2.IDocument.IInfo | undefined)",
|
673
|
+
value: input.info
|
674
|
+
})) && $vo1(input.info, _path + ".info", true && _exceptionable) || $report(_exceptionable, {
|
675
|
+
path: _path + ".info",
|
676
|
+
expected: "(SwaggerV2.IDocument.IInfo | undefined)",
|
677
|
+
value: input.info
|
678
|
+
}), undefined === input.host || "string" === typeof input.host || $report(_exceptionable, {
|
668
679
|
path: _path + ".host",
|
669
680
|
expected: "(string | undefined)",
|
670
681
|
value: input.host
|
@@ -700,7 +711,7 @@ class MigrateApplication {
|
|
700
711
|
path: _path + ".definitions",
|
701
712
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
702
713
|
value: input.definitions
|
703
|
-
})) && $
|
714
|
+
})) && $vo4(input.definitions, _path + ".definitions", true && _exceptionable) || $report(_exceptionable, {
|
704
715
|
path: _path + ".definitions",
|
705
716
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
706
717
|
value: input.definitions
|
@@ -708,7 +719,7 @@ class MigrateApplication {
|
|
708
719
|
path: _path + ".parameters",
|
709
720
|
expected: "(Record<string, SwaggerV2.IOperation.IParameter> | undefined)",
|
710
721
|
value: input.parameters
|
711
|
-
})) && $
|
722
|
+
})) && $vo17(input.parameters, _path + ".parameters", true && _exceptionable) || $report(_exceptionable, {
|
712
723
|
path: _path + ".parameters",
|
713
724
|
expected: "(Record<string, SwaggerV2.IOperation.IParameter> | undefined)",
|
714
725
|
value: input.parameters
|
@@ -716,7 +727,7 @@ class MigrateApplication {
|
|
716
727
|
path: _path + ".responses",
|
717
728
|
expected: "(Record<string, SwaggerV2.IOperation.IResponse> | undefined)",
|
718
729
|
value: input.responses
|
719
|
-
})) && $
|
730
|
+
})) && $vo31(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
720
731
|
path: _path + ".responses",
|
721
732
|
expected: "(Record<string, SwaggerV2.IOperation.IResponse> | undefined)",
|
722
733
|
value: input.responses
|
@@ -724,7 +735,7 @@ class MigrateApplication {
|
|
724
735
|
path: _path + ".securityDefinitions",
|
725
736
|
expected: "(Record<string, SwaggerV2.ISecurityDefinition> | undefined)",
|
726
737
|
value: input.securityDefinitions
|
727
|
-
})) && $
|
738
|
+
})) && $vo33(input.securityDefinitions, _path + ".securityDefinitions", true && _exceptionable) || $report(_exceptionable, {
|
728
739
|
path: _path + ".securityDefinitions",
|
729
740
|
expected: "(Record<string, SwaggerV2.ISecurityDefinition> | undefined)",
|
730
741
|
value: input.securityDefinitions
|
@@ -736,7 +747,7 @@ class MigrateApplication {
|
|
736
747
|
path: _path + ".security[" + _index3 + "]",
|
737
748
|
expected: "Record<string, Array<string>>",
|
738
749
|
value: elem
|
739
|
-
})) && $
|
750
|
+
})) && $vo41(elem, _path + ".security[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
740
751
|
path: _path + ".security[" + _index3 + "]",
|
741
752
|
expected: "Record<string, Array<string>>",
|
742
753
|
value: elem
|
@@ -748,7 +759,7 @@ class MigrateApplication {
|
|
748
759
|
path: _path + ".paths",
|
749
760
|
expected: "(Record<string, SwaggerV2.IPathItem> | undefined)",
|
750
761
|
value: input.paths
|
751
|
-
})) && $
|
762
|
+
})) && $vo42(input.paths, _path + ".paths", true && _exceptionable) || $report(_exceptionable, {
|
752
763
|
path: _path + ".paths",
|
753
764
|
expected: "(Record<string, SwaggerV2.IPathItem> | undefined)",
|
754
765
|
value: input.paths
|
@@ -760,7 +771,7 @@ class MigrateApplication {
|
|
760
771
|
path: _path + ".tags[" + _index4 + "]",
|
761
772
|
expected: "SwaggerV2.IDocument.ITag",
|
762
773
|
value: elem
|
763
|
-
})) && $
|
774
|
+
})) && $vo49(elem, _path + ".tags[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
764
775
|
path: _path + ".tags[" + _index4 + "]",
|
765
776
|
expected: "SwaggerV2.IDocument.ITag",
|
766
777
|
value: elem
|
@@ -769,7 +780,62 @@ class MigrateApplication {
|
|
769
780
|
expected: "(Array<SwaggerV2.IDocument.ITag> | undefined)",
|
770
781
|
value: input.tags
|
771
782
|
})].every(flag => flag);
|
772
|
-
const $vo1 = (input, _path, _exceptionable = true) => [
|
783
|
+
const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.title || $report(_exceptionable, {
|
784
|
+
path: _path + ".title",
|
785
|
+
expected: "string",
|
786
|
+
value: input.title
|
787
|
+
}), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
788
|
+
path: _path + ".description",
|
789
|
+
expected: "(string | undefined)",
|
790
|
+
value: input.description
|
791
|
+
}), undefined === input.termsOfService || "string" === typeof input.termsOfService || $report(_exceptionable, {
|
792
|
+
path: _path + ".termsOfService",
|
793
|
+
expected: "(string | undefined)",
|
794
|
+
value: input.termsOfService
|
795
|
+
}), undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || $report(_exceptionable, {
|
796
|
+
path: _path + ".contact",
|
797
|
+
expected: "(SwaggerV2.IDocument.IContact | undefined)",
|
798
|
+
value: input.contact
|
799
|
+
})) && $vo2(input.contact, _path + ".contact", true && _exceptionable) || $report(_exceptionable, {
|
800
|
+
path: _path + ".contact",
|
801
|
+
expected: "(SwaggerV2.IDocument.IContact | undefined)",
|
802
|
+
value: input.contact
|
803
|
+
}), undefined === input.license || ("object" === typeof input.license && null !== input.license || $report(_exceptionable, {
|
804
|
+
path: _path + ".license",
|
805
|
+
expected: "(SwaggerV2.IDocument.ILicense | undefined)",
|
806
|
+
value: input.license
|
807
|
+
})) && $vo3(input.license, _path + ".license", true && _exceptionable) || $report(_exceptionable, {
|
808
|
+
path: _path + ".license",
|
809
|
+
expected: "(SwaggerV2.IDocument.ILicense | undefined)",
|
810
|
+
value: input.license
|
811
|
+
}), "string" === typeof input.version || $report(_exceptionable, {
|
812
|
+
path: _path + ".version",
|
813
|
+
expected: "string",
|
814
|
+
value: input.version
|
815
|
+
})].every(flag => flag);
|
816
|
+
const $vo2 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
817
|
+
path: _path + ".name",
|
818
|
+
expected: "(string | undefined)",
|
819
|
+
value: input.name
|
820
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
821
|
+
path: _path + ".url",
|
822
|
+
expected: "(string | undefined)",
|
823
|
+
value: input.url
|
824
|
+
}), undefined === input.email || "string" === typeof input.email || $report(_exceptionable, {
|
825
|
+
path: _path + ".email",
|
826
|
+
expected: "(string | undefined)",
|
827
|
+
value: input.email
|
828
|
+
})].every(flag => flag);
|
829
|
+
const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
830
|
+
path: _path + ".name",
|
831
|
+
expected: "string",
|
832
|
+
value: input.name
|
833
|
+
}), undefined === input.url || "string" === typeof input.url || $report(_exceptionable, {
|
834
|
+
path: _path + ".url",
|
835
|
+
expected: "(string | undefined)",
|
836
|
+
value: input.url
|
837
|
+
})].every(flag => flag);
|
838
|
+
const $vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
773
839
|
const value = input[key];
|
774
840
|
if (undefined === value)
|
775
841
|
return true;
|
@@ -783,7 +849,7 @@ class MigrateApplication {
|
|
783
849
|
value: value
|
784
850
|
});
|
785
851
|
}).every(flag => flag)].every(flag => flag);
|
786
|
-
const $
|
852
|
+
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "boolean" === typeof input["default"] || $report(_exceptionable, {
|
787
853
|
path: _path + "[\"default\"]",
|
788
854
|
expected: "(boolean | undefined)",
|
789
855
|
value: input["default"]
|
@@ -820,7 +886,7 @@ class MigrateApplication {
|
|
820
886
|
expected: "(boolean | undefined)",
|
821
887
|
value: input.deprecated
|
822
888
|
})].every(flag => flag);
|
823
|
-
const $
|
889
|
+
const $vo6 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647 || $report(_exceptionable, {
|
824
890
|
path: _path + "[\"default\"]",
|
825
891
|
expected: "number & Type<\"int32\">",
|
826
892
|
value: input["default"]
|
@@ -893,7 +959,7 @@ class MigrateApplication {
|
|
893
959
|
expected: "(boolean | undefined)",
|
894
960
|
value: input.deprecated
|
895
961
|
})].every(flag => flag);
|
896
|
-
const $
|
962
|
+
const $vo7 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] || $report(_exceptionable, {
|
897
963
|
path: _path + "[\"default\"]",
|
898
964
|
expected: "(number | undefined)",
|
899
965
|
value: input["default"]
|
@@ -950,7 +1016,7 @@ class MigrateApplication {
|
|
950
1016
|
expected: "(boolean | undefined)",
|
951
1017
|
value: input.deprecated
|
952
1018
|
})].every(flag => flag);
|
953
|
-
const $
|
1019
|
+
const $vo8 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "string" === typeof input["default"] || $report(_exceptionable, {
|
954
1020
|
path: _path + "[\"default\"]",
|
955
1021
|
expected: "(string | undefined)",
|
956
1022
|
value: input["default"]
|
@@ -1011,7 +1077,7 @@ class MigrateApplication {
|
|
1011
1077
|
expected: "(boolean | undefined)",
|
1012
1078
|
value: input.deprecated
|
1013
1079
|
})].every(flag => flag);
|
1014
|
-
const $
|
1080
|
+
const $vo9 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $report(_exceptionable, {
|
1015
1081
|
path: _path + ".items",
|
1016
1082
|
expected: "(SwaggerV2.IJsonSchema.IAllOf | 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)",
|
1017
1083
|
value: input.items
|
@@ -1060,11 +1126,11 @@ class MigrateApplication {
|
|
1060
1126
|
expected: "(boolean | undefined)",
|
1061
1127
|
value: input.deprecated
|
1062
1128
|
})].every(flag => flag);
|
1063
|
-
const $
|
1129
|
+
const $vo10 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $report(_exceptionable, {
|
1064
1130
|
path: _path + ".properties",
|
1065
1131
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
1066
1132
|
value: input.properties
|
1067
|
-
})) && $
|
1133
|
+
})) && $vo4(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
|
1068
1134
|
path: _path + ".properties",
|
1069
1135
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
1070
1136
|
value: input.properties
|
@@ -1121,7 +1187,7 @@ class MigrateApplication {
|
|
1121
1187
|
expected: "(boolean | undefined)",
|
1122
1188
|
value: input.deprecated
|
1123
1189
|
})].every(flag => flag);
|
1124
|
-
const $
|
1190
|
+
const $vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || $report(_exceptionable, {
|
1125
1191
|
path: _path + ".$ref",
|
1126
1192
|
expected: "string",
|
1127
1193
|
value: input.$ref
|
@@ -1138,7 +1204,7 @@ class MigrateApplication {
|
|
1138
1204
|
expected: "(boolean | undefined)",
|
1139
1205
|
value: input.deprecated
|
1140
1206
|
})].every(flag => flag);
|
1141
|
-
const $
|
1207
|
+
const $vo12 = (input, _path, _exceptionable = true) => [(null !== input.type || $report(_exceptionable, {
|
1142
1208
|
path: _path + ".type",
|
1143
1209
|
expected: "undefined",
|
1144
1210
|
value: input.type
|
@@ -1159,7 +1225,7 @@ class MigrateApplication {
|
|
1159
1225
|
expected: "(boolean | undefined)",
|
1160
1226
|
value: input.deprecated
|
1161
1227
|
})].every(flag => flag);
|
1162
|
-
const $
|
1228
|
+
const $vo13 = (input, _path, _exceptionable = true) => ["null" === input.type || $report(_exceptionable, {
|
1163
1229
|
path: _path + ".type",
|
1164
1230
|
expected: "\"null\"",
|
1165
1231
|
value: input.type
|
@@ -1176,7 +1242,7 @@ class MigrateApplication {
|
|
1176
1242
|
expected: "(boolean | undefined)",
|
1177
1243
|
value: input.deprecated
|
1178
1244
|
})].every(flag => flag);
|
1179
|
-
const $
|
1245
|
+
const $vo14 = (input, _path, _exceptionable = true) => [(Array.isArray(input.allOf) || $report(_exceptionable, {
|
1180
1246
|
path: _path + ".allOf",
|
1181
1247
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
1182
1248
|
value: input.allOf
|
@@ -1205,7 +1271,7 @@ class MigrateApplication {
|
|
1205
1271
|
expected: "(boolean | undefined)",
|
1206
1272
|
value: input.deprecated
|
1207
1273
|
})].every(flag => flag);
|
1208
|
-
const $
|
1274
|
+
const $vo15 = (input, _path, _exceptionable = true) => [(Array.isArray(input["x-anyOf"]) || $report(_exceptionable, {
|
1209
1275
|
path: _path + "[\"x-anyOf\"]",
|
1210
1276
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
1211
1277
|
value: input["x-anyOf"]
|
@@ -1234,7 +1300,7 @@ class MigrateApplication {
|
|
1234
1300
|
expected: "(boolean | undefined)",
|
1235
1301
|
value: input.deprecated
|
1236
1302
|
})].every(flag => flag);
|
1237
|
-
const $
|
1303
|
+
const $vo16 = (input, _path, _exceptionable = true) => [(Array.isArray(input["x-oneOf"]) || $report(_exceptionable, {
|
1238
1304
|
path: _path + "[\"x-oneOf\"]",
|
1239
1305
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
1240
1306
|
value: input["x-oneOf"]
|
@@ -1263,7 +1329,7 @@ class MigrateApplication {
|
|
1263
1329
|
expected: "(boolean | undefined)",
|
1264
1330
|
value: input.deprecated
|
1265
1331
|
})].every(flag => flag);
|
1266
|
-
const $
|
1332
|
+
const $vo17 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
1267
1333
|
const value = input[key];
|
1268
1334
|
if (undefined === value)
|
1269
1335
|
return true;
|
@@ -1277,7 +1343,7 @@ class MigrateApplication {
|
|
1277
1343
|
value: value
|
1278
1344
|
});
|
1279
1345
|
}).every(flag => flag)].every(flag => flag);
|
1280
|
-
const $
|
1346
|
+
const $vo18 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "boolean" === typeof input["default"] || $report(_exceptionable, {
|
1281
1347
|
path: _path + "[\"default\"]",
|
1282
1348
|
expected: "(boolean | undefined)",
|
1283
1349
|
value: input["default"]
|
@@ -1322,7 +1388,7 @@ class MigrateApplication {
|
|
1322
1388
|
expected: "string",
|
1323
1389
|
value: input["in"]
|
1324
1390
|
})].every(flag => flag);
|
1325
|
-
const $
|
1391
|
+
const $vo19 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647 || $report(_exceptionable, {
|
1326
1392
|
path: _path + "[\"default\"]",
|
1327
1393
|
expected: "number & Type<\"int32\">",
|
1328
1394
|
value: input["default"]
|
@@ -1403,7 +1469,7 @@ class MigrateApplication {
|
|
1403
1469
|
expected: "string",
|
1404
1470
|
value: input["in"]
|
1405
1471
|
})].every(flag => flag);
|
1406
|
-
const $
|
1472
|
+
const $vo20 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] || $report(_exceptionable, {
|
1407
1473
|
path: _path + "[\"default\"]",
|
1408
1474
|
expected: "(number | undefined)",
|
1409
1475
|
value: input["default"]
|
@@ -1468,7 +1534,7 @@ class MigrateApplication {
|
|
1468
1534
|
expected: "string",
|
1469
1535
|
value: input["in"]
|
1470
1536
|
})].every(flag => flag);
|
1471
|
-
const $
|
1537
|
+
const $vo21 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "string" === typeof input["default"] || $report(_exceptionable, {
|
1472
1538
|
path: _path + "[\"default\"]",
|
1473
1539
|
expected: "(string | undefined)",
|
1474
1540
|
value: input["default"]
|
@@ -1537,7 +1603,7 @@ class MigrateApplication {
|
|
1537
1603
|
expected: "string",
|
1538
1604
|
value: input["in"]
|
1539
1605
|
})].every(flag => flag);
|
1540
|
-
const $
|
1606
|
+
const $vo22 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $report(_exceptionable, {
|
1541
1607
|
path: _path + ".items",
|
1542
1608
|
expected: "(SwaggerV2.IJsonSchema.IAllOf | 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)",
|
1543
1609
|
value: input.items
|
@@ -1594,11 +1660,11 @@ class MigrateApplication {
|
|
1594
1660
|
expected: "string",
|
1595
1661
|
value: input["in"]
|
1596
1662
|
})].every(flag => flag);
|
1597
|
-
const $
|
1663
|
+
const $vo23 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $report(_exceptionable, {
|
1598
1664
|
path: _path + ".properties",
|
1599
1665
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
1600
1666
|
value: input.properties
|
1601
|
-
})) && $
|
1667
|
+
})) && $vo4(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
|
1602
1668
|
path: _path + ".properties",
|
1603
1669
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
1604
1670
|
value: input.properties
|
@@ -1663,7 +1729,7 @@ class MigrateApplication {
|
|
1663
1729
|
expected: "string",
|
1664
1730
|
value: input["in"]
|
1665
1731
|
})].every(flag => flag);
|
1666
|
-
const $
|
1732
|
+
const $vo24 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || $report(_exceptionable, {
|
1667
1733
|
path: _path + ".$ref",
|
1668
1734
|
expected: "string",
|
1669
1735
|
value: input.$ref
|
@@ -1688,7 +1754,7 @@ class MigrateApplication {
|
|
1688
1754
|
expected: "string",
|
1689
1755
|
value: input["in"]
|
1690
1756
|
})].every(flag => flag);
|
1691
|
-
const $
|
1757
|
+
const $vo25 = (input, _path, _exceptionable = true) => [(null !== input.type || $report(_exceptionable, {
|
1692
1758
|
path: _path + ".type",
|
1693
1759
|
expected: "undefined",
|
1694
1760
|
value: input.type
|
@@ -1717,7 +1783,7 @@ class MigrateApplication {
|
|
1717
1783
|
expected: "string",
|
1718
1784
|
value: input["in"]
|
1719
1785
|
})].every(flag => flag);
|
1720
|
-
const $
|
1786
|
+
const $vo26 = (input, _path, _exceptionable = true) => ["null" === input.type || $report(_exceptionable, {
|
1721
1787
|
path: _path + ".type",
|
1722
1788
|
expected: "\"null\"",
|
1723
1789
|
value: input.type
|
@@ -1742,7 +1808,7 @@ class MigrateApplication {
|
|
1742
1808
|
expected: "string",
|
1743
1809
|
value: input["in"]
|
1744
1810
|
})].every(flag => flag);
|
1745
|
-
const $
|
1811
|
+
const $vo27 = (input, _path, _exceptionable = true) => [(Array.isArray(input.allOf) || $report(_exceptionable, {
|
1746
1812
|
path: _path + ".allOf",
|
1747
1813
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
1748
1814
|
value: input.allOf
|
@@ -1779,7 +1845,7 @@ class MigrateApplication {
|
|
1779
1845
|
expected: "string",
|
1780
1846
|
value: input["in"]
|
1781
1847
|
})].every(flag => flag);
|
1782
|
-
const $
|
1848
|
+
const $vo28 = (input, _path, _exceptionable = true) => [(Array.isArray(input["x-anyOf"]) || $report(_exceptionable, {
|
1783
1849
|
path: _path + "[\"x-anyOf\"]",
|
1784
1850
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
1785
1851
|
value: input["x-anyOf"]
|
@@ -1816,7 +1882,7 @@ class MigrateApplication {
|
|
1816
1882
|
expected: "string",
|
1817
1883
|
value: input["in"]
|
1818
1884
|
})].every(flag => flag);
|
1819
|
-
const $
|
1885
|
+
const $vo29 = (input, _path, _exceptionable = true) => [(Array.isArray(input["x-oneOf"]) || $report(_exceptionable, {
|
1820
1886
|
path: _path + "[\"x-oneOf\"]",
|
1821
1887
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
1822
1888
|
value: input["x-oneOf"]
|
@@ -1853,7 +1919,7 @@ class MigrateApplication {
|
|
1853
1919
|
expected: "string",
|
1854
1920
|
value: input["in"]
|
1855
1921
|
})].every(flag => flag);
|
1856
|
-
const $
|
1922
|
+
const $vo30 = (input, _path, _exceptionable = true) => [("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
1857
1923
|
path: _path + ".schema",
|
1858
1924
|
expected: "(SwaggerV2.IJsonSchema.IAllOf | 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)",
|
1859
1925
|
value: input.schema
|
@@ -1878,7 +1944,7 @@ class MigrateApplication {
|
|
1878
1944
|
expected: "(boolean | undefined)",
|
1879
1945
|
value: input.required
|
1880
1946
|
})].every(flag => flag);
|
1881
|
-
const $
|
1947
|
+
const $vo31 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
1882
1948
|
const value = input[key];
|
1883
1949
|
if (undefined === value)
|
1884
1950
|
return true;
|
@@ -1886,13 +1952,13 @@ class MigrateApplication {
|
|
1886
1952
|
path: _path + $join(key),
|
1887
1953
|
expected: "SwaggerV2.IOperation.IResponse",
|
1888
1954
|
value: value
|
1889
|
-
})) && $
|
1955
|
+
})) && $vo32(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
1890
1956
|
path: _path + $join(key),
|
1891
1957
|
expected: "SwaggerV2.IOperation.IResponse",
|
1892
1958
|
value: value
|
1893
1959
|
});
|
1894
1960
|
}).every(flag => flag)].every(flag => flag);
|
1895
|
-
const $
|
1961
|
+
const $vo32 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
1896
1962
|
path: _path + ".description",
|
1897
1963
|
expected: "(string | undefined)",
|
1898
1964
|
value: input.description
|
@@ -1900,7 +1966,7 @@ class MigrateApplication {
|
|
1900
1966
|
path: _path + ".headers",
|
1901
1967
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
1902
1968
|
value: input.headers
|
1903
|
-
})) && $
|
1969
|
+
})) && $vo4(input.headers, _path + ".headers", true && _exceptionable) || $report(_exceptionable, {
|
1904
1970
|
path: _path + ".headers",
|
1905
1971
|
expected: "(Record<string, SwaggerV2.IJsonSchema> | undefined)",
|
1906
1972
|
value: input.headers
|
@@ -1913,7 +1979,7 @@ class MigrateApplication {
|
|
1913
1979
|
expected: "(SwaggerV2.IJsonSchema.IAllOf | 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)",
|
1914
1980
|
value: input.schema
|
1915
1981
|
})].every(flag => flag);
|
1916
|
-
const $
|
1982
|
+
const $vo33 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
1917
1983
|
const value = input[key];
|
1918
1984
|
if (undefined === value)
|
1919
1985
|
return true;
|
@@ -1927,11 +1993,11 @@ class MigrateApplication {
|
|
1927
1993
|
value: value
|
1928
1994
|
});
|
1929
1995
|
}).every(flag => flag)].every(flag => flag);
|
1930
|
-
const $
|
1996
|
+
const $vo34 = (input, _path, _exceptionable = true) => ["apiKey" === input.type || $report(_exceptionable, {
|
1931
1997
|
path: _path + ".type",
|
1932
1998
|
expected: "\"apiKey\"",
|
1933
1999
|
value: input.type
|
1934
|
-
}), undefined === input["in"] || "
|
2000
|
+
}), undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
1935
2001
|
path: _path + "[\"in\"]",
|
1936
2002
|
expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
|
1937
2003
|
value: input["in"]
|
@@ -1944,7 +2010,7 @@ class MigrateApplication {
|
|
1944
2010
|
expected: "(string | undefined)",
|
1945
2011
|
value: input.description
|
1946
2012
|
})].every(flag => flag);
|
1947
|
-
const $
|
2013
|
+
const $vo35 = (input, _path, _exceptionable = true) => ["basic" === input.type || $report(_exceptionable, {
|
1948
2014
|
path: _path + ".type",
|
1949
2015
|
expected: "\"basic\"",
|
1950
2016
|
value: input.type
|
@@ -1957,7 +2023,7 @@ class MigrateApplication {
|
|
1957
2023
|
expected: "(string | undefined)",
|
1958
2024
|
value: input.description
|
1959
2025
|
})].every(flag => flag);
|
1960
|
-
const $
|
2026
|
+
const $vo36 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
1961
2027
|
path: _path + ".type",
|
1962
2028
|
expected: "\"oauth2\"",
|
1963
2029
|
value: input.type
|
@@ -1973,7 +2039,7 @@ class MigrateApplication {
|
|
1973
2039
|
path: _path + ".scopes",
|
1974
2040
|
expected: "(Record<string, string> | undefined)",
|
1975
2041
|
value: input.scopes
|
1976
|
-
})) && $
|
2042
|
+
})) && $vo37(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
1977
2043
|
path: _path + ".scopes",
|
1978
2044
|
expected: "(Record<string, string> | undefined)",
|
1979
2045
|
value: input.scopes
|
@@ -1982,7 +2048,7 @@ class MigrateApplication {
|
|
1982
2048
|
expected: "(string | undefined)",
|
1983
2049
|
value: input.description
|
1984
2050
|
})].every(flag => flag);
|
1985
|
-
const $
|
2051
|
+
const $vo37 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
1986
2052
|
const value = input[key];
|
1987
2053
|
if (undefined === value)
|
1988
2054
|
return true;
|
@@ -1992,7 +2058,7 @@ class MigrateApplication {
|
|
1992
2058
|
value: value
|
1993
2059
|
});
|
1994
2060
|
}).every(flag => flag)].every(flag => flag);
|
1995
|
-
const $
|
2061
|
+
const $vo38 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
1996
2062
|
path: _path + ".type",
|
1997
2063
|
expected: "\"oauth2\"",
|
1998
2064
|
value: input.type
|
@@ -2012,7 +2078,7 @@ class MigrateApplication {
|
|
2012
2078
|
path: _path + ".scopes",
|
2013
2079
|
expected: "(Record<string, string> | undefined)",
|
2014
2080
|
value: input.scopes
|
2015
|
-
})) && $
|
2081
|
+
})) && $vo37(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
2016
2082
|
path: _path + ".scopes",
|
2017
2083
|
expected: "(Record<string, string> | undefined)",
|
2018
2084
|
value: input.scopes
|
@@ -2021,7 +2087,7 @@ class MigrateApplication {
|
|
2021
2087
|
expected: "(string | undefined)",
|
2022
2088
|
value: input.description
|
2023
2089
|
})].every(flag => flag);
|
2024
|
-
const $
|
2090
|
+
const $vo39 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
2025
2091
|
path: _path + ".type",
|
2026
2092
|
expected: "\"oauth2\"",
|
2027
2093
|
value: input.type
|
@@ -2037,7 +2103,7 @@ class MigrateApplication {
|
|
2037
2103
|
path: _path + ".scopes",
|
2038
2104
|
expected: "(Record<string, string> | undefined)",
|
2039
2105
|
value: input.scopes
|
2040
|
-
})) && $
|
2106
|
+
})) && $vo37(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
2041
2107
|
path: _path + ".scopes",
|
2042
2108
|
expected: "(Record<string, string> | undefined)",
|
2043
2109
|
value: input.scopes
|
@@ -2046,7 +2112,7 @@ class MigrateApplication {
|
|
2046
2112
|
expected: "(string | undefined)",
|
2047
2113
|
value: input.description
|
2048
2114
|
})].every(flag => flag);
|
2049
|
-
const $
|
2115
|
+
const $vo40 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
2050
2116
|
path: _path + ".type",
|
2051
2117
|
expected: "\"oauth2\"",
|
2052
2118
|
value: input.type
|
@@ -2062,7 +2128,7 @@ class MigrateApplication {
|
|
2062
2128
|
path: _path + ".scopes",
|
2063
2129
|
expected: "(Record<string, string> | undefined)",
|
2064
2130
|
value: input.scopes
|
2065
|
-
})) && $
|
2131
|
+
})) && $vo37(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
2066
2132
|
path: _path + ".scopes",
|
2067
2133
|
expected: "(Record<string, string> | undefined)",
|
2068
2134
|
value: input.scopes
|
@@ -2071,7 +2137,7 @@ class MigrateApplication {
|
|
2071
2137
|
expected: "(string | undefined)",
|
2072
2138
|
value: input.description
|
2073
2139
|
})].every(flag => flag);
|
2074
|
-
const $
|
2140
|
+
const $vo41 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
2075
2141
|
const value = input[key];
|
2076
2142
|
if (undefined === value)
|
2077
2143
|
return true;
|
@@ -2089,7 +2155,7 @@ class MigrateApplication {
|
|
2089
2155
|
value: value
|
2090
2156
|
});
|
2091
2157
|
}).every(flag => flag)].every(flag => flag);
|
2092
|
-
const $
|
2158
|
+
const $vo42 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
2093
2159
|
const value = input[key];
|
2094
2160
|
if (undefined === value)
|
2095
2161
|
return true;
|
@@ -2097,13 +2163,13 @@ class MigrateApplication {
|
|
2097
2163
|
path: _path + $join(key),
|
2098
2164
|
expected: "SwaggerV2.IPathItem",
|
2099
2165
|
value: value
|
2100
|
-
})) && $
|
2166
|
+
})) && $vo43(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
2101
2167
|
path: _path + $join(key),
|
2102
2168
|
expected: "SwaggerV2.IPathItem",
|
2103
2169
|
value: value
|
2104
2170
|
});
|
2105
2171
|
}).every(flag => flag)].every(flag => flag);
|
2106
|
-
const $
|
2172
|
+
const $vo43 = (input, _path, _exceptionable = true) => [undefined === input.parameters || (Array.isArray(input.parameters) || $report(_exceptionable, {
|
2107
2173
|
path: _path + ".parameters",
|
2108
2174
|
expected: "(Array<IParameter | IReference<`#/parameters/${string}`>> | undefined)",
|
2109
2175
|
value: input.parameters
|
@@ -2123,7 +2189,7 @@ class MigrateApplication {
|
|
2123
2189
|
path: _path + ".get",
|
2124
2190
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2125
2191
|
value: input.get
|
2126
|
-
})) && $
|
2192
|
+
})) && $vo45(input.get, _path + ".get", true && _exceptionable) || $report(_exceptionable, {
|
2127
2193
|
path: _path + ".get",
|
2128
2194
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2129
2195
|
value: input.get
|
@@ -2131,7 +2197,7 @@ class MigrateApplication {
|
|
2131
2197
|
path: _path + ".post",
|
2132
2198
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2133
2199
|
value: input.post
|
2134
|
-
})) && $
|
2200
|
+
})) && $vo45(input.post, _path + ".post", true && _exceptionable) || $report(_exceptionable, {
|
2135
2201
|
path: _path + ".post",
|
2136
2202
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2137
2203
|
value: input.post
|
@@ -2139,7 +2205,7 @@ class MigrateApplication {
|
|
2139
2205
|
path: _path + ".put",
|
2140
2206
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2141
2207
|
value: input.put
|
2142
|
-
})) && $
|
2208
|
+
})) && $vo45(input.put, _path + ".put", true && _exceptionable) || $report(_exceptionable, {
|
2143
2209
|
path: _path + ".put",
|
2144
2210
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2145
2211
|
value: input.put
|
@@ -2147,7 +2213,7 @@ class MigrateApplication {
|
|
2147
2213
|
path: _path + "[\"delete\"]",
|
2148
2214
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2149
2215
|
value: input["delete"]
|
2150
|
-
})) && $
|
2216
|
+
})) && $vo45(input["delete"], _path + "[\"delete\"]", true && _exceptionable) || $report(_exceptionable, {
|
2151
2217
|
path: _path + "[\"delete\"]",
|
2152
2218
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2153
2219
|
value: input["delete"]
|
@@ -2155,7 +2221,7 @@ class MigrateApplication {
|
|
2155
2221
|
path: _path + ".options",
|
2156
2222
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2157
2223
|
value: input.options
|
2158
|
-
})) && $
|
2224
|
+
})) && $vo45(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
|
2159
2225
|
path: _path + ".options",
|
2160
2226
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2161
2227
|
value: input.options
|
@@ -2163,7 +2229,7 @@ class MigrateApplication {
|
|
2163
2229
|
path: _path + ".head",
|
2164
2230
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2165
2231
|
value: input.head
|
2166
|
-
})) && $
|
2232
|
+
})) && $vo45(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
2167
2233
|
path: _path + ".head",
|
2168
2234
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2169
2235
|
value: input.head
|
@@ -2171,7 +2237,7 @@ class MigrateApplication {
|
|
2171
2237
|
path: _path + ".patch",
|
2172
2238
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2173
2239
|
value: input.patch
|
2174
|
-
})) && $
|
2240
|
+
})) && $vo45(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
2175
2241
|
path: _path + ".patch",
|
2176
2242
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2177
2243
|
value: input.patch
|
@@ -2179,14 +2245,14 @@ class MigrateApplication {
|
|
2179
2245
|
path: _path + ".trace",
|
2180
2246
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2181
2247
|
value: input.trace
|
2182
|
-
})) && $
|
2248
|
+
})) && $vo45(input.trace, _path + ".trace", true && _exceptionable) || $report(_exceptionable, {
|
2183
2249
|
path: _path + ".trace",
|
2184
2250
|
expected: "(SwaggerV2.IOperation | undefined)",
|
2185
2251
|
value: input.trace
|
2186
2252
|
})].every(flag => flag);
|
2187
|
-
const $
|
2253
|
+
const $vo44 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/parameters\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
2188
2254
|
path: _path + ".$ref",
|
2189
|
-
expected: "
|
2255
|
+
expected: "`[object Object]${string}`",
|
2190
2256
|
value: input.$ref
|
2191
2257
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
2192
2258
|
path: _path + ".title",
|
@@ -2201,7 +2267,7 @@ class MigrateApplication {
|
|
2201
2267
|
expected: "(boolean | undefined)",
|
2202
2268
|
value: input.deprecated
|
2203
2269
|
})].every(flag => flag);
|
2204
|
-
const $
|
2270
|
+
const $vo45 = (input, _path, _exceptionable = true) => [undefined === input.operationId || "string" === typeof input.operationId || $report(_exceptionable, {
|
2205
2271
|
path: _path + ".operationId",
|
2206
2272
|
expected: "(string | undefined)",
|
2207
2273
|
value: input.operationId
|
@@ -2225,7 +2291,7 @@ class MigrateApplication {
|
|
2225
2291
|
path: _path + ".responses",
|
2226
2292
|
expected: "(Record<string, IResponse | IReference<`#/definitions/responses/${string}`>> | undefined)",
|
2227
2293
|
value: input.responses
|
2228
|
-
})) && $
|
2294
|
+
})) && $vo47(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
2229
2295
|
path: _path + ".responses",
|
2230
2296
|
expected: "(Record<string, IResponse | IReference<`#/definitions/responses/${string}`>> | undefined)",
|
2231
2297
|
value: input.responses
|
@@ -2245,7 +2311,7 @@ class MigrateApplication {
|
|
2245
2311
|
path: _path + ".security[" + _index24 + "]",
|
2246
2312
|
expected: "Record<string, Array<string>>",
|
2247
2313
|
value: elem
|
2248
|
-
})) && $
|
2314
|
+
})) && $vo41(elem, _path + ".security[" + _index24 + "]", true && _exceptionable) || $report(_exceptionable, {
|
2249
2315
|
path: _path + ".security[" + _index24 + "]",
|
2250
2316
|
expected: "Record<string, Array<string>>",
|
2251
2317
|
value: elem
|
@@ -2270,9 +2336,9 @@ class MigrateApplication {
|
|
2270
2336
|
expected: "(boolean | undefined)",
|
2271
2337
|
value: input.deprecated
|
2272
2338
|
})].every(flag => flag);
|
2273
|
-
const $
|
2339
|
+
const $vo46 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/definitions\/parameters\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
2274
2340
|
path: _path + ".$ref",
|
2275
|
-
expected: "
|
2341
|
+
expected: "`[object Object]${string}`",
|
2276
2342
|
value: input.$ref
|
2277
2343
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
2278
2344
|
path: _path + ".title",
|
@@ -2287,7 +2353,7 @@ class MigrateApplication {
|
|
2287
2353
|
expected: "(boolean | undefined)",
|
2288
2354
|
value: input.deprecated
|
2289
2355
|
})].every(flag => flag);
|
2290
|
-
const $
|
2356
|
+
const $vo47 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
2291
2357
|
const value = input[key];
|
2292
2358
|
if (undefined === value)
|
2293
2359
|
return true;
|
@@ -2301,9 +2367,9 @@ class MigrateApplication {
|
|
2301
2367
|
value: value
|
2302
2368
|
});
|
2303
2369
|
}).every(flag => flag)].every(flag => flag);
|
2304
|
-
const $
|
2370
|
+
const $vo48 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/definitions\/responses\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
2305
2371
|
path: _path + ".$ref",
|
2306
|
-
expected: "
|
2372
|
+
expected: "`[object Object]${string}`",
|
2307
2373
|
value: input.$ref
|
2308
2374
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
2309
2375
|
path: _path + ".title",
|
@@ -2318,7 +2384,7 @@ class MigrateApplication {
|
|
2318
2384
|
expected: "(boolean | undefined)",
|
2319
2385
|
value: input.deprecated
|
2320
2386
|
})].every(flag => flag);
|
2321
|
-
const $
|
2387
|
+
const $vo49 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
2322
2388
|
path: _path + ".name",
|
2323
2389
|
expected: "string",
|
2324
2390
|
value: input.name
|
@@ -2327,17 +2393,17 @@ class MigrateApplication {
|
|
2327
2393
|
expected: "(string | undefined)",
|
2328
2394
|
value: input.description
|
2329
2395
|
})].every(flag => flag);
|
2330
|
-
const $
|
2396
|
+
const $vo50 = (input, _path, _exceptionable = true) => [(null !== input.openapi || $report(_exceptionable, {
|
2331
2397
|
path: _path + ".openapi",
|
2332
|
-
expected: "(\"3.0\" | `
|
2398
|
+
expected: "(\"3.0\" | `[object Object]${number}`)",
|
2333
2399
|
value: input.openapi
|
2334
2400
|
})) && (undefined !== input.openapi || $report(_exceptionable, {
|
2335
2401
|
path: _path + ".openapi",
|
2336
|
-
expected: "(\"3.0\" | `
|
2402
|
+
expected: "(\"3.0\" | `[object Object]${number}`)",
|
2337
2403
|
value: input.openapi
|
2338
2404
|
})) && ("3.0" === input.openapi || "string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) || $report(_exceptionable, {
|
2339
2405
|
path: _path + ".openapi",
|
2340
|
-
expected: "(\"3.0\" | `
|
2406
|
+
expected: "(\"3.0\" | `[object Object]${number}`)",
|
2341
2407
|
value: input.openapi
|
2342
2408
|
})), undefined === input.servers || (Array.isArray(input.servers) || $report(_exceptionable, {
|
2343
2409
|
path: _path + ".servers",
|
@@ -2347,7 +2413,7 @@ class MigrateApplication {
|
|
2347
2413
|
path: _path + ".servers[" + _index26 + "]",
|
2348
2414
|
expected: "OpenApiV3.IServer",
|
2349
2415
|
value: elem
|
2350
|
-
})) && $
|
2416
|
+
})) && $vo51(elem, _path + ".servers[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
|
2351
2417
|
path: _path + ".servers[" + _index26 + "]",
|
2352
2418
|
expected: "OpenApiV3.IServer",
|
2353
2419
|
value: elem
|
@@ -2359,7 +2425,7 @@ class MigrateApplication {
|
|
2359
2425
|
path: _path + ".info",
|
2360
2426
|
expected: "(OpenApiV3.IDocument.IInfo | undefined)",
|
2361
2427
|
value: input.info
|
2362
|
-
})) && $
|
2428
|
+
})) && $vo54(input.info, _path + ".info", true && _exceptionable) || $report(_exceptionable, {
|
2363
2429
|
path: _path + ".info",
|
2364
2430
|
expected: "(OpenApiV3.IDocument.IInfo | undefined)",
|
2365
2431
|
value: input.info
|
@@ -2367,7 +2433,7 @@ class MigrateApplication {
|
|
2367
2433
|
path: _path + ".components",
|
2368
2434
|
expected: "(OpenApiV3.IComponents | undefined)",
|
2369
2435
|
value: input.components
|
2370
|
-
})) && $
|
2436
|
+
})) && $vo57(input.components, _path + ".components", true && _exceptionable) || $report(_exceptionable, {
|
2371
2437
|
path: _path + ".components",
|
2372
2438
|
expected: "(OpenApiV3.IComponents | undefined)",
|
2373
2439
|
value: input.components
|
@@ -2375,7 +2441,7 @@ class MigrateApplication {
|
|
2375
2441
|
path: _path + ".paths",
|
2376
2442
|
expected: "(Record<string, OpenApiV3.IPathItem> | undefined)",
|
2377
2443
|
value: input.paths
|
2378
|
-
})) && $
|
2444
|
+
})) && $vo93(input.paths, _path + ".paths", true && _exceptionable) || $report(_exceptionable, {
|
2379
2445
|
path: _path + ".paths",
|
2380
2446
|
expected: "(Record<string, OpenApiV3.IPathItem> | undefined)",
|
2381
2447
|
value: input.paths
|
@@ -2387,7 +2453,7 @@ class MigrateApplication {
|
|
2387
2453
|
path: _path + ".security[" + _index27 + "]",
|
2388
2454
|
expected: "Record<string, Array<string>>",
|
2389
2455
|
value: elem
|
2390
|
-
})) && $
|
2456
|
+
})) && $vo41(elem, _path + ".security[" + _index27 + "]", true && _exceptionable) || $report(_exceptionable, {
|
2391
2457
|
path: _path + ".security[" + _index27 + "]",
|
2392
2458
|
expected: "Record<string, Array<string>>",
|
2393
2459
|
value: elem
|
@@ -2403,7 +2469,7 @@ class MigrateApplication {
|
|
2403
2469
|
path: _path + ".tags[" + _index28 + "]",
|
2404
2470
|
expected: "OpenApiV3.IDocument.ITag",
|
2405
2471
|
value: elem
|
2406
|
-
})) && $
|
2472
|
+
})) && $vo100(elem, _path + ".tags[" + _index28 + "]", true && _exceptionable) || $report(_exceptionable, {
|
2407
2473
|
path: _path + ".tags[" + _index28 + "]",
|
2408
2474
|
expected: "OpenApiV3.IDocument.ITag",
|
2409
2475
|
value: elem
|
@@ -2412,7 +2478,7 @@ class MigrateApplication {
|
|
2412
2478
|
expected: "(Array<OpenApiV3.IDocument.ITag> | undefined)",
|
2413
2479
|
value: input.tags
|
2414
2480
|
})].every(flag => flag);
|
2415
|
-
const $
|
2481
|
+
const $vo51 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || $report(_exceptionable, {
|
2416
2482
|
path: _path + ".url",
|
2417
2483
|
expected: "string",
|
2418
2484
|
value: input.url
|
@@ -2424,12 +2490,12 @@ class MigrateApplication {
|
|
2424
2490
|
path: _path + ".variables",
|
2425
2491
|
expected: "(Record<string, OpenApiV3.IServer.IVariable> | undefined)",
|
2426
2492
|
value: input.variables
|
2427
|
-
})) && $
|
2493
|
+
})) && $vo52(input.variables, _path + ".variables", true && _exceptionable) || $report(_exceptionable, {
|
2428
2494
|
path: _path + ".variables",
|
2429
2495
|
expected: "(Record<string, OpenApiV3.IServer.IVariable> | undefined)",
|
2430
2496
|
value: input.variables
|
2431
2497
|
})].every(flag => flag);
|
2432
|
-
const $
|
2498
|
+
const $vo52 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
2433
2499
|
const value = input[key];
|
2434
2500
|
if (undefined === value)
|
2435
2501
|
return true;
|
@@ -2437,13 +2503,13 @@ class MigrateApplication {
|
|
2437
2503
|
path: _path + $join(key),
|
2438
2504
|
expected: "OpenApiV3.IServer.IVariable",
|
2439
2505
|
value: value
|
2440
|
-
})) && $
|
2506
|
+
})) && $vo53(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
2441
2507
|
path: _path + $join(key),
|
2442
2508
|
expected: "OpenApiV3.IServer.IVariable",
|
2443
2509
|
value: value
|
2444
2510
|
});
|
2445
2511
|
}).every(flag => flag)].every(flag => flag);
|
2446
|
-
const $
|
2512
|
+
const $vo53 = (input, _path, _exceptionable = true) => ["string" === typeof input["default"] || $report(_exceptionable, {
|
2447
2513
|
path: _path + "[\"default\"]",
|
2448
2514
|
expected: "string",
|
2449
2515
|
value: input["default"]
|
@@ -2464,7 +2530,7 @@ class MigrateApplication {
|
|
2464
2530
|
expected: "(string | undefined)",
|
2465
2531
|
value: input.description
|
2466
2532
|
})].every(flag => flag);
|
2467
|
-
const $
|
2533
|
+
const $vo54 = (input, _path, _exceptionable = true) => ["string" === typeof input.title || $report(_exceptionable, {
|
2468
2534
|
path: _path + ".title",
|
2469
2535
|
expected: "string",
|
2470
2536
|
value: input.title
|
@@ -2480,7 +2546,7 @@ class MigrateApplication {
|
|
2480
2546
|
path: _path + ".contact",
|
2481
2547
|
expected: "(OpenApiV3.IDocument.IContact | undefined)",
|
2482
2548
|
value: input.contact
|
2483
|
-
})) && $
|
2549
|
+
})) && $vo55(input.contact, _path + ".contact", true && _exceptionable) || $report(_exceptionable, {
|
2484
2550
|
path: _path + ".contact",
|
2485
2551
|
expected: "(OpenApiV3.IDocument.IContact | undefined)",
|
2486
2552
|
value: input.contact
|
@@ -2488,7 +2554,7 @@ class MigrateApplication {
|
|
2488
2554
|
path: _path + ".license",
|
2489
2555
|
expected: "(OpenApiV3.IDocument.ILicense | undefined)",
|
2490
2556
|
value: input.license
|
2491
|
-
})) && $
|
2557
|
+
})) && $vo56(input.license, _path + ".license", true && _exceptionable) || $report(_exceptionable, {
|
2492
2558
|
path: _path + ".license",
|
2493
2559
|
expected: "(OpenApiV3.IDocument.ILicense | undefined)",
|
2494
2560
|
value: input.license
|
@@ -2497,7 +2563,7 @@ class MigrateApplication {
|
|
2497
2563
|
expected: "string",
|
2498
2564
|
value: input.version
|
2499
2565
|
})].every(flag => flag);
|
2500
|
-
const $
|
2566
|
+
const $vo55 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
2501
2567
|
path: _path + ".name",
|
2502
2568
|
expected: "(string | undefined)",
|
2503
2569
|
value: input.name
|
@@ -2510,7 +2576,7 @@ class MigrateApplication {
|
|
2510
2576
|
expected: "(string | undefined)",
|
2511
2577
|
value: input.email
|
2512
2578
|
})].every(flag => flag);
|
2513
|
-
const $
|
2579
|
+
const $vo56 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
2514
2580
|
path: _path + ".name",
|
2515
2581
|
expected: "string",
|
2516
2582
|
value: input.name
|
@@ -2519,11 +2585,11 @@ class MigrateApplication {
|
|
2519
2585
|
expected: "(string | undefined)",
|
2520
2586
|
value: input.url
|
2521
2587
|
})].every(flag => flag);
|
2522
|
-
const $
|
2588
|
+
const $vo57 = (input, _path, _exceptionable = true) => [undefined === input.schemas || ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || $report(_exceptionable, {
|
2523
2589
|
path: _path + ".schemas",
|
2524
2590
|
expected: "(Record<string, OpenApiV3.IJsonSchema> | undefined)",
|
2525
2591
|
value: input.schemas
|
2526
|
-
})) && $
|
2592
|
+
})) && $vo58(input.schemas, _path + ".schemas", true && _exceptionable) || $report(_exceptionable, {
|
2527
2593
|
path: _path + ".schemas",
|
2528
2594
|
expected: "(Record<string, OpenApiV3.IJsonSchema> | undefined)",
|
2529
2595
|
value: input.schemas
|
@@ -2531,7 +2597,7 @@ class MigrateApplication {
|
|
2531
2597
|
path: _path + ".responses",
|
2532
2598
|
expected: "(Record<string, OpenApiV3.IOperation.IResponse> | undefined)",
|
2533
2599
|
value: input.responses
|
2534
|
-
})) && $
|
2600
|
+
})) && $vo71(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
2535
2601
|
path: _path + ".responses",
|
2536
2602
|
expected: "(Record<string, OpenApiV3.IOperation.IResponse> | undefined)",
|
2537
2603
|
value: input.responses
|
@@ -2539,7 +2605,7 @@ class MigrateApplication {
|
|
2539
2605
|
path: _path + ".parameters",
|
2540
2606
|
expected: "(Record<string, OpenApiV3.IOperation.IParameter> | undefined)",
|
2541
2607
|
value: input.parameters
|
2542
|
-
})) && $
|
2608
|
+
})) && $vo78(input.parameters, _path + ".parameters", true && _exceptionable) || $report(_exceptionable, {
|
2543
2609
|
path: _path + ".parameters",
|
2544
2610
|
expected: "(Record<string, OpenApiV3.IOperation.IParameter> | undefined)",
|
2545
2611
|
value: input.parameters
|
@@ -2547,7 +2613,7 @@ class MigrateApplication {
|
|
2547
2613
|
path: _path + ".requestBodies",
|
2548
2614
|
expected: "(Record<string, OpenApiV3.IOperation.IRequestBody> | undefined)",
|
2549
2615
|
value: input.requestBodies
|
2550
|
-
})) && $
|
2616
|
+
})) && $vo80(input.requestBodies, _path + ".requestBodies", true && _exceptionable) || $report(_exceptionable, {
|
2551
2617
|
path: _path + ".requestBodies",
|
2552
2618
|
expected: "(Record<string, OpenApiV3.IOperation.IRequestBody> | undefined)",
|
2553
2619
|
value: input.requestBodies
|
@@ -2555,7 +2621,7 @@ class MigrateApplication {
|
|
2555
2621
|
path: _path + ".securitySchemes",
|
2556
2622
|
expected: "(Record<string, OpenApiV3.ISecurityScheme> | undefined)",
|
2557
2623
|
value: input.securitySchemes
|
2558
|
-
})) && $
|
2624
|
+
})) && $vo82(input.securitySchemes, _path + ".securitySchemes", true && _exceptionable) || $report(_exceptionable, {
|
2559
2625
|
path: _path + ".securitySchemes",
|
2560
2626
|
expected: "(Record<string, OpenApiV3.ISecurityScheme> | undefined)",
|
2561
2627
|
value: input.securitySchemes
|
@@ -2563,12 +2629,12 @@ class MigrateApplication {
|
|
2563
2629
|
path: _path + ".headers",
|
2564
2630
|
expected: "(Record<string, Omit<OpenApiV3.IOperation.IParameter, \"in\">> | undefined)",
|
2565
2631
|
value: input.headers
|
2566
|
-
})) && $
|
2632
|
+
})) && $vo92(input.headers, _path + ".headers", true && _exceptionable) || $report(_exceptionable, {
|
2567
2633
|
path: _path + ".headers",
|
2568
2634
|
expected: "(Record<string, Omit<OpenApiV3.IOperation.IParameter, \"in\">> | undefined)",
|
2569
2635
|
value: input.headers
|
2570
2636
|
})].every(flag => flag);
|
2571
|
-
const $
|
2637
|
+
const $vo58 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
2572
2638
|
const value = input[key];
|
2573
2639
|
if (undefined === value)
|
2574
2640
|
return true;
|
@@ -2582,7 +2648,7 @@ class MigrateApplication {
|
|
2582
2648
|
value: value
|
2583
2649
|
});
|
2584
2650
|
}).every(flag => flag)].every(flag => flag);
|
2585
|
-
const $
|
2651
|
+
const $vo59 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "boolean" === typeof input["default"] || $report(_exceptionable, {
|
2586
2652
|
path: _path + "[\"default\"]",
|
2587
2653
|
expected: "(boolean | undefined)",
|
2588
2654
|
value: input["default"]
|
@@ -2619,7 +2685,7 @@ class MigrateApplication {
|
|
2619
2685
|
expected: "(boolean | undefined)",
|
2620
2686
|
value: input.deprecated
|
2621
2687
|
})].every(flag => flag);
|
2622
|
-
const $
|
2688
|
+
const $vo60 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647 || $report(_exceptionable, {
|
2623
2689
|
path: _path + "[\"default\"]",
|
2624
2690
|
expected: "number & Type<\"int32\">",
|
2625
2691
|
value: input["default"]
|
@@ -2692,7 +2758,7 @@ class MigrateApplication {
|
|
2692
2758
|
expected: "(boolean | undefined)",
|
2693
2759
|
value: input.deprecated
|
2694
2760
|
})].every(flag => flag);
|
2695
|
-
const $
|
2761
|
+
const $vo61 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] || $report(_exceptionable, {
|
2696
2762
|
path: _path + "[\"default\"]",
|
2697
2763
|
expected: "(number | undefined)",
|
2698
2764
|
value: input["default"]
|
@@ -2749,7 +2815,7 @@ class MigrateApplication {
|
|
2749
2815
|
expected: "(boolean | undefined)",
|
2750
2816
|
value: input.deprecated
|
2751
2817
|
})].every(flag => flag);
|
2752
|
-
const $
|
2818
|
+
const $vo62 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "string" === typeof input["default"] || $report(_exceptionable, {
|
2753
2819
|
path: _path + "[\"default\"]",
|
2754
2820
|
expected: "(string | undefined)",
|
2755
2821
|
value: input["default"]
|
@@ -2810,7 +2876,7 @@ class MigrateApplication {
|
|
2810
2876
|
expected: "(boolean | undefined)",
|
2811
2877
|
value: input.deprecated
|
2812
2878
|
})].every(flag => flag);
|
2813
|
-
const $
|
2879
|
+
const $vo63 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $report(_exceptionable, {
|
2814
2880
|
path: _path + ".items",
|
2815
2881
|
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)",
|
2816
2882
|
value: input.items
|
@@ -2859,11 +2925,11 @@ class MigrateApplication {
|
|
2859
2925
|
expected: "(boolean | undefined)",
|
2860
2926
|
value: input.deprecated
|
2861
2927
|
})].every(flag => flag);
|
2862
|
-
const $
|
2928
|
+
const $vo64 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $report(_exceptionable, {
|
2863
2929
|
path: _path + ".properties",
|
2864
2930
|
expected: "(Record<string, OpenApiV3.IJsonSchema> | undefined)",
|
2865
2931
|
value: input.properties
|
2866
|
-
})) && $
|
2932
|
+
})) && $vo58(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
|
2867
2933
|
path: _path + ".properties",
|
2868
2934
|
expected: "(Record<string, OpenApiV3.IJsonSchema> | undefined)",
|
2869
2935
|
value: input.properties
|
@@ -2920,7 +2986,7 @@ class MigrateApplication {
|
|
2920
2986
|
expected: "(boolean | undefined)",
|
2921
2987
|
value: input.deprecated
|
2922
2988
|
})].every(flag => flag);
|
2923
|
-
const $
|
2989
|
+
const $vo65 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || $report(_exceptionable, {
|
2924
2990
|
path: _path + ".$ref",
|
2925
2991
|
expected: "string",
|
2926
2992
|
value: input.$ref
|
@@ -2937,7 +3003,7 @@ class MigrateApplication {
|
|
2937
3003
|
expected: "(boolean | undefined)",
|
2938
3004
|
value: input.deprecated
|
2939
3005
|
})].every(flag => flag);
|
2940
|
-
const $
|
3006
|
+
const $vo66 = (input, _path, _exceptionable = true) => [(null !== input.type || $report(_exceptionable, {
|
2941
3007
|
path: _path + ".type",
|
2942
3008
|
expected: "undefined",
|
2943
3009
|
value: input.type
|
@@ -2958,7 +3024,7 @@ class MigrateApplication {
|
|
2958
3024
|
expected: "(boolean | undefined)",
|
2959
3025
|
value: input.deprecated
|
2960
3026
|
})].every(flag => flag);
|
2961
|
-
const $
|
3027
|
+
const $vo67 = (input, _path, _exceptionable = true) => ["null" === input.type || $report(_exceptionable, {
|
2962
3028
|
path: _path + ".type",
|
2963
3029
|
expected: "\"null\"",
|
2964
3030
|
value: input.type
|
@@ -2975,7 +3041,7 @@ class MigrateApplication {
|
|
2975
3041
|
expected: "(boolean | undefined)",
|
2976
3042
|
value: input.deprecated
|
2977
3043
|
})].every(flag => flag);
|
2978
|
-
const $
|
3044
|
+
const $vo68 = (input, _path, _exceptionable = true) => [(Array.isArray(input.allOf) || $report(_exceptionable, {
|
2979
3045
|
path: _path + ".allOf",
|
2980
3046
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
2981
3047
|
value: input.allOf
|
@@ -3004,7 +3070,7 @@ class MigrateApplication {
|
|
3004
3070
|
expected: "(boolean | undefined)",
|
3005
3071
|
value: input.deprecated
|
3006
3072
|
})].every(flag => flag);
|
3007
|
-
const $
|
3073
|
+
const $vo69 = (input, _path, _exceptionable = true) => [(Array.isArray(input.anyOf) || $report(_exceptionable, {
|
3008
3074
|
path: _path + ".anyOf",
|
3009
3075
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
3010
3076
|
value: input.anyOf
|
@@ -3033,7 +3099,7 @@ class MigrateApplication {
|
|
3033
3099
|
expected: "(boolean | undefined)",
|
3034
3100
|
value: input.deprecated
|
3035
3101
|
})].every(flag => flag);
|
3036
|
-
const $
|
3102
|
+
const $vo70 = (input, _path, _exceptionable = true) => [(Array.isArray(input.oneOf) || $report(_exceptionable, {
|
3037
3103
|
path: _path + ".oneOf",
|
3038
3104
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
3039
3105
|
value: input.oneOf
|
@@ -3062,7 +3128,7 @@ class MigrateApplication {
|
|
3062
3128
|
expected: "(boolean | undefined)",
|
3063
3129
|
value: input.deprecated
|
3064
3130
|
})].every(flag => flag);
|
3065
|
-
const $
|
3131
|
+
const $vo71 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3066
3132
|
const value = input[key];
|
3067
3133
|
if (undefined === value)
|
3068
3134
|
return true;
|
@@ -3070,17 +3136,17 @@ class MigrateApplication {
|
|
3070
3136
|
path: _path + $join(key),
|
3071
3137
|
expected: "OpenApiV3.IOperation.IResponse",
|
3072
3138
|
value: value
|
3073
|
-
})) && $
|
3139
|
+
})) && $vo72(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3074
3140
|
path: _path + $join(key),
|
3075
3141
|
expected: "OpenApiV3.IOperation.IResponse",
|
3076
3142
|
value: value
|
3077
3143
|
});
|
3078
3144
|
}).every(flag => flag)].every(flag => flag);
|
3079
|
-
const $
|
3145
|
+
const $vo72 = (input, _path, _exceptionable = true) => [undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
|
3080
3146
|
path: _path + ".content",
|
3081
3147
|
expected: "(Record<string, OpenApiV3.IOperation.IMediaType> | undefined)",
|
3082
3148
|
value: input.content
|
3083
|
-
})) && $
|
3149
|
+
})) && $vo73(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
3084
3150
|
path: _path + ".content",
|
3085
3151
|
expected: "(Record<string, OpenApiV3.IOperation.IMediaType> | undefined)",
|
3086
3152
|
value: input.content
|
@@ -3088,7 +3154,7 @@ class MigrateApplication {
|
|
3088
3154
|
path: _path + ".headers",
|
3089
3155
|
expected: "(Record<string, Omit<IParameter, \"in\"> | IReference<`#/components/headers/${string}`>> | undefined)",
|
3090
3156
|
value: input.headers
|
3091
|
-
})) && $
|
3157
|
+
})) && $vo75(input.headers, _path + ".headers", true && _exceptionable) || $report(_exceptionable, {
|
3092
3158
|
path: _path + ".headers",
|
3093
3159
|
expected: "(Record<string, Omit<IParameter, \"in\"> | IReference<`#/components/headers/${string}`>> | undefined)",
|
3094
3160
|
value: input.headers
|
@@ -3097,7 +3163,7 @@ class MigrateApplication {
|
|
3097
3163
|
expected: "(string | undefined)",
|
3098
3164
|
value: input.description
|
3099
3165
|
})].every(flag => flag);
|
3100
|
-
const $
|
3166
|
+
const $vo73 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3101
3167
|
const value = input[key];
|
3102
3168
|
if (undefined === value)
|
3103
3169
|
return true;
|
@@ -3105,13 +3171,13 @@ class MigrateApplication {
|
|
3105
3171
|
path: _path + $join(key),
|
3106
3172
|
expected: "OpenApiV3.IOperation.IMediaType",
|
3107
3173
|
value: value
|
3108
|
-
})) && $
|
3174
|
+
})) && $vo74(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3109
3175
|
path: _path + $join(key),
|
3110
3176
|
expected: "OpenApiV3.IOperation.IMediaType",
|
3111
3177
|
value: value
|
3112
3178
|
});
|
3113
3179
|
}).every(flag => flag)].every(flag => flag);
|
3114
|
-
const $
|
3180
|
+
const $vo74 = (input, _path, _exceptionable = true) => [undefined === input.schema || ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
3115
3181
|
path: _path + ".schema",
|
3116
3182
|
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)",
|
3117
3183
|
value: input.schema
|
@@ -3120,7 +3186,7 @@ class MigrateApplication {
|
|
3120
3186
|
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)",
|
3121
3187
|
value: input.schema
|
3122
3188
|
})].every(flag => flag);
|
3123
|
-
const $
|
3189
|
+
const $vo75 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3124
3190
|
const value = input[key];
|
3125
3191
|
if (undefined === value)
|
3126
3192
|
return true;
|
@@ -3134,7 +3200,7 @@ class MigrateApplication {
|
|
3134
3200
|
value: value
|
3135
3201
|
});
|
3136
3202
|
}).every(flag => flag)].every(flag => flag);
|
3137
|
-
const $
|
3203
|
+
const $vo76 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
3138
3204
|
path: _path + ".description",
|
3139
3205
|
expected: "(string | undefined)",
|
3140
3206
|
value: input.description
|
@@ -3155,9 +3221,9 @@ class MigrateApplication {
|
|
3155
3221
|
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)",
|
3156
3222
|
value: input.schema
|
3157
3223
|
})].every(flag => flag);
|
3158
|
-
const $
|
3224
|
+
const $vo77 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
3159
3225
|
path: _path + ".$ref",
|
3160
|
-
expected: "
|
3226
|
+
expected: "`[object Object]${string}`",
|
3161
3227
|
value: input.$ref
|
3162
3228
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
3163
3229
|
path: _path + ".title",
|
@@ -3172,7 +3238,7 @@ class MigrateApplication {
|
|
3172
3238
|
expected: "(boolean | undefined)",
|
3173
3239
|
value: input.deprecated
|
3174
3240
|
})].every(flag => flag);
|
3175
|
-
const $
|
3241
|
+
const $vo78 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3176
3242
|
const value = input[key];
|
3177
3243
|
if (undefined === value)
|
3178
3244
|
return true;
|
@@ -3180,17 +3246,17 @@ class MigrateApplication {
|
|
3180
3246
|
path: _path + $join(key),
|
3181
3247
|
expected: "OpenApiV3.IOperation.IParameter",
|
3182
3248
|
value: value
|
3183
|
-
})) && $
|
3249
|
+
})) && $vo79(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3184
3250
|
path: _path + $join(key),
|
3185
3251
|
expected: "OpenApiV3.IOperation.IParameter",
|
3186
3252
|
value: value
|
3187
3253
|
});
|
3188
3254
|
}).every(flag => flag)].every(flag => flag);
|
3189
|
-
const $
|
3255
|
+
const $vo79 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
3190
3256
|
path: _path + ".name",
|
3191
3257
|
expected: "(string | undefined)",
|
3192
3258
|
value: input.name
|
3193
|
-
}), "
|
3259
|
+
}), "header" === input["in"] || "query" === input["in"] || "path" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
3194
3260
|
path: _path + "[\"in\"]",
|
3195
3261
|
expected: "(\"cookie\" | \"header\" | \"path\" | \"query\")",
|
3196
3262
|
value: input["in"]
|
@@ -3211,7 +3277,7 @@ class MigrateApplication {
|
|
3211
3277
|
expected: "(string | undefined)",
|
3212
3278
|
value: input.description
|
3213
3279
|
})].every(flag => flag);
|
3214
|
-
const $
|
3280
|
+
const $vo80 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3215
3281
|
const value = input[key];
|
3216
3282
|
if (undefined === value)
|
3217
3283
|
return true;
|
@@ -3219,13 +3285,13 @@ class MigrateApplication {
|
|
3219
3285
|
path: _path + $join(key),
|
3220
3286
|
expected: "OpenApiV3.IOperation.IRequestBody",
|
3221
3287
|
value: value
|
3222
|
-
})) && $
|
3288
|
+
})) && $vo81(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3223
3289
|
path: _path + $join(key),
|
3224
3290
|
expected: "OpenApiV3.IOperation.IRequestBody",
|
3225
3291
|
value: value
|
3226
3292
|
});
|
3227
3293
|
}).every(flag => flag)].every(flag => flag);
|
3228
|
-
const $
|
3294
|
+
const $vo81 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
3229
3295
|
path: _path + ".description",
|
3230
3296
|
expected: "(string | undefined)",
|
3231
3297
|
value: input.description
|
@@ -3237,12 +3303,12 @@ class MigrateApplication {
|
|
3237
3303
|
path: _path + ".content",
|
3238
3304
|
expected: "(Record<string, OpenApiV3.IOperation.IMediaType> | undefined)",
|
3239
3305
|
value: input.content
|
3240
|
-
})) && $
|
3306
|
+
})) && $vo73(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
3241
3307
|
path: _path + ".content",
|
3242
3308
|
expected: "(Record<string, OpenApiV3.IOperation.IMediaType> | undefined)",
|
3243
3309
|
value: input.content
|
3244
3310
|
})].every(flag => flag);
|
3245
|
-
const $
|
3311
|
+
const $vo82 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3246
3312
|
const value = input[key];
|
3247
3313
|
if (undefined === value)
|
3248
3314
|
return true;
|
@@ -3256,11 +3322,11 @@ class MigrateApplication {
|
|
3256
3322
|
value: value
|
3257
3323
|
});
|
3258
3324
|
}).every(flag => flag)].every(flag => flag);
|
3259
|
-
const $
|
3325
|
+
const $vo83 = (input, _path, _exceptionable = true) => ["apiKey" === input.type || $report(_exceptionable, {
|
3260
3326
|
path: _path + ".type",
|
3261
3327
|
expected: "\"apiKey\"",
|
3262
3328
|
value: input.type
|
3263
|
-
}), undefined === input["in"] || "
|
3329
|
+
}), undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
3264
3330
|
path: _path + "[\"in\"]",
|
3265
3331
|
expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
|
3266
3332
|
value: input["in"]
|
@@ -3273,7 +3339,7 @@ class MigrateApplication {
|
|
3273
3339
|
expected: "(string | undefined)",
|
3274
3340
|
value: input.description
|
3275
3341
|
})].every(flag => flag);
|
3276
|
-
const $
|
3342
|
+
const $vo84 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
|
3277
3343
|
path: _path + ".type",
|
3278
3344
|
expected: "\"http\"",
|
3279
3345
|
value: input.type
|
@@ -3286,7 +3352,7 @@ class MigrateApplication {
|
|
3286
3352
|
expected: "(string | undefined)",
|
3287
3353
|
value: input.description
|
3288
3354
|
})].every(flag => flag);
|
3289
|
-
const $
|
3355
|
+
const $vo85 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
|
3290
3356
|
path: _path + ".type",
|
3291
3357
|
expected: "\"http\"",
|
3292
3358
|
value: input.type
|
@@ -3303,7 +3369,7 @@ class MigrateApplication {
|
|
3303
3369
|
expected: "(string | undefined)",
|
3304
3370
|
value: input.description
|
3305
3371
|
})].every(flag => flag);
|
3306
|
-
const $
|
3372
|
+
const $vo86 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
3307
3373
|
path: _path + ".type",
|
3308
3374
|
expected: "\"oauth2\"",
|
3309
3375
|
value: input.type
|
@@ -3311,7 +3377,7 @@ class MigrateApplication {
|
|
3311
3377
|
path: _path + ".flows",
|
3312
3378
|
expected: "OpenApiV3.ISecurityScheme.IOAuth2.IFlowSet",
|
3313
3379
|
value: input.flows
|
3314
|
-
})) && $
|
3380
|
+
})) && $vo87(input.flows, _path + ".flows", true && _exceptionable) || $report(_exceptionable, {
|
3315
3381
|
path: _path + ".flows",
|
3316
3382
|
expected: "OpenApiV3.ISecurityScheme.IOAuth2.IFlowSet",
|
3317
3383
|
value: input.flows
|
@@ -3320,11 +3386,11 @@ class MigrateApplication {
|
|
3320
3386
|
expected: "(string | undefined)",
|
3321
3387
|
value: input.description
|
3322
3388
|
})].every(flag => flag);
|
3323
|
-
const $
|
3389
|
+
const $vo87 = (input, _path, _exceptionable = true) => [undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) || $report(_exceptionable, {
|
3324
3390
|
path: _path + ".authorizationCode",
|
3325
3391
|
expected: "(OpenApiV3.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
3326
3392
|
value: input.authorizationCode
|
3327
|
-
})) && $
|
3393
|
+
})) && $vo88(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $report(_exceptionable, {
|
3328
3394
|
path: _path + ".authorizationCode",
|
3329
3395
|
expected: "(OpenApiV3.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
3330
3396
|
value: input.authorizationCode
|
@@ -3332,7 +3398,7 @@ class MigrateApplication {
|
|
3332
3398
|
path: _path + ".implicit",
|
3333
3399
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
3334
3400
|
value: input.implicit
|
3335
|
-
})) && $
|
3401
|
+
})) && $vo89(input.implicit, _path + ".implicit", true && _exceptionable) || $report(_exceptionable, {
|
3336
3402
|
path: _path + ".implicit",
|
3337
3403
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
3338
3404
|
value: input.implicit
|
@@ -3340,7 +3406,7 @@ class MigrateApplication {
|
|
3340
3406
|
path: _path + ".password",
|
3341
3407
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
3342
3408
|
value: input.password
|
3343
|
-
})) && $
|
3409
|
+
})) && $vo90(input.password, _path + ".password", true && _exceptionable) || $report(_exceptionable, {
|
3344
3410
|
path: _path + ".password",
|
3345
3411
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
3346
3412
|
value: input.password
|
@@ -3348,12 +3414,12 @@ class MigrateApplication {
|
|
3348
3414
|
path: _path + ".clientCredentials",
|
3349
3415
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
3350
3416
|
value: input.clientCredentials
|
3351
|
-
})) && $
|
3417
|
+
})) && $vo90(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $report(_exceptionable, {
|
3352
3418
|
path: _path + ".clientCredentials",
|
3353
3419
|
expected: "(Omit<OpenApiV3.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
3354
3420
|
value: input.clientCredentials
|
3355
3421
|
})].every(flag => flag);
|
3356
|
-
const $
|
3422
|
+
const $vo88 = (input, _path, _exceptionable = true) => [undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
3357
3423
|
path: _path + ".authorizationUrl",
|
3358
3424
|
expected: "(string | undefined)",
|
3359
3425
|
value: input.authorizationUrl
|
@@ -3369,16 +3435,16 @@ class MigrateApplication {
|
|
3369
3435
|
path: _path + ".scopes",
|
3370
3436
|
expected: "(Record<string, string> | undefined)",
|
3371
3437
|
value: input.scopes
|
3372
|
-
})) && $
|
3438
|
+
})) && $vo37(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
3373
3439
|
path: _path + ".scopes",
|
3374
3440
|
expected: "(Record<string, string> | undefined)",
|
3375
3441
|
value: input.scopes
|
3376
3442
|
})].every(flag => flag);
|
3377
|
-
const $
|
3443
|
+
const $vo89 = (input, _path, _exceptionable = true) => [undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
3378
3444
|
path: _path + ".scopes",
|
3379
3445
|
expected: "(Record<string, string> | undefined)",
|
3380
3446
|
value: input.scopes
|
3381
|
-
})) && $
|
3447
|
+
})) && $vo37(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
3382
3448
|
path: _path + ".scopes",
|
3383
3449
|
expected: "(Record<string, string> | undefined)",
|
3384
3450
|
value: input.scopes
|
@@ -3391,11 +3457,11 @@ class MigrateApplication {
|
|
3391
3457
|
expected: "(string | undefined)",
|
3392
3458
|
value: input.refreshUrl
|
3393
3459
|
})].every(flag => flag);
|
3394
|
-
const $
|
3460
|
+
const $vo90 = (input, _path, _exceptionable = true) => [undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
3395
3461
|
path: _path + ".scopes",
|
3396
3462
|
expected: "(Record<string, string> | undefined)",
|
3397
3463
|
value: input.scopes
|
3398
|
-
})) && $
|
3464
|
+
})) && $vo37(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
3399
3465
|
path: _path + ".scopes",
|
3400
3466
|
expected: "(Record<string, string> | undefined)",
|
3401
3467
|
value: input.scopes
|
@@ -3408,7 +3474,7 @@ class MigrateApplication {
|
|
3408
3474
|
expected: "(string | undefined)",
|
3409
3475
|
value: input.refreshUrl
|
3410
3476
|
})].every(flag => flag);
|
3411
|
-
const $
|
3477
|
+
const $vo91 = (input, _path, _exceptionable = true) => ["openIdConnect" === input.type || $report(_exceptionable, {
|
3412
3478
|
path: _path + ".type",
|
3413
3479
|
expected: "\"openIdConnect\"",
|
3414
3480
|
value: input.type
|
@@ -3421,7 +3487,7 @@ class MigrateApplication {
|
|
3421
3487
|
expected: "(string | undefined)",
|
3422
3488
|
value: input.description
|
3423
3489
|
})].every(flag => flag);
|
3424
|
-
const $
|
3490
|
+
const $vo92 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3425
3491
|
const value = input[key];
|
3426
3492
|
if (undefined === value)
|
3427
3493
|
return true;
|
@@ -3429,13 +3495,13 @@ class MigrateApplication {
|
|
3429
3495
|
path: _path + $join(key),
|
3430
3496
|
expected: "Omit<OpenApiV3.IOperation.IParameter, \"in\">",
|
3431
3497
|
value: value
|
3432
|
-
})) && $
|
3498
|
+
})) && $vo76(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3433
3499
|
path: _path + $join(key),
|
3434
3500
|
expected: "Omit<OpenApiV3.IOperation.IParameter, \"in\">",
|
3435
3501
|
value: value
|
3436
3502
|
});
|
3437
3503
|
}).every(flag => flag)].every(flag => flag);
|
3438
|
-
const $
|
3504
|
+
const $vo93 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3439
3505
|
const value = input[key];
|
3440
3506
|
if (undefined === value)
|
3441
3507
|
return true;
|
@@ -3443,13 +3509,13 @@ class MigrateApplication {
|
|
3443
3509
|
path: _path + $join(key),
|
3444
3510
|
expected: "OpenApiV3.IPathItem",
|
3445
3511
|
value: value
|
3446
|
-
})) && $
|
3512
|
+
})) && $vo94(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3447
3513
|
path: _path + $join(key),
|
3448
3514
|
expected: "OpenApiV3.IPathItem",
|
3449
3515
|
value: value
|
3450
3516
|
});
|
3451
3517
|
}).every(flag => flag)].every(flag => flag);
|
3452
|
-
const $
|
3518
|
+
const $vo94 = (input, _path, _exceptionable = true) => [undefined === input.parameters || (Array.isArray(input.parameters) || $report(_exceptionable, {
|
3453
3519
|
path: _path + ".parameters",
|
3454
3520
|
expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>> | undefined)",
|
3455
3521
|
value: input.parameters
|
@@ -3473,7 +3539,7 @@ class MigrateApplication {
|
|
3473
3539
|
path: _path + ".servers[" + _index39 + "]",
|
3474
3540
|
expected: "OpenApiV3.IServer",
|
3475
3541
|
value: elem
|
3476
|
-
})) && $
|
3542
|
+
})) && $vo51(elem, _path + ".servers[" + _index39 + "]", true && _exceptionable) || $report(_exceptionable, {
|
3477
3543
|
path: _path + ".servers[" + _index39 + "]",
|
3478
3544
|
expected: "OpenApiV3.IServer",
|
3479
3545
|
value: elem
|
@@ -3493,7 +3559,7 @@ class MigrateApplication {
|
|
3493
3559
|
path: _path + ".get",
|
3494
3560
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3495
3561
|
value: input.get
|
3496
|
-
})) && $
|
3562
|
+
})) && $vo96(input.get, _path + ".get", true && _exceptionable) || $report(_exceptionable, {
|
3497
3563
|
path: _path + ".get",
|
3498
3564
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3499
3565
|
value: input.get
|
@@ -3501,7 +3567,7 @@ class MigrateApplication {
|
|
3501
3567
|
path: _path + ".post",
|
3502
3568
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3503
3569
|
value: input.post
|
3504
|
-
})) && $
|
3570
|
+
})) && $vo96(input.post, _path + ".post", true && _exceptionable) || $report(_exceptionable, {
|
3505
3571
|
path: _path + ".post",
|
3506
3572
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3507
3573
|
value: input.post
|
@@ -3509,7 +3575,7 @@ class MigrateApplication {
|
|
3509
3575
|
path: _path + ".put",
|
3510
3576
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3511
3577
|
value: input.put
|
3512
|
-
})) && $
|
3578
|
+
})) && $vo96(input.put, _path + ".put", true && _exceptionable) || $report(_exceptionable, {
|
3513
3579
|
path: _path + ".put",
|
3514
3580
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3515
3581
|
value: input.put
|
@@ -3517,7 +3583,7 @@ class MigrateApplication {
|
|
3517
3583
|
path: _path + "[\"delete\"]",
|
3518
3584
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3519
3585
|
value: input["delete"]
|
3520
|
-
})) && $
|
3586
|
+
})) && $vo96(input["delete"], _path + "[\"delete\"]", true && _exceptionable) || $report(_exceptionable, {
|
3521
3587
|
path: _path + "[\"delete\"]",
|
3522
3588
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3523
3589
|
value: input["delete"]
|
@@ -3525,7 +3591,7 @@ class MigrateApplication {
|
|
3525
3591
|
path: _path + ".options",
|
3526
3592
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3527
3593
|
value: input.options
|
3528
|
-
})) && $
|
3594
|
+
})) && $vo96(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
|
3529
3595
|
path: _path + ".options",
|
3530
3596
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3531
3597
|
value: input.options
|
@@ -3533,7 +3599,7 @@ class MigrateApplication {
|
|
3533
3599
|
path: _path + ".head",
|
3534
3600
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3535
3601
|
value: input.head
|
3536
|
-
})) && $
|
3602
|
+
})) && $vo96(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
3537
3603
|
path: _path + ".head",
|
3538
3604
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3539
3605
|
value: input.head
|
@@ -3541,7 +3607,7 @@ class MigrateApplication {
|
|
3541
3607
|
path: _path + ".patch",
|
3542
3608
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3543
3609
|
value: input.patch
|
3544
|
-
})) && $
|
3610
|
+
})) && $vo96(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
3545
3611
|
path: _path + ".patch",
|
3546
3612
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3547
3613
|
value: input.patch
|
@@ -3549,14 +3615,14 @@ class MigrateApplication {
|
|
3549
3615
|
path: _path + ".trace",
|
3550
3616
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3551
3617
|
value: input.trace
|
3552
|
-
})) && $
|
3618
|
+
})) && $vo96(input.trace, _path + ".trace", true && _exceptionable) || $report(_exceptionable, {
|
3553
3619
|
path: _path + ".trace",
|
3554
3620
|
expected: "(OpenApiV3.IOperation | undefined)",
|
3555
3621
|
value: input.trace
|
3556
3622
|
})].every(flag => flag);
|
3557
|
-
const $
|
3623
|
+
const $vo95 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
3558
3624
|
path: _path + ".$ref",
|
3559
|
-
expected: "
|
3625
|
+
expected: "`[object Object]${string}`",
|
3560
3626
|
value: input.$ref
|
3561
3627
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
3562
3628
|
path: _path + ".title",
|
@@ -3571,7 +3637,7 @@ class MigrateApplication {
|
|
3571
3637
|
expected: "(boolean | undefined)",
|
3572
3638
|
value: input.deprecated
|
3573
3639
|
})].every(flag => flag);
|
3574
|
-
const $
|
3640
|
+
const $vo96 = (input, _path, _exceptionable = true) => [undefined === input.operationId || "string" === typeof input.operationId || $report(_exceptionable, {
|
3575
3641
|
path: _path + ".operationId",
|
3576
3642
|
expected: "(string | undefined)",
|
3577
3643
|
value: input.operationId
|
@@ -3603,7 +3669,7 @@ class MigrateApplication {
|
|
3603
3669
|
path: _path + ".responses",
|
3604
3670
|
expected: "(Record<string, IResponse | IReference<`#/components/responses/${string}`>> | undefined)",
|
3605
3671
|
value: input.responses
|
3606
|
-
})) && $
|
3672
|
+
})) && $vo98(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
3607
3673
|
path: _path + ".responses",
|
3608
3674
|
expected: "(Record<string, IResponse | IReference<`#/components/responses/${string}`>> | undefined)",
|
3609
3675
|
value: input.responses
|
@@ -3615,7 +3681,7 @@ class MigrateApplication {
|
|
3615
3681
|
path: _path + ".servers[" + _index41 + "]",
|
3616
3682
|
expected: "OpenApiV3.IServer",
|
3617
3683
|
value: elem
|
3618
|
-
})) && $
|
3684
|
+
})) && $vo51(elem, _path + ".servers[" + _index41 + "]", true && _exceptionable) || $report(_exceptionable, {
|
3619
3685
|
path: _path + ".servers[" + _index41 + "]",
|
3620
3686
|
expected: "OpenApiV3.IServer",
|
3621
3687
|
value: elem
|
@@ -3639,7 +3705,7 @@ class MigrateApplication {
|
|
3639
3705
|
path: _path + ".security[" + _index42 + "]",
|
3640
3706
|
expected: "Record<string, Array<string>>",
|
3641
3707
|
value: elem
|
3642
|
-
})) && $
|
3708
|
+
})) && $vo41(elem, _path + ".security[" + _index42 + "]", true && _exceptionable) || $report(_exceptionable, {
|
3643
3709
|
path: _path + ".security[" + _index42 + "]",
|
3644
3710
|
expected: "Record<string, Array<string>>",
|
3645
3711
|
value: elem
|
@@ -3664,9 +3730,9 @@ class MigrateApplication {
|
|
3664
3730
|
expected: "(boolean | undefined)",
|
3665
3731
|
value: input.deprecated
|
3666
3732
|
})].every(flag => flag);
|
3667
|
-
const $
|
3733
|
+
const $vo97 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
3668
3734
|
path: _path + ".$ref",
|
3669
|
-
expected: "
|
3735
|
+
expected: "`[object Object]${string}`",
|
3670
3736
|
value: input.$ref
|
3671
3737
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
3672
3738
|
path: _path + ".title",
|
@@ -3681,7 +3747,7 @@ class MigrateApplication {
|
|
3681
3747
|
expected: "(boolean | undefined)",
|
3682
3748
|
value: input.deprecated
|
3683
3749
|
})].every(flag => flag);
|
3684
|
-
const $
|
3750
|
+
const $vo98 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3685
3751
|
const value = input[key];
|
3686
3752
|
if (undefined === value)
|
3687
3753
|
return true;
|
@@ -3695,9 +3761,9 @@ class MigrateApplication {
|
|
3695
3761
|
value: value
|
3696
3762
|
});
|
3697
3763
|
}).every(flag => flag)].every(flag => flag);
|
3698
|
-
const $
|
3764
|
+
const $vo99 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
3699
3765
|
path: _path + ".$ref",
|
3700
|
-
expected: "
|
3766
|
+
expected: "`[object Object]${string}`",
|
3701
3767
|
value: input.$ref
|
3702
3768
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
3703
3769
|
path: _path + ".title",
|
@@ -3712,7 +3778,7 @@ class MigrateApplication {
|
|
3712
3778
|
expected: "(boolean | undefined)",
|
3713
3779
|
value: input.deprecated
|
3714
3780
|
})].every(flag => flag);
|
3715
|
-
const $
|
3781
|
+
const $vo100 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
3716
3782
|
path: _path + ".name",
|
3717
3783
|
expected: "string",
|
3718
3784
|
value: input.name
|
@@ -3721,9 +3787,9 @@ class MigrateApplication {
|
|
3721
3787
|
expected: "(string | undefined)",
|
3722
3788
|
value: input.description
|
3723
3789
|
})].every(flag => flag);
|
3724
|
-
const $
|
3790
|
+
const $vo101 = (input, _path, _exceptionable = true) => ["string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) || $report(_exceptionable, {
|
3725
3791
|
path: _path + ".openapi",
|
3726
|
-
expected: "`
|
3792
|
+
expected: "`[object Object]${number}`",
|
3727
3793
|
value: input.openapi
|
3728
3794
|
}), undefined === input.servers || (Array.isArray(input.servers) || $report(_exceptionable, {
|
3729
3795
|
path: _path + ".servers",
|
@@ -3733,7 +3799,7 @@ class MigrateApplication {
|
|
3733
3799
|
path: _path + ".servers[" + _index44 + "]",
|
3734
3800
|
expected: "OpenApiV3_1.IServer",
|
3735
3801
|
value: elem
|
3736
|
-
})) && $
|
3802
|
+
})) && $vo102(elem, _path + ".servers[" + _index44 + "]", true && _exceptionable) || $report(_exceptionable, {
|
3737
3803
|
path: _path + ".servers[" + _index44 + "]",
|
3738
3804
|
expected: "OpenApiV3_1.IServer",
|
3739
3805
|
value: elem
|
@@ -3745,7 +3811,7 @@ class MigrateApplication {
|
|
3745
3811
|
path: _path + ".info",
|
3746
3812
|
expected: "(OpenApiV3_1.IDocument.IInfo | undefined)",
|
3747
3813
|
value: input.info
|
3748
|
-
})) && $
|
3814
|
+
})) && $vo105(input.info, _path + ".info", true && _exceptionable) || $report(_exceptionable, {
|
3749
3815
|
path: _path + ".info",
|
3750
3816
|
expected: "(OpenApiV3_1.IDocument.IInfo | undefined)",
|
3751
3817
|
value: input.info
|
@@ -3753,7 +3819,7 @@ class MigrateApplication {
|
|
3753
3819
|
path: _path + ".components",
|
3754
3820
|
expected: "(OpenApiV3_1.IComponents | undefined)",
|
3755
3821
|
value: input.components
|
3756
|
-
})) && $
|
3822
|
+
})) && $vo108(input.components, _path + ".components", true && _exceptionable) || $report(_exceptionable, {
|
3757
3823
|
path: _path + ".components",
|
3758
3824
|
expected: "(OpenApiV3_1.IComponents | undefined)",
|
3759
3825
|
value: input.components
|
@@ -3761,7 +3827,7 @@ class MigrateApplication {
|
|
3761
3827
|
path: _path + ".paths",
|
3762
3828
|
expected: "(Record<string, OpenApiV3_1.IPathItem> | undefined)",
|
3763
3829
|
value: input.paths
|
3764
|
-
})) && $
|
3830
|
+
})) && $vo124(input.paths, _path + ".paths", true && _exceptionable) || $report(_exceptionable, {
|
3765
3831
|
path: _path + ".paths",
|
3766
3832
|
expected: "(Record<string, OpenApiV3_1.IPathItem> | undefined)",
|
3767
3833
|
value: input.paths
|
@@ -3769,7 +3835,7 @@ class MigrateApplication {
|
|
3769
3835
|
path: _path + ".webhooks",
|
3770
3836
|
expected: "(Record<string, IPathItem | IReference<`#/components/pathItems/${string}`>> | undefined)",
|
3771
3837
|
value: input.webhooks
|
3772
|
-
})) && $
|
3838
|
+
})) && $vo153(input.webhooks, _path + ".webhooks", true && _exceptionable) || $report(_exceptionable, {
|
3773
3839
|
path: _path + ".webhooks",
|
3774
3840
|
expected: "(Record<string, IPathItem | IReference<`#/components/pathItems/${string}`>> | undefined)",
|
3775
3841
|
value: input.webhooks
|
@@ -3781,7 +3847,7 @@ class MigrateApplication {
|
|
3781
3847
|
path: _path + ".security[" + _index45 + "]",
|
3782
3848
|
expected: "Record<string, Array<string>>",
|
3783
3849
|
value: elem
|
3784
|
-
})) && $
|
3850
|
+
})) && $vo41(elem, _path + ".security[" + _index45 + "]", true && _exceptionable) || $report(_exceptionable, {
|
3785
3851
|
path: _path + ".security[" + _index45 + "]",
|
3786
3852
|
expected: "Record<string, Array<string>>",
|
3787
3853
|
value: elem
|
@@ -3797,7 +3863,7 @@ class MigrateApplication {
|
|
3797
3863
|
path: _path + ".tags[" + _index46 + "]",
|
3798
3864
|
expected: "OpenApiV3_1.IDocument.ITag",
|
3799
3865
|
value: elem
|
3800
|
-
})) && $
|
3866
|
+
})) && $vo155(elem, _path + ".tags[" + _index46 + "]", true && _exceptionable) || $report(_exceptionable, {
|
3801
3867
|
path: _path + ".tags[" + _index46 + "]",
|
3802
3868
|
expected: "OpenApiV3_1.IDocument.ITag",
|
3803
3869
|
value: elem
|
@@ -3806,7 +3872,7 @@ class MigrateApplication {
|
|
3806
3872
|
expected: "(Array<OpenApiV3_1.IDocument.ITag> | undefined)",
|
3807
3873
|
value: input.tags
|
3808
3874
|
})].every(flag => flag);
|
3809
|
-
const $
|
3875
|
+
const $vo102 = (input, _path, _exceptionable = true) => ["string" === typeof input.url || $report(_exceptionable, {
|
3810
3876
|
path: _path + ".url",
|
3811
3877
|
expected: "string",
|
3812
3878
|
value: input.url
|
@@ -3818,12 +3884,12 @@ class MigrateApplication {
|
|
3818
3884
|
path: _path + ".variables",
|
3819
3885
|
expected: "(Record<string, OpenApiV3_1.IServer.IVariable> | undefined)",
|
3820
3886
|
value: input.variables
|
3821
|
-
})) && $
|
3887
|
+
})) && $vo103(input.variables, _path + ".variables", true && _exceptionable) || $report(_exceptionable, {
|
3822
3888
|
path: _path + ".variables",
|
3823
3889
|
expected: "(Record<string, OpenApiV3_1.IServer.IVariable> | undefined)",
|
3824
3890
|
value: input.variables
|
3825
3891
|
})].every(flag => flag);
|
3826
|
-
const $
|
3892
|
+
const $vo103 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3827
3893
|
const value = input[key];
|
3828
3894
|
if (undefined === value)
|
3829
3895
|
return true;
|
@@ -3831,13 +3897,13 @@ class MigrateApplication {
|
|
3831
3897
|
path: _path + $join(key),
|
3832
3898
|
expected: "OpenApiV3_1.IServer.IVariable",
|
3833
3899
|
value: value
|
3834
|
-
})) && $
|
3900
|
+
})) && $vo104(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
3835
3901
|
path: _path + $join(key),
|
3836
3902
|
expected: "OpenApiV3_1.IServer.IVariable",
|
3837
3903
|
value: value
|
3838
3904
|
});
|
3839
3905
|
}).every(flag => flag)].every(flag => flag);
|
3840
|
-
const $
|
3906
|
+
const $vo104 = (input, _path, _exceptionable = true) => ["string" === typeof input["default"] || $report(_exceptionable, {
|
3841
3907
|
path: _path + "[\"default\"]",
|
3842
3908
|
expected: "string",
|
3843
3909
|
value: input["default"]
|
@@ -3862,7 +3928,7 @@ class MigrateApplication {
|
|
3862
3928
|
expected: "(string | undefined)",
|
3863
3929
|
value: input.description
|
3864
3930
|
})].every(flag => flag);
|
3865
|
-
const $
|
3931
|
+
const $vo105 = (input, _path, _exceptionable = true) => ["string" === typeof input.title || $report(_exceptionable, {
|
3866
3932
|
path: _path + ".title",
|
3867
3933
|
expected: "string",
|
3868
3934
|
value: input.title
|
@@ -3882,7 +3948,7 @@ class MigrateApplication {
|
|
3882
3948
|
path: _path + ".contact",
|
3883
3949
|
expected: "(OpenApiV3_1.IDocument.IContact | undefined)",
|
3884
3950
|
value: input.contact
|
3885
|
-
})) && $
|
3951
|
+
})) && $vo106(input.contact, _path + ".contact", true && _exceptionable) || $report(_exceptionable, {
|
3886
3952
|
path: _path + ".contact",
|
3887
3953
|
expected: "(OpenApiV3_1.IDocument.IContact | undefined)",
|
3888
3954
|
value: input.contact
|
@@ -3890,7 +3956,7 @@ class MigrateApplication {
|
|
3890
3956
|
path: _path + ".license",
|
3891
3957
|
expected: "(OpenApiV3_1.IDocument.ILicense | undefined)",
|
3892
3958
|
value: input.license
|
3893
|
-
})) && $
|
3959
|
+
})) && $vo107(input.license, _path + ".license", true && _exceptionable) || $report(_exceptionable, {
|
3894
3960
|
path: _path + ".license",
|
3895
3961
|
expected: "(OpenApiV3_1.IDocument.ILicense | undefined)",
|
3896
3962
|
value: input.license
|
@@ -3899,7 +3965,7 @@ class MigrateApplication {
|
|
3899
3965
|
expected: "string",
|
3900
3966
|
value: input.version
|
3901
3967
|
})].every(flag => flag);
|
3902
|
-
const $
|
3968
|
+
const $vo106 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
3903
3969
|
path: _path + ".name",
|
3904
3970
|
expected: "(string | undefined)",
|
3905
3971
|
value: input.name
|
@@ -3912,7 +3978,7 @@ class MigrateApplication {
|
|
3912
3978
|
expected: "(string | undefined)",
|
3913
3979
|
value: input.email
|
3914
3980
|
})].every(flag => flag);
|
3915
|
-
const $
|
3981
|
+
const $vo107 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
3916
3982
|
path: _path + ".name",
|
3917
3983
|
expected: "string",
|
3918
3984
|
value: input.name
|
@@ -3925,11 +3991,11 @@ class MigrateApplication {
|
|
3925
3991
|
expected: "(string | undefined)",
|
3926
3992
|
value: input.url
|
3927
3993
|
})].every(flag => flag);
|
3928
|
-
const $
|
3994
|
+
const $vo108 = (input, _path, _exceptionable = true) => [undefined === input.schemas || ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || $report(_exceptionable, {
|
3929
3995
|
path: _path + ".schemas",
|
3930
3996
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
3931
3997
|
value: input.schemas
|
3932
|
-
})) && $
|
3998
|
+
})) && $vo109(input.schemas, _path + ".schemas", true && _exceptionable) || $report(_exceptionable, {
|
3933
3999
|
path: _path + ".schemas",
|
3934
4000
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
3935
4001
|
value: input.schemas
|
@@ -3937,7 +4003,7 @@ class MigrateApplication {
|
|
3937
4003
|
path: _path + ".pathItems",
|
3938
4004
|
expected: "(Record<string, OpenApiV3_1.IPathItem> | undefined)",
|
3939
4005
|
value: input.pathItems
|
3940
|
-
})) && $
|
4006
|
+
})) && $vo124(input.pathItems, _path + ".pathItems", true && _exceptionable) || $report(_exceptionable, {
|
3941
4007
|
path: _path + ".pathItems",
|
3942
4008
|
expected: "(Record<string, OpenApiV3_1.IPathItem> | undefined)",
|
3943
4009
|
value: input.pathItems
|
@@ -3945,7 +4011,7 @@ class MigrateApplication {
|
|
3945
4011
|
path: _path + ".responses",
|
3946
4012
|
expected: "(Record<string, OpenApiV3_1.IOperation.IResponse> | undefined)",
|
3947
4013
|
value: input.responses
|
3948
|
-
})) && $
|
4014
|
+
})) && $vo139(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
3949
4015
|
path: _path + ".responses",
|
3950
4016
|
expected: "(Record<string, OpenApiV3_1.IOperation.IResponse> | undefined)",
|
3951
4017
|
value: input.responses
|
@@ -3953,7 +4019,7 @@ class MigrateApplication {
|
|
3953
4019
|
path: _path + ".parameters",
|
3954
4020
|
expected: "(Record<string, OpenApiV3_1.IOperation.IParameter> | undefined)",
|
3955
4021
|
value: input.parameters
|
3956
|
-
})) && $
|
4022
|
+
})) && $vo140(input.parameters, _path + ".parameters", true && _exceptionable) || $report(_exceptionable, {
|
3957
4023
|
path: _path + ".parameters",
|
3958
4024
|
expected: "(Record<string, OpenApiV3_1.IOperation.IParameter> | undefined)",
|
3959
4025
|
value: input.parameters
|
@@ -3961,7 +4027,7 @@ class MigrateApplication {
|
|
3961
4027
|
path: _path + ".requestBodies",
|
3962
4028
|
expected: "(Record<string, OpenApiV3_1.IOperation.IRequestBody> | undefined)",
|
3963
4029
|
value: input.requestBodies
|
3964
|
-
})) && $
|
4030
|
+
})) && $vo141(input.requestBodies, _path + ".requestBodies", true && _exceptionable) || $report(_exceptionable, {
|
3965
4031
|
path: _path + ".requestBodies",
|
3966
4032
|
expected: "(Record<string, OpenApiV3_1.IOperation.IRequestBody> | undefined)",
|
3967
4033
|
value: input.requestBodies
|
@@ -3969,7 +4035,7 @@ class MigrateApplication {
|
|
3969
4035
|
path: _path + ".securitySchemes",
|
3970
4036
|
expected: "(Record<string, OpenApiV3_1.ISecurityScheme> | undefined)",
|
3971
4037
|
value: input.securitySchemes
|
3972
|
-
})) && $
|
4038
|
+
})) && $vo142(input.securitySchemes, _path + ".securitySchemes", true && _exceptionable) || $report(_exceptionable, {
|
3973
4039
|
path: _path + ".securitySchemes",
|
3974
4040
|
expected: "(Record<string, OpenApiV3_1.ISecurityScheme> | undefined)",
|
3975
4041
|
value: input.securitySchemes
|
@@ -3977,12 +4043,12 @@ class MigrateApplication {
|
|
3977
4043
|
path: _path + ".headers",
|
3978
4044
|
expected: "(Record<string, Omit<OpenApiV3_1.IOperation.IParameter, \"in\">> | undefined)",
|
3979
4045
|
value: input.headers
|
3980
|
-
})) && $
|
4046
|
+
})) && $vo152(input.headers, _path + ".headers", true && _exceptionable) || $report(_exceptionable, {
|
3981
4047
|
path: _path + ".headers",
|
3982
4048
|
expected: "(Record<string, Omit<OpenApiV3_1.IOperation.IParameter, \"in\">> | undefined)",
|
3983
4049
|
value: input.headers
|
3984
4050
|
})].every(flag => flag);
|
3985
|
-
const $
|
4051
|
+
const $vo109 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
3986
4052
|
const value = input[key];
|
3987
4053
|
if (undefined === value)
|
3988
4054
|
return true;
|
@@ -3996,11 +4062,11 @@ class MigrateApplication {
|
|
3996
4062
|
value: value
|
3997
4063
|
});
|
3998
4064
|
}).every(flag => flag)].every(flag => flag);
|
3999
|
-
const $
|
4065
|
+
const $vo110 = (input, _path, _exceptionable = true) => [(Array.isArray(input.type) || $report(_exceptionable, {
|
4000
4066
|
path: _path + ".type",
|
4001
4067
|
expected: "Array<\"string\" | \"number\" | \"boolean\" | \"object\" | \"integer\" | \"array\">",
|
4002
4068
|
value: input.type
|
4003
|
-
})) && input.type.map((elem, _index48) => "
|
4069
|
+
})) && input.type.map((elem, _index48) => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem || $report(_exceptionable, {
|
4004
4070
|
path: _path + ".type[" + _index48 + "]",
|
4005
4071
|
expected: "(\"array\" | \"boolean\" | \"integer\" | \"number\" | \"object\" | \"string\")",
|
4006
4072
|
value: elem
|
@@ -4156,7 +4222,7 @@ class MigrateApplication {
|
|
4156
4222
|
path: _path + ".properties",
|
4157
4223
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
4158
4224
|
value: input.properties
|
4159
|
-
})) && $
|
4225
|
+
})) && $vo109(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
|
4160
4226
|
path: _path + ".properties",
|
4161
4227
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
4162
4228
|
value: input.properties
|
@@ -4241,7 +4307,7 @@ class MigrateApplication {
|
|
4241
4307
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
4242
4308
|
value: input.allOf
|
4243
4309
|
})].every(flag => flag);
|
4244
|
-
const $
|
4310
|
+
const $vo111 = (input, _path, _exceptionable = true) => ["string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"] || $report(_exceptionable, {
|
4245
4311
|
path: _path + "[\"const\"]",
|
4246
4312
|
expected: "(boolean | number | string)",
|
4247
4313
|
value: input["const"]
|
@@ -4258,7 +4324,7 @@ class MigrateApplication {
|
|
4258
4324
|
expected: "(boolean | undefined)",
|
4259
4325
|
value: input.deprecated
|
4260
4326
|
})].every(flag => flag);
|
4261
|
-
const $
|
4327
|
+
const $vo112 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "boolean" === typeof input["default"] || $report(_exceptionable, {
|
4262
4328
|
path: _path + "[\"default\"]",
|
4263
4329
|
expected: "(boolean | undefined)",
|
4264
4330
|
value: input["default"]
|
@@ -4291,7 +4357,7 @@ class MigrateApplication {
|
|
4291
4357
|
expected: "(boolean | undefined)",
|
4292
4358
|
value: input.deprecated
|
4293
4359
|
})].every(flag => flag);
|
4294
|
-
const $
|
4360
|
+
const $vo113 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647 || $report(_exceptionable, {
|
4295
4361
|
path: _path + "[\"default\"]",
|
4296
4362
|
expected: "number & Type<\"int32\">",
|
4297
4363
|
value: input["default"]
|
@@ -4368,7 +4434,7 @@ class MigrateApplication {
|
|
4368
4434
|
expected: "(boolean | undefined)",
|
4369
4435
|
value: input.deprecated
|
4370
4436
|
})].every(flag => flag);
|
4371
|
-
const $
|
4437
|
+
const $vo114 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "number" === typeof input["default"] || $report(_exceptionable, {
|
4372
4438
|
path: _path + "[\"default\"]",
|
4373
4439
|
expected: "(number | undefined)",
|
4374
4440
|
value: input["default"]
|
@@ -4421,7 +4487,7 @@ class MigrateApplication {
|
|
4421
4487
|
expected: "(boolean | undefined)",
|
4422
4488
|
value: input.deprecated
|
4423
4489
|
})].every(flag => flag);
|
4424
|
-
const $
|
4490
|
+
const $vo115 = (input, _path, _exceptionable = true) => [undefined === input.contentMediaType || "string" === typeof input.contentMediaType || $report(_exceptionable, {
|
4425
4491
|
path: _path + ".contentMediaType",
|
4426
4492
|
expected: "(string | undefined)",
|
4427
4493
|
value: input.contentMediaType
|
@@ -4482,7 +4548,7 @@ class MigrateApplication {
|
|
4482
4548
|
expected: "(boolean | undefined)",
|
4483
4549
|
value: input.deprecated
|
4484
4550
|
})].every(flag => flag);
|
4485
|
-
const $
|
4551
|
+
const $vo116 = (input, _path, _exceptionable = true) => [(null !== input.items || $report(_exceptionable, {
|
4486
4552
|
path: _path + ".items",
|
4487
4553
|
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)",
|
4488
4554
|
value: input.items
|
@@ -4571,11 +4637,11 @@ class MigrateApplication {
|
|
4571
4637
|
expected: "(boolean | undefined)",
|
4572
4638
|
value: input.deprecated
|
4573
4639
|
})].every(flag => flag);
|
4574
|
-
const $
|
4640
|
+
const $vo117 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $report(_exceptionable, {
|
4575
4641
|
path: _path + ".properties",
|
4576
4642
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
4577
4643
|
value: input.properties
|
4578
|
-
})) && $
|
4644
|
+
})) && $vo109(input.properties, _path + ".properties", true && _exceptionable) || $report(_exceptionable, {
|
4579
4645
|
path: _path + ".properties",
|
4580
4646
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
4581
4647
|
value: input.properties
|
@@ -4628,7 +4694,7 @@ class MigrateApplication {
|
|
4628
4694
|
expected: "(boolean | undefined)",
|
4629
4695
|
value: input.deprecated
|
4630
4696
|
})].every(flag => flag);
|
4631
|
-
const $
|
4697
|
+
const $vo118 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref || $report(_exceptionable, {
|
4632
4698
|
path: _path + ".$ref",
|
4633
4699
|
expected: "string",
|
4634
4700
|
value: input.$ref
|
@@ -4645,7 +4711,7 @@ class MigrateApplication {
|
|
4645
4711
|
expected: "(boolean | undefined)",
|
4646
4712
|
value: input.deprecated
|
4647
4713
|
})].every(flag => flag);
|
4648
|
-
const $
|
4714
|
+
const $vo119 = (input, _path, _exceptionable = true) => [(null !== input.type || $report(_exceptionable, {
|
4649
4715
|
path: _path + ".type",
|
4650
4716
|
expected: "undefined",
|
4651
4717
|
value: input.type
|
@@ -4666,7 +4732,7 @@ class MigrateApplication {
|
|
4666
4732
|
expected: "(boolean | undefined)",
|
4667
4733
|
value: input.deprecated
|
4668
4734
|
})].every(flag => flag);
|
4669
|
-
const $
|
4735
|
+
const $vo120 = (input, _path, _exceptionable = true) => ["null" === input.type || $report(_exceptionable, {
|
4670
4736
|
path: _path + ".type",
|
4671
4737
|
expected: "\"null\"",
|
4672
4738
|
value: input.type
|
@@ -4683,7 +4749,7 @@ class MigrateApplication {
|
|
4683
4749
|
expected: "(boolean | undefined)",
|
4684
4750
|
value: input.deprecated
|
4685
4751
|
})].every(flag => flag);
|
4686
|
-
const $
|
4752
|
+
const $vo121 = (input, _path, _exceptionable = true) => [(Array.isArray(input.allOf) || $report(_exceptionable, {
|
4687
4753
|
path: _path + ".allOf",
|
4688
4754
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
4689
4755
|
value: input.allOf
|
@@ -4712,7 +4778,7 @@ class MigrateApplication {
|
|
4712
4778
|
expected: "(boolean | undefined)",
|
4713
4779
|
value: input.deprecated
|
4714
4780
|
})].every(flag => flag);
|
4715
|
-
const $
|
4781
|
+
const $vo122 = (input, _path, _exceptionable = true) => [(Array.isArray(input.anyOf) || $report(_exceptionable, {
|
4716
4782
|
path: _path + ".anyOf",
|
4717
4783
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
4718
4784
|
value: input.anyOf
|
@@ -4741,7 +4807,7 @@ class MigrateApplication {
|
|
4741
4807
|
expected: "(boolean | undefined)",
|
4742
4808
|
value: input.deprecated
|
4743
4809
|
})].every(flag => flag);
|
4744
|
-
const $
|
4810
|
+
const $vo123 = (input, _path, _exceptionable = true) => [(Array.isArray(input.oneOf) || $report(_exceptionable, {
|
4745
4811
|
path: _path + ".oneOf",
|
4746
4812
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
4747
4813
|
value: input.oneOf
|
@@ -4770,7 +4836,7 @@ class MigrateApplication {
|
|
4770
4836
|
expected: "(boolean | undefined)",
|
4771
4837
|
value: input.deprecated
|
4772
4838
|
})].every(flag => flag);
|
4773
|
-
const $
|
4839
|
+
const $vo124 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
4774
4840
|
const value = input[key];
|
4775
4841
|
if (undefined === value)
|
4776
4842
|
return true;
|
@@ -4778,13 +4844,13 @@ class MigrateApplication {
|
|
4778
4844
|
path: _path + $join(key),
|
4779
4845
|
expected: "OpenApiV3_1.IPathItem",
|
4780
4846
|
value: value
|
4781
|
-
})) && $
|
4847
|
+
})) && $vo125(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
4782
4848
|
path: _path + $join(key),
|
4783
4849
|
expected: "OpenApiV3_1.IPathItem",
|
4784
4850
|
value: value
|
4785
4851
|
});
|
4786
4852
|
}).every(flag => flag)].every(flag => flag);
|
4787
|
-
const $
|
4853
|
+
const $vo125 = (input, _path, _exceptionable = true) => [undefined === input.parameters || (Array.isArray(input.parameters) || $report(_exceptionable, {
|
4788
4854
|
path: _path + ".parameters",
|
4789
4855
|
expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>>.o1 | undefined)",
|
4790
4856
|
value: input.parameters
|
@@ -4808,7 +4874,7 @@ class MigrateApplication {
|
|
4808
4874
|
path: _path + ".servers[" + _index66 + "]",
|
4809
4875
|
expected: "OpenApiV3_1.IServer",
|
4810
4876
|
value: elem
|
4811
|
-
})) && $
|
4877
|
+
})) && $vo102(elem, _path + ".servers[" + _index66 + "]", true && _exceptionable) || $report(_exceptionable, {
|
4812
4878
|
path: _path + ".servers[" + _index66 + "]",
|
4813
4879
|
expected: "OpenApiV3_1.IServer",
|
4814
4880
|
value: elem
|
@@ -4828,7 +4894,7 @@ class MigrateApplication {
|
|
4828
4894
|
path: _path + ".get",
|
4829
4895
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4830
4896
|
value: input.get
|
4831
|
-
})) && $
|
4897
|
+
})) && $vo129(input.get, _path + ".get", true && _exceptionable) || $report(_exceptionable, {
|
4832
4898
|
path: _path + ".get",
|
4833
4899
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4834
4900
|
value: input.get
|
@@ -4836,7 +4902,7 @@ class MigrateApplication {
|
|
4836
4902
|
path: _path + ".post",
|
4837
4903
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4838
4904
|
value: input.post
|
4839
|
-
})) && $
|
4905
|
+
})) && $vo129(input.post, _path + ".post", true && _exceptionable) || $report(_exceptionable, {
|
4840
4906
|
path: _path + ".post",
|
4841
4907
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4842
4908
|
value: input.post
|
@@ -4844,7 +4910,7 @@ class MigrateApplication {
|
|
4844
4910
|
path: _path + ".put",
|
4845
4911
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4846
4912
|
value: input.put
|
4847
|
-
})) && $
|
4913
|
+
})) && $vo129(input.put, _path + ".put", true && _exceptionable) || $report(_exceptionable, {
|
4848
4914
|
path: _path + ".put",
|
4849
4915
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4850
4916
|
value: input.put
|
@@ -4852,7 +4918,7 @@ class MigrateApplication {
|
|
4852
4918
|
path: _path + "[\"delete\"]",
|
4853
4919
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4854
4920
|
value: input["delete"]
|
4855
|
-
})) && $
|
4921
|
+
})) && $vo129(input["delete"], _path + "[\"delete\"]", true && _exceptionable) || $report(_exceptionable, {
|
4856
4922
|
path: _path + "[\"delete\"]",
|
4857
4923
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4858
4924
|
value: input["delete"]
|
@@ -4860,7 +4926,7 @@ class MigrateApplication {
|
|
4860
4926
|
path: _path + ".options",
|
4861
4927
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4862
4928
|
value: input.options
|
4863
|
-
})) && $
|
4929
|
+
})) && $vo129(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
|
4864
4930
|
path: _path + ".options",
|
4865
4931
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4866
4932
|
value: input.options
|
@@ -4868,7 +4934,7 @@ class MigrateApplication {
|
|
4868
4934
|
path: _path + ".head",
|
4869
4935
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4870
4936
|
value: input.head
|
4871
|
-
})) && $
|
4937
|
+
})) && $vo129(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
4872
4938
|
path: _path + ".head",
|
4873
4939
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4874
4940
|
value: input.head
|
@@ -4876,7 +4942,7 @@ class MigrateApplication {
|
|
4876
4942
|
path: _path + ".patch",
|
4877
4943
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4878
4944
|
value: input.patch
|
4879
|
-
})) && $
|
4945
|
+
})) && $vo129(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
4880
4946
|
path: _path + ".patch",
|
4881
4947
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4882
4948
|
value: input.patch
|
@@ -4884,16 +4950,16 @@ class MigrateApplication {
|
|
4884
4950
|
path: _path + ".trace",
|
4885
4951
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4886
4952
|
value: input.trace
|
4887
|
-
})) && $
|
4953
|
+
})) && $vo129(input.trace, _path + ".trace", true && _exceptionable) || $report(_exceptionable, {
|
4888
4954
|
path: _path + ".trace",
|
4889
4955
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
4890
4956
|
value: input.trace
|
4891
4957
|
})].every(flag => flag);
|
4892
|
-
const $
|
4958
|
+
const $vo126 = (input, _path, _exceptionable = true) => [undefined === input.name || "string" === typeof input.name || $report(_exceptionable, {
|
4893
4959
|
path: _path + ".name",
|
4894
4960
|
expected: "(string | undefined)",
|
4895
4961
|
value: input.name
|
4896
|
-
}), "
|
4962
|
+
}), "header" === input["in"] || "query" === input["in"] || "path" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
4897
4963
|
path: _path + "[\"in\"]",
|
4898
4964
|
expected: "(\"cookie\" | \"header\" | \"path\" | \"query\")",
|
4899
4965
|
value: input["in"]
|
@@ -4914,9 +4980,9 @@ class MigrateApplication {
|
|
4914
4980
|
expected: "(string | undefined)",
|
4915
4981
|
value: input.description
|
4916
4982
|
})].every(flag => flag);
|
4917
|
-
const $
|
4983
|
+
const $vo127 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
4918
4984
|
path: _path + ".$ref",
|
4919
|
-
expected: "
|
4985
|
+
expected: "`[object Object]${string}`",
|
4920
4986
|
value: input.$ref
|
4921
4987
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
4922
4988
|
path: _path + ".title",
|
@@ -4931,9 +4997,9 @@ class MigrateApplication {
|
|
4931
4997
|
expected: "(boolean | undefined)",
|
4932
4998
|
value: input.deprecated
|
4933
4999
|
})].every(flag => flag);
|
4934
|
-
const $
|
5000
|
+
const $vo128 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
4935
5001
|
path: _path + ".$ref",
|
4936
|
-
expected: "
|
5002
|
+
expected: "`[object Object]${string}`",
|
4937
5003
|
value: input.$ref
|
4938
5004
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
4939
5005
|
path: _path + ".title",
|
@@ -4948,7 +5014,7 @@ class MigrateApplication {
|
|
4948
5014
|
expected: "(boolean | undefined)",
|
4949
5015
|
value: input.deprecated
|
4950
5016
|
})].every(flag => flag);
|
4951
|
-
const $
|
5017
|
+
const $vo129 = (input, _path, _exceptionable = true) => [undefined === input.operationId || "string" === typeof input.operationId || $report(_exceptionable, {
|
4952
5018
|
path: _path + ".operationId",
|
4953
5019
|
expected: "(string | undefined)",
|
4954
5020
|
value: input.operationId
|
@@ -4980,7 +5046,7 @@ class MigrateApplication {
|
|
4980
5046
|
path: _path + ".responses",
|
4981
5047
|
expected: "(Record<string, IResponse | IReference<`#/components/responses/${string}`>>.o1 | undefined)",
|
4982
5048
|
value: input.responses
|
4983
|
-
})) && $
|
5049
|
+
})) && $vo134(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
4984
5050
|
path: _path + ".responses",
|
4985
5051
|
expected: "(Record<string, IResponse | IReference<`#/components/responses/${string}`>>.o1 | undefined)",
|
4986
5052
|
value: input.responses
|
@@ -4992,7 +5058,7 @@ class MigrateApplication {
|
|
4992
5058
|
path: _path + ".servers[" + _index68 + "]",
|
4993
5059
|
expected: "OpenApiV3_1.IServer",
|
4994
5060
|
value: elem
|
4995
|
-
})) && $
|
5061
|
+
})) && $vo102(elem, _path + ".servers[" + _index68 + "]", true && _exceptionable) || $report(_exceptionable, {
|
4996
5062
|
path: _path + ".servers[" + _index68 + "]",
|
4997
5063
|
expected: "OpenApiV3_1.IServer",
|
4998
5064
|
value: elem
|
@@ -5016,7 +5082,7 @@ class MigrateApplication {
|
|
5016
5082
|
path: _path + ".security[" + _index69 + "]",
|
5017
5083
|
expected: "Record<string, Array<string>>",
|
5018
5084
|
value: elem
|
5019
|
-
})) && $
|
5085
|
+
})) && $vo41(elem, _path + ".security[" + _index69 + "]", true && _exceptionable) || $report(_exceptionable, {
|
5020
5086
|
path: _path + ".security[" + _index69 + "]",
|
5021
5087
|
expected: "Record<string, Array<string>>",
|
5022
5088
|
value: elem
|
@@ -5041,7 +5107,7 @@ class MigrateApplication {
|
|
5041
5107
|
expected: "(boolean | undefined)",
|
5042
5108
|
value: input.deprecated
|
5043
5109
|
})].every(flag => flag);
|
5044
|
-
const $
|
5110
|
+
const $vo130 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
5045
5111
|
path: _path + ".description",
|
5046
5112
|
expected: "(string | undefined)",
|
5047
5113
|
value: input.description
|
@@ -5053,12 +5119,12 @@ class MigrateApplication {
|
|
5053
5119
|
path: _path + ".content",
|
5054
5120
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
5055
5121
|
value: input.content
|
5056
|
-
})) && $
|
5122
|
+
})) && $vo131(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
5057
5123
|
path: _path + ".content",
|
5058
5124
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
5059
5125
|
value: input.content
|
5060
5126
|
})].every(flag => flag);
|
5061
|
-
const $
|
5127
|
+
const $vo131 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5062
5128
|
const value = input[key];
|
5063
5129
|
if (undefined === value)
|
5064
5130
|
return true;
|
@@ -5066,13 +5132,13 @@ class MigrateApplication {
|
|
5066
5132
|
path: _path + $join(key),
|
5067
5133
|
expected: "OpenApiV3_1.IOperation.IMediaType",
|
5068
5134
|
value: value
|
5069
|
-
})) && $
|
5135
|
+
})) && $vo132(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
5070
5136
|
path: _path + $join(key),
|
5071
5137
|
expected: "OpenApiV3_1.IOperation.IMediaType",
|
5072
5138
|
value: value
|
5073
5139
|
});
|
5074
5140
|
}).every(flag => flag)].every(flag => flag);
|
5075
|
-
const $
|
5141
|
+
const $vo132 = (input, _path, _exceptionable = true) => [undefined === input.schema || ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
5076
5142
|
path: _path + ".schema",
|
5077
5143
|
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)",
|
5078
5144
|
value: input.schema
|
@@ -5081,9 +5147,9 @@ class MigrateApplication {
|
|
5081
5147
|
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)",
|
5082
5148
|
value: input.schema
|
5083
5149
|
})].every(flag => flag);
|
5084
|
-
const $
|
5150
|
+
const $vo133 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
5085
5151
|
path: _path + ".$ref",
|
5086
|
-
expected: "
|
5152
|
+
expected: "`[object Object]${string}`",
|
5087
5153
|
value: input.$ref
|
5088
5154
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
5089
5155
|
path: _path + ".title",
|
@@ -5098,7 +5164,7 @@ class MigrateApplication {
|
|
5098
5164
|
expected: "(boolean | undefined)",
|
5099
5165
|
value: input.deprecated
|
5100
5166
|
})].every(flag => flag);
|
5101
|
-
const $
|
5167
|
+
const $vo134 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5102
5168
|
const value = input[key];
|
5103
5169
|
if (undefined === value)
|
5104
5170
|
return true;
|
@@ -5112,11 +5178,11 @@ class MigrateApplication {
|
|
5112
5178
|
value: value
|
5113
5179
|
});
|
5114
5180
|
}).every(flag => flag)].every(flag => flag);
|
5115
|
-
const $
|
5181
|
+
const $vo135 = (input, _path, _exceptionable = true) => [undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
|
5116
5182
|
path: _path + ".content",
|
5117
5183
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
5118
5184
|
value: input.content
|
5119
|
-
})) && $
|
5185
|
+
})) && $vo131(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
5120
5186
|
path: _path + ".content",
|
5121
5187
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
5122
5188
|
value: input.content
|
@@ -5124,7 +5190,7 @@ class MigrateApplication {
|
|
5124
5190
|
path: _path + ".headers",
|
5125
5191
|
expected: "(Record<string, IReference<`#/components/headers/${string}`> | Omit<IParameter, \"in\">> | undefined)",
|
5126
5192
|
value: input.headers
|
5127
|
-
})) && $
|
5193
|
+
})) && $vo136(input.headers, _path + ".headers", true && _exceptionable) || $report(_exceptionable, {
|
5128
5194
|
path: _path + ".headers",
|
5129
5195
|
expected: "(Record<string, IReference<`#/components/headers/${string}`> | Omit<IParameter, \"in\">> | undefined)",
|
5130
5196
|
value: input.headers
|
@@ -5133,7 +5199,7 @@ class MigrateApplication {
|
|
5133
5199
|
expected: "(string | undefined)",
|
5134
5200
|
value: input.description
|
5135
5201
|
})].every(flag => flag);
|
5136
|
-
const $
|
5202
|
+
const $vo136 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5137
5203
|
const value = input[key];
|
5138
5204
|
if (undefined === value)
|
5139
5205
|
return true;
|
@@ -5147,7 +5213,7 @@ class MigrateApplication {
|
|
5147
5213
|
value: value
|
5148
5214
|
});
|
5149
5215
|
}).every(flag => flag)].every(flag => flag);
|
5150
|
-
const $
|
5216
|
+
const $vo137 = (input, _path, _exceptionable = true) => [undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
5151
5217
|
path: _path + ".description",
|
5152
5218
|
expected: "(string | undefined)",
|
5153
5219
|
value: input.description
|
@@ -5168,9 +5234,9 @@ class MigrateApplication {
|
|
5168
5234
|
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)",
|
5169
5235
|
value: input.schema
|
5170
5236
|
})].every(flag => flag);
|
5171
|
-
const $
|
5237
|
+
const $vo138 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
5172
5238
|
path: _path + ".$ref",
|
5173
|
-
expected: "
|
5239
|
+
expected: "`[object Object]${string}`",
|
5174
5240
|
value: input.$ref
|
5175
5241
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
5176
5242
|
path: _path + ".title",
|
@@ -5185,7 +5251,7 @@ class MigrateApplication {
|
|
5185
5251
|
expected: "(boolean | undefined)",
|
5186
5252
|
value: input.deprecated
|
5187
5253
|
})].every(flag => flag);
|
5188
|
-
const $
|
5254
|
+
const $vo139 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5189
5255
|
const value = input[key];
|
5190
5256
|
if (undefined === value)
|
5191
5257
|
return true;
|
@@ -5193,13 +5259,13 @@ class MigrateApplication {
|
|
5193
5259
|
path: _path + $join(key),
|
5194
5260
|
expected: "OpenApiV3_1.IOperation.IResponse",
|
5195
5261
|
value: value
|
5196
|
-
})) && $
|
5262
|
+
})) && $vo135(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
5197
5263
|
path: _path + $join(key),
|
5198
5264
|
expected: "OpenApiV3_1.IOperation.IResponse",
|
5199
5265
|
value: value
|
5200
5266
|
});
|
5201
5267
|
}).every(flag => flag)].every(flag => flag);
|
5202
|
-
const $
|
5268
|
+
const $vo140 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5203
5269
|
const value = input[key];
|
5204
5270
|
if (undefined === value)
|
5205
5271
|
return true;
|
@@ -5207,13 +5273,13 @@ class MigrateApplication {
|
|
5207
5273
|
path: _path + $join(key),
|
5208
5274
|
expected: "OpenApiV3_1.IOperation.IParameter",
|
5209
5275
|
value: value
|
5210
|
-
})) && $
|
5276
|
+
})) && $vo126(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
5211
5277
|
path: _path + $join(key),
|
5212
5278
|
expected: "OpenApiV3_1.IOperation.IParameter",
|
5213
5279
|
value: value
|
5214
5280
|
});
|
5215
5281
|
}).every(flag => flag)].every(flag => flag);
|
5216
|
-
const $
|
5282
|
+
const $vo141 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5217
5283
|
const value = input[key];
|
5218
5284
|
if (undefined === value)
|
5219
5285
|
return true;
|
@@ -5221,13 +5287,13 @@ class MigrateApplication {
|
|
5221
5287
|
path: _path + $join(key),
|
5222
5288
|
expected: "OpenApiV3_1.IOperation.IRequestBody",
|
5223
5289
|
value: value
|
5224
|
-
})) && $
|
5290
|
+
})) && $vo130(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
5225
5291
|
path: _path + $join(key),
|
5226
5292
|
expected: "OpenApiV3_1.IOperation.IRequestBody",
|
5227
5293
|
value: value
|
5228
5294
|
});
|
5229
5295
|
}).every(flag => flag)].every(flag => flag);
|
5230
|
-
const $
|
5296
|
+
const $vo142 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5231
5297
|
const value = input[key];
|
5232
5298
|
if (undefined === value)
|
5233
5299
|
return true;
|
@@ -5241,11 +5307,11 @@ class MigrateApplication {
|
|
5241
5307
|
value: value
|
5242
5308
|
});
|
5243
5309
|
}).every(flag => flag)].every(flag => flag);
|
5244
|
-
const $
|
5310
|
+
const $vo143 = (input, _path, _exceptionable = true) => ["apiKey" === input.type || $report(_exceptionable, {
|
5245
5311
|
path: _path + ".type",
|
5246
5312
|
expected: "\"apiKey\"",
|
5247
5313
|
value: input.type
|
5248
|
-
}), undefined === input["in"] || "
|
5314
|
+
}), undefined === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || $report(_exceptionable, {
|
5249
5315
|
path: _path + "[\"in\"]",
|
5250
5316
|
expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
|
5251
5317
|
value: input["in"]
|
@@ -5258,7 +5324,7 @@ class MigrateApplication {
|
|
5258
5324
|
expected: "(string | undefined)",
|
5259
5325
|
value: input.description
|
5260
5326
|
})].every(flag => flag);
|
5261
|
-
const $
|
5327
|
+
const $vo144 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
|
5262
5328
|
path: _path + ".type",
|
5263
5329
|
expected: "\"http\"",
|
5264
5330
|
value: input.type
|
@@ -5271,7 +5337,7 @@ class MigrateApplication {
|
|
5271
5337
|
expected: "(string | undefined)",
|
5272
5338
|
value: input.description
|
5273
5339
|
})].every(flag => flag);
|
5274
|
-
const $
|
5340
|
+
const $vo145 = (input, _path, _exceptionable = true) => ["http" === input.type || $report(_exceptionable, {
|
5275
5341
|
path: _path + ".type",
|
5276
5342
|
expected: "\"http\"",
|
5277
5343
|
value: input.type
|
@@ -5288,7 +5354,7 @@ class MigrateApplication {
|
|
5288
5354
|
expected: "(string | undefined)",
|
5289
5355
|
value: input.description
|
5290
5356
|
})].every(flag => flag);
|
5291
|
-
const $
|
5357
|
+
const $vo146 = (input, _path, _exceptionable = true) => ["oauth2" === input.type || $report(_exceptionable, {
|
5292
5358
|
path: _path + ".type",
|
5293
5359
|
expected: "\"oauth2\"",
|
5294
5360
|
value: input.type
|
@@ -5296,7 +5362,7 @@ class MigrateApplication {
|
|
5296
5362
|
path: _path + ".flows",
|
5297
5363
|
expected: "OpenApiV3_1.ISecurityScheme.IOAuth2.IFlowSet",
|
5298
5364
|
value: input.flows
|
5299
|
-
})) && $
|
5365
|
+
})) && $vo147(input.flows, _path + ".flows", true && _exceptionable) || $report(_exceptionable, {
|
5300
5366
|
path: _path + ".flows",
|
5301
5367
|
expected: "OpenApiV3_1.ISecurityScheme.IOAuth2.IFlowSet",
|
5302
5368
|
value: input.flows
|
@@ -5305,11 +5371,11 @@ class MigrateApplication {
|
|
5305
5371
|
expected: "(string | undefined)",
|
5306
5372
|
value: input.description
|
5307
5373
|
})].every(flag => flag);
|
5308
|
-
const $
|
5374
|
+
const $vo147 = (input, _path, _exceptionable = true) => [undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) || $report(_exceptionable, {
|
5309
5375
|
path: _path + ".authorizationCode",
|
5310
5376
|
expected: "(OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
5311
5377
|
value: input.authorizationCode
|
5312
|
-
})) && $
|
5378
|
+
})) && $vo148(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $report(_exceptionable, {
|
5313
5379
|
path: _path + ".authorizationCode",
|
5314
5380
|
expected: "(OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
5315
5381
|
value: input.authorizationCode
|
@@ -5317,7 +5383,7 @@ class MigrateApplication {
|
|
5317
5383
|
path: _path + ".implicit",
|
5318
5384
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
5319
5385
|
value: input.implicit
|
5320
|
-
})) && $
|
5386
|
+
})) && $vo149(input.implicit, _path + ".implicit", true && _exceptionable) || $report(_exceptionable, {
|
5321
5387
|
path: _path + ".implicit",
|
5322
5388
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
5323
5389
|
value: input.implicit
|
@@ -5325,7 +5391,7 @@ class MigrateApplication {
|
|
5325
5391
|
path: _path + ".password",
|
5326
5392
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
5327
5393
|
value: input.password
|
5328
|
-
})) && $
|
5394
|
+
})) && $vo150(input.password, _path + ".password", true && _exceptionable) || $report(_exceptionable, {
|
5329
5395
|
path: _path + ".password",
|
5330
5396
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
5331
5397
|
value: input.password
|
@@ -5333,12 +5399,12 @@ class MigrateApplication {
|
|
5333
5399
|
path: _path + ".clientCredentials",
|
5334
5400
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
5335
5401
|
value: input.clientCredentials
|
5336
|
-
})) && $
|
5402
|
+
})) && $vo150(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $report(_exceptionable, {
|
5337
5403
|
path: _path + ".clientCredentials",
|
5338
5404
|
expected: "(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
5339
5405
|
value: input.clientCredentials
|
5340
5406
|
})].every(flag => flag);
|
5341
|
-
const $
|
5407
|
+
const $vo148 = (input, _path, _exceptionable = true) => [undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $report(_exceptionable, {
|
5342
5408
|
path: _path + ".authorizationUrl",
|
5343
5409
|
expected: "(string | undefined)",
|
5344
5410
|
value: input.authorizationUrl
|
@@ -5354,16 +5420,16 @@ class MigrateApplication {
|
|
5354
5420
|
path: _path + ".scopes",
|
5355
5421
|
expected: "(Record<string, string> | undefined)",
|
5356
5422
|
value: input.scopes
|
5357
|
-
})) && $
|
5423
|
+
})) && $vo37(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
5358
5424
|
path: _path + ".scopes",
|
5359
5425
|
expected: "(Record<string, string> | undefined)",
|
5360
5426
|
value: input.scopes
|
5361
5427
|
})].every(flag => flag);
|
5362
|
-
const $
|
5428
|
+
const $vo149 = (input, _path, _exceptionable = true) => [undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
5363
5429
|
path: _path + ".scopes",
|
5364
5430
|
expected: "(Record<string, string> | undefined)",
|
5365
5431
|
value: input.scopes
|
5366
|
-
})) && $
|
5432
|
+
})) && $vo37(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
5367
5433
|
path: _path + ".scopes",
|
5368
5434
|
expected: "(Record<string, string> | undefined)",
|
5369
5435
|
value: input.scopes
|
@@ -5376,11 +5442,11 @@ class MigrateApplication {
|
|
5376
5442
|
expected: "(string | undefined)",
|
5377
5443
|
value: input.refreshUrl
|
5378
5444
|
})].every(flag => flag);
|
5379
|
-
const $
|
5445
|
+
const $vo150 = (input, _path, _exceptionable = true) => [undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $report(_exceptionable, {
|
5380
5446
|
path: _path + ".scopes",
|
5381
5447
|
expected: "(Record<string, string> | undefined)",
|
5382
5448
|
value: input.scopes
|
5383
|
-
})) && $
|
5449
|
+
})) && $vo37(input.scopes, _path + ".scopes", true && _exceptionable) || $report(_exceptionable, {
|
5384
5450
|
path: _path + ".scopes",
|
5385
5451
|
expected: "(Record<string, string> | undefined)",
|
5386
5452
|
value: input.scopes
|
@@ -5393,7 +5459,7 @@ class MigrateApplication {
|
|
5393
5459
|
expected: "(string | undefined)",
|
5394
5460
|
value: input.refreshUrl
|
5395
5461
|
})].every(flag => flag);
|
5396
|
-
const $
|
5462
|
+
const $vo151 = (input, _path, _exceptionable = true) => ["openIdConnect" === input.type || $report(_exceptionable, {
|
5397
5463
|
path: _path + ".type",
|
5398
5464
|
expected: "\"openIdConnect\"",
|
5399
5465
|
value: input.type
|
@@ -5406,7 +5472,7 @@ class MigrateApplication {
|
|
5406
5472
|
expected: "(string | undefined)",
|
5407
5473
|
value: input.description
|
5408
5474
|
})].every(flag => flag);
|
5409
|
-
const $
|
5475
|
+
const $vo152 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5410
5476
|
const value = input[key];
|
5411
5477
|
if (undefined === value)
|
5412
5478
|
return true;
|
@@ -5414,13 +5480,13 @@ class MigrateApplication {
|
|
5414
5480
|
path: _path + $join(key),
|
5415
5481
|
expected: "Omit<OpenApiV3_1.IOperation.IParameter, \"in\">",
|
5416
5482
|
value: value
|
5417
|
-
})) && $
|
5483
|
+
})) && $vo137(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
5418
5484
|
path: _path + $join(key),
|
5419
5485
|
expected: "Omit<OpenApiV3_1.IOperation.IParameter, \"in\">",
|
5420
5486
|
value: value
|
5421
5487
|
});
|
5422
5488
|
}).every(flag => flag)].every(flag => flag);
|
5423
|
-
const $
|
5489
|
+
const $vo153 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
5424
5490
|
const value = input[key];
|
5425
5491
|
if (undefined === value)
|
5426
5492
|
return true;
|
@@ -5434,9 +5500,9 @@ class MigrateApplication {
|
|
5434
5500
|
value: value
|
5435
5501
|
});
|
5436
5502
|
}).every(flag => flag)].every(flag => flag);
|
5437
|
-
const $
|
5503
|
+
const $vo154 = (input, _path, _exceptionable = true) => ["string" === typeof input.$ref && RegExp(/^#\/components\/pathItems\/(.*)/).test(input.$ref) || $report(_exceptionable, {
|
5438
5504
|
path: _path + ".$ref",
|
5439
|
-
expected: "
|
5505
|
+
expected: "`[object Object]${string}`",
|
5440
5506
|
value: input.$ref
|
5441
5507
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
5442
5508
|
path: _path + ".title",
|
@@ -5451,7 +5517,7 @@ class MigrateApplication {
|
|
5451
5517
|
expected: "(boolean | undefined)",
|
5452
5518
|
value: input.deprecated
|
5453
5519
|
})].every(flag => flag);
|
5454
|
-
const $
|
5520
|
+
const $vo155 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
5455
5521
|
path: _path + ".name",
|
5456
5522
|
expected: "string",
|
5457
5523
|
value: input.name
|
@@ -5462,115 +5528,115 @@ class MigrateApplication {
|
|
5462
5528
|
})].every(flag => flag);
|
5463
5529
|
const $vu0 = (input, _path, _exceptionable = true) => (() => {
|
5464
5530
|
if ("boolean" === input.type)
|
5465
|
-
return $
|
5531
|
+
return $vo5(input, _path, true && _exceptionable);
|
5466
5532
|
else if ("number" === input.type)
|
5467
|
-
return $
|
5533
|
+
return $vo7(input, _path, true && _exceptionable);
|
5468
5534
|
else if ("integer" === input.type)
|
5469
|
-
return $
|
5535
|
+
return $vo6(input, _path, true && _exceptionable);
|
5470
5536
|
else if ("string" === input.type)
|
5471
|
-
return $
|
5537
|
+
return $vo8(input, _path, true && _exceptionable);
|
5472
5538
|
else if ("array" === input.type)
|
5473
|
-
return $
|
5539
|
+
return $vo9(input, _path, true && _exceptionable);
|
5474
5540
|
else if ("object" === input.type)
|
5475
|
-
return $
|
5541
|
+
return $vo10(input, _path, true && _exceptionable);
|
5476
5542
|
else if (undefined !== input.$ref)
|
5477
|
-
return $
|
5543
|
+
return $vo11(input, _path, true && _exceptionable);
|
5478
5544
|
else if ("null" === input.type)
|
5479
|
-
return $
|
5545
|
+
return $vo13(input, _path, true && _exceptionable);
|
5480
5546
|
else if (undefined !== input.allOf)
|
5481
|
-
return $
|
5547
|
+
return $vo14(input, _path, true && _exceptionable);
|
5482
5548
|
else if (undefined !== input["x-anyOf"])
|
5483
|
-
return $
|
5549
|
+
return $vo15(input, _path, true && _exceptionable);
|
5484
5550
|
else if (undefined !== input["x-oneOf"])
|
5485
|
-
return $
|
5551
|
+
return $vo16(input, _path, true && _exceptionable);
|
5486
5552
|
else
|
5487
|
-
return $
|
5553
|
+
return $vo12(input, _path, true && _exceptionable);
|
5488
5554
|
})();
|
5489
5555
|
const $vu1 = (input, _path, _exceptionable = true) => (() => {
|
5490
5556
|
if ("boolean" === input.type)
|
5491
|
-
return $
|
5557
|
+
return $vo18(input, _path, true && _exceptionable);
|
5492
5558
|
else if ("number" === input.type)
|
5493
|
-
return $
|
5559
|
+
return $vo20(input, _path, true && _exceptionable);
|
5494
5560
|
else if ("integer" === input.type)
|
5495
|
-
return $
|
5561
|
+
return $vo19(input, _path, true && _exceptionable);
|
5496
5562
|
else if ("string" === input.type)
|
5497
|
-
return $
|
5563
|
+
return $vo21(input, _path, true && _exceptionable);
|
5498
5564
|
else if ("array" === input.type)
|
5499
|
-
return $
|
5565
|
+
return $vo22(input, _path, true && _exceptionable);
|
5500
5566
|
else if ("object" === input.type)
|
5501
|
-
return $vo20(input, _path, true && _exceptionable);
|
5502
|
-
else if ("null" === input.type)
|
5503
5567
|
return $vo23(input, _path, true && _exceptionable);
|
5568
|
+
else if ("null" === input.type)
|
5569
|
+
return $vo26(input, _path, true && _exceptionable);
|
5504
5570
|
else if (undefined !== input.allOf)
|
5505
|
-
return $
|
5571
|
+
return $vo27(input, _path, true && _exceptionable);
|
5506
5572
|
else if (undefined !== input["x-anyOf"])
|
5507
|
-
return $
|
5573
|
+
return $vo28(input, _path, true && _exceptionable);
|
5508
5574
|
else if (undefined !== input["x-oneOf"])
|
5509
|
-
return $
|
5575
|
+
return $vo29(input, _path, true && _exceptionable);
|
5510
5576
|
else if (undefined !== input.schema)
|
5511
|
-
return $
|
5577
|
+
return $vo30(input, _path, true && _exceptionable);
|
5512
5578
|
else
|
5513
|
-
return $
|
5579
|
+
return $vo24(input, _path, false && _exceptionable) || $vo25(input, _path, false && _exceptionable) || $vo44(input, _path, false && _exceptionable);
|
5514
5580
|
})();
|
5515
5581
|
const $vu2 = (input, _path, _exceptionable = true) => (() => {
|
5516
5582
|
if ("boolean" === input.type)
|
5517
|
-
return $
|
5583
|
+
return $vo18(input, _path, true && _exceptionable);
|
5518
5584
|
else if ("number" === input.type)
|
5519
|
-
return $
|
5585
|
+
return $vo20(input, _path, true && _exceptionable);
|
5520
5586
|
else if ("integer" === input.type)
|
5521
|
-
return $
|
5587
|
+
return $vo19(input, _path, true && _exceptionable);
|
5522
5588
|
else if ("string" === input.type)
|
5523
|
-
return $
|
5589
|
+
return $vo21(input, _path, true && _exceptionable);
|
5524
5590
|
else if ("array" === input.type)
|
5525
|
-
return $
|
5591
|
+
return $vo22(input, _path, true && _exceptionable);
|
5526
5592
|
else if ("object" === input.type)
|
5527
|
-
return $vo20(input, _path, true && _exceptionable);
|
5528
|
-
else if ("null" === input.type)
|
5529
5593
|
return $vo23(input, _path, true && _exceptionable);
|
5594
|
+
else if ("null" === input.type)
|
5595
|
+
return $vo26(input, _path, true && _exceptionable);
|
5530
5596
|
else if (undefined !== input.allOf)
|
5531
|
-
return $
|
5597
|
+
return $vo27(input, _path, true && _exceptionable);
|
5532
5598
|
else if (undefined !== input["x-anyOf"])
|
5533
|
-
return $
|
5599
|
+
return $vo28(input, _path, true && _exceptionable);
|
5534
5600
|
else if (undefined !== input["x-oneOf"])
|
5535
|
-
return $
|
5601
|
+
return $vo29(input, _path, true && _exceptionable);
|
5536
5602
|
else if (undefined !== input.schema)
|
5537
|
-
return $
|
5603
|
+
return $vo30(input, _path, true && _exceptionable);
|
5538
5604
|
else
|
5539
|
-
return $
|
5605
|
+
return $vo24(input, _path, false && _exceptionable) || $vo25(input, _path, false && _exceptionable) || $vo46(input, _path, false && _exceptionable);
|
5540
5606
|
})();
|
5541
5607
|
const $vu3 = (input, _path, _exceptionable = true) => (() => {
|
5542
5608
|
if ("boolean" === input.type)
|
5543
|
-
return $
|
5609
|
+
return $vo59(input, _path, true && _exceptionable);
|
5544
5610
|
else if ("number" === input.type)
|
5545
|
-
return $
|
5611
|
+
return $vo61(input, _path, true && _exceptionable);
|
5546
5612
|
else if ("integer" === input.type)
|
5547
|
-
return $
|
5613
|
+
return $vo60(input, _path, true && _exceptionable);
|
5548
5614
|
else if ("string" === input.type)
|
5549
|
-
return $
|
5615
|
+
return $vo62(input, _path, true && _exceptionable);
|
5550
5616
|
else if ("array" === input.type)
|
5551
|
-
return $
|
5617
|
+
return $vo63(input, _path, true && _exceptionable);
|
5552
5618
|
else if ("object" === input.type)
|
5553
|
-
return $
|
5619
|
+
return $vo64(input, _path, true && _exceptionable);
|
5554
5620
|
else if (undefined !== input.$ref)
|
5555
|
-
return $
|
5621
|
+
return $vo65(input, _path, true && _exceptionable);
|
5556
5622
|
else if ("null" === input.type)
|
5557
|
-
return $
|
5623
|
+
return $vo67(input, _path, true && _exceptionable);
|
5558
5624
|
else if (undefined !== input.allOf)
|
5559
|
-
return $
|
5625
|
+
return $vo68(input, _path, true && _exceptionable);
|
5560
5626
|
else if (undefined !== input.anyOf)
|
5561
|
-
return $
|
5627
|
+
return $vo69(input, _path, true && _exceptionable);
|
5562
5628
|
else if (undefined !== input.oneOf)
|
5563
|
-
return $
|
5629
|
+
return $vo70(input, _path, true && _exceptionable);
|
5564
5630
|
else
|
5565
|
-
return $
|
5631
|
+
return $vo66(input, _path, true && _exceptionable);
|
5566
5632
|
})();
|
5567
5633
|
const $vu4 = (input, _path, _exceptionable = true) => (() => {
|
5568
5634
|
if (undefined !== input["in"])
|
5569
|
-
return $
|
5635
|
+
return $vo79(input, _path, true && _exceptionable);
|
5570
5636
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref))
|
5571
|
-
return $
|
5637
|
+
return $vo95(input, _path, true && _exceptionable);
|
5572
5638
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref))
|
5573
|
-
return $
|
5639
|
+
return $vo77(input, _path, true && _exceptionable);
|
5574
5640
|
else
|
5575
5641
|
return $report(_exceptionable, {
|
5576
5642
|
path: _path,
|
@@ -5579,45 +5645,45 @@ class MigrateApplication {
|
|
5579
5645
|
});
|
5580
5646
|
})();
|
5581
5647
|
const $vu5 = (input, _path, _exceptionable = true) => (() => {
|
5582
|
-
if (Array.isArray(input.type) && input.type.map((elem, _index71) => "
|
5583
|
-
return $
|
5648
|
+
if (Array.isArray(input.type) && input.type.map((elem, _index71) => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem).every(flag => flag))
|
5649
|
+
return $vo110(input, _path, true && _exceptionable);
|
5584
5650
|
else if ("boolean" === input.type)
|
5585
|
-
return $
|
5651
|
+
return $vo112(input, _path, true && _exceptionable);
|
5586
5652
|
else if ("number" === input.type)
|
5587
|
-
return $
|
5653
|
+
return $vo114(input, _path, true && _exceptionable);
|
5588
5654
|
else if ("integer" === input.type)
|
5589
|
-
return $
|
5655
|
+
return $vo113(input, _path, true && _exceptionable);
|
5590
5656
|
else if ("string" === input.type)
|
5591
|
-
return $
|
5657
|
+
return $vo115(input, _path, true && _exceptionable);
|
5592
5658
|
else if ("array" === input.type)
|
5593
|
-
return $
|
5659
|
+
return $vo116(input, _path, true && _exceptionable);
|
5594
5660
|
else if ("object" === input.type)
|
5595
|
-
return $
|
5661
|
+
return $vo117(input, _path, true && _exceptionable);
|
5596
5662
|
else if (undefined !== input.$ref)
|
5597
|
-
return $
|
5663
|
+
return $vo118(input, _path, true && _exceptionable);
|
5598
5664
|
else if ("null" === input.type)
|
5599
|
-
return $
|
5665
|
+
return $vo120(input, _path, true && _exceptionable);
|
5600
5666
|
else
|
5601
5667
|
return (() => {
|
5602
5668
|
if (undefined !== input["const"])
|
5603
|
-
return $
|
5669
|
+
return $vo111(input, _path, true && _exceptionable);
|
5604
5670
|
else if (undefined !== input.allOf)
|
5605
|
-
return $
|
5671
|
+
return $vo121(input, _path, true && _exceptionable);
|
5606
5672
|
else if (undefined !== input.anyOf)
|
5607
|
-
return $
|
5673
|
+
return $vo122(input, _path, true && _exceptionable);
|
5608
5674
|
else if (undefined !== input.oneOf)
|
5609
|
-
return $
|
5675
|
+
return $vo123(input, _path, true && _exceptionable);
|
5610
5676
|
else
|
5611
|
-
return $
|
5677
|
+
return $vo119(input, _path, true && _exceptionable);
|
5612
5678
|
})();
|
5613
5679
|
})();
|
5614
5680
|
const $vu6 = (input, _path, _exceptionable = true) => (() => {
|
5615
5681
|
if (undefined !== input["in"])
|
5616
|
-
return $
|
5682
|
+
return $vo126(input, _path, true && _exceptionable);
|
5617
5683
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref))
|
5618
|
-
return $
|
5684
|
+
return $vo128(input, _path, true && _exceptionable);
|
5619
5685
|
else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref))
|
5620
|
-
return $
|
5686
|
+
return $vo127(input, _path, true && _exceptionable);
|
5621
5687
|
else
|
5622
5688
|
return $report(_exceptionable, {
|
5623
5689
|
path: _path,
|
@@ -5627,45 +5693,45 @@ class MigrateApplication {
|
|
5627
5693
|
})();
|
5628
5694
|
const $vu7 = (input, _path, _exceptionable = true) => (() => {
|
5629
5695
|
if ("boolean" === input.type)
|
5630
|
-
return $
|
5696
|
+
return $vo18(input, _path, true && _exceptionable);
|
5631
5697
|
else if ("number" === input.type)
|
5632
|
-
return $
|
5698
|
+
return $vo20(input, _path, true && _exceptionable);
|
5633
5699
|
else if ("integer" === input.type)
|
5634
|
-
return $
|
5700
|
+
return $vo19(input, _path, true && _exceptionable);
|
5635
5701
|
else if ("string" === input.type)
|
5636
|
-
return $
|
5702
|
+
return $vo21(input, _path, true && _exceptionable);
|
5637
5703
|
else if ("array" === input.type)
|
5638
|
-
return $
|
5704
|
+
return $vo22(input, _path, true && _exceptionable);
|
5639
5705
|
else if ("object" === input.type)
|
5640
|
-
return $
|
5706
|
+
return $vo23(input, _path, true && _exceptionable);
|
5641
5707
|
else if (undefined !== input.$ref)
|
5642
|
-
return $
|
5708
|
+
return $vo24(input, _path, true && _exceptionable);
|
5643
5709
|
else if ("null" === input.type)
|
5644
|
-
return $
|
5710
|
+
return $vo26(input, _path, true && _exceptionable);
|
5645
5711
|
else if (undefined !== input.allOf)
|
5646
|
-
return $
|
5712
|
+
return $vo27(input, _path, true && _exceptionable);
|
5647
5713
|
else if (undefined !== input["x-anyOf"])
|
5648
|
-
return $
|
5714
|
+
return $vo28(input, _path, true && _exceptionable);
|
5649
5715
|
else if (undefined !== input["x-oneOf"])
|
5650
|
-
return $
|
5716
|
+
return $vo29(input, _path, true && _exceptionable);
|
5651
5717
|
else if (undefined !== input.schema)
|
5652
|
-
return $
|
5718
|
+
return $vo30(input, _path, true && _exceptionable);
|
5653
5719
|
else
|
5654
|
-
return $
|
5720
|
+
return $vo25(input, _path, true && _exceptionable);
|
5655
5721
|
})();
|
5656
5722
|
const $vu8 = (input, _path, _exceptionable = true) => (() => {
|
5657
5723
|
if ("apiKey" === input.type)
|
5658
|
-
return $
|
5724
|
+
return $vo34(input, _path, true && _exceptionable);
|
5659
5725
|
else if ("basic" === input.type)
|
5660
|
-
return $
|
5726
|
+
return $vo35(input, _path, true && _exceptionable);
|
5661
5727
|
else if ("implicit" === input.flow)
|
5662
|
-
return $
|
5728
|
+
return $vo36(input, _path, true && _exceptionable);
|
5663
5729
|
else if ("accessCode" === input.flow)
|
5664
|
-
return $
|
5730
|
+
return $vo38(input, _path, true && _exceptionable);
|
5665
5731
|
else if ("application" === input.flow)
|
5666
|
-
return $
|
5732
|
+
return $vo40(input, _path, true && _exceptionable);
|
5667
5733
|
else if ("password" === input.flow)
|
5668
|
-
return $
|
5734
|
+
return $vo39(input, _path, true && _exceptionable);
|
5669
5735
|
else
|
5670
5736
|
return $report(_exceptionable, {
|
5671
5737
|
path: _path,
|
@@ -5675,15 +5741,15 @@ class MigrateApplication {
|
|
5675
5741
|
})();
|
5676
5742
|
const $vu9 = (input, _path, _exceptionable = true) => (() => {
|
5677
5743
|
if (undefined !== input.$ref)
|
5678
|
-
return $
|
5744
|
+
return $vo48(input, _path, true && _exceptionable);
|
5679
5745
|
else
|
5680
|
-
return $
|
5746
|
+
return $vo32(input, _path, true && _exceptionable);
|
5681
5747
|
})();
|
5682
5748
|
const $vu10 = (input, _path, _exceptionable = true) => (() => {
|
5683
5749
|
if (undefined !== input.schema)
|
5684
|
-
return $
|
5750
|
+
return $vo76(input, _path, true && _exceptionable);
|
5685
5751
|
else if (undefined !== input.$ref)
|
5686
|
-
return $
|
5752
|
+
return $vo77(input, _path, true && _exceptionable);
|
5687
5753
|
else
|
5688
5754
|
return $report(_exceptionable, {
|
5689
5755
|
path: _path,
|
@@ -5693,15 +5759,15 @@ class MigrateApplication {
|
|
5693
5759
|
})();
|
5694
5760
|
const $vu11 = (input, _path, _exceptionable = true) => (() => {
|
5695
5761
|
if ("apiKey" === input.type)
|
5696
|
-
return $
|
5762
|
+
return $vo83(input, _path, true && _exceptionable);
|
5697
5763
|
else if ("basic" === input.scheme)
|
5698
|
-
return $
|
5764
|
+
return $vo84(input, _path, true && _exceptionable);
|
5699
5765
|
else if ("bearer" === input.scheme)
|
5700
|
-
return $
|
5766
|
+
return $vo85(input, _path, true && _exceptionable);
|
5701
5767
|
else if ("oauth2" === input.type)
|
5702
|
-
return $
|
5768
|
+
return $vo86(input, _path, true && _exceptionable);
|
5703
5769
|
else if ("openIdConnect" === input.type)
|
5704
|
-
return $
|
5770
|
+
return $vo91(input, _path, true && _exceptionable);
|
5705
5771
|
else
|
5706
5772
|
return $report(_exceptionable, {
|
5707
5773
|
path: _path,
|
@@ -5711,33 +5777,33 @@ class MigrateApplication {
|
|
5711
5777
|
})();
|
5712
5778
|
const $vu12 = (input, _path, _exceptionable = true) => (() => {
|
5713
5779
|
if (undefined !== input.$ref)
|
5714
|
-
return $
|
5780
|
+
return $vo97(input, _path, true && _exceptionable);
|
5715
5781
|
else
|
5716
|
-
return $
|
5782
|
+
return $vo81(input, _path, true && _exceptionable);
|
5717
5783
|
})();
|
5718
5784
|
const $vu13 = (input, _path, _exceptionable = true) => (() => {
|
5719
5785
|
if (undefined !== input.$ref)
|
5720
|
-
return $
|
5786
|
+
return $vo99(input, _path, true && _exceptionable);
|
5721
5787
|
else
|
5722
|
-
return $
|
5788
|
+
return $vo72(input, _path, true && _exceptionable);
|
5723
5789
|
})();
|
5724
5790
|
const $vu14 = (input, _path, _exceptionable = true) => (() => {
|
5725
5791
|
if (undefined !== input.$ref)
|
5726
|
-
return $
|
5792
|
+
return $vo133(input, _path, true && _exceptionable);
|
5727
5793
|
else
|
5728
|
-
return $
|
5794
|
+
return $vo130(input, _path, true && _exceptionable);
|
5729
5795
|
})();
|
5730
5796
|
const $vu15 = (input, _path, _exceptionable = true) => (() => {
|
5731
5797
|
if (undefined !== input.$ref)
|
5732
|
-
return $
|
5798
|
+
return $vo138(input, _path, true && _exceptionable);
|
5733
5799
|
else
|
5734
|
-
return $
|
5800
|
+
return $vo135(input, _path, true && _exceptionable);
|
5735
5801
|
})();
|
5736
5802
|
const $vu16 = (input, _path, _exceptionable = true) => (() => {
|
5737
5803
|
if (undefined !== input.$ref)
|
5738
|
-
return $
|
5804
|
+
return $vo127(input, _path, true && _exceptionable);
|
5739
5805
|
else if (undefined !== input.schema)
|
5740
|
-
return $
|
5806
|
+
return $vo137(input, _path, true && _exceptionable);
|
5741
5807
|
else
|
5742
5808
|
return $report(_exceptionable, {
|
5743
5809
|
path: _path,
|
@@ -5747,15 +5813,15 @@ class MigrateApplication {
|
|
5747
5813
|
})();
|
5748
5814
|
const $vu17 = (input, _path, _exceptionable = true) => (() => {
|
5749
5815
|
if ("apiKey" === input.type)
|
5750
|
-
return $
|
5816
|
+
return $vo143(input, _path, true && _exceptionable);
|
5751
5817
|
else if ("basic" === input.scheme)
|
5752
|
-
return $
|
5818
|
+
return $vo144(input, _path, true && _exceptionable);
|
5753
5819
|
else if ("bearer" === input.scheme)
|
5754
|
-
return $
|
5820
|
+
return $vo145(input, _path, true && _exceptionable);
|
5755
5821
|
else if ("oauth2" === input.type)
|
5756
|
-
return $
|
5822
|
+
return $vo146(input, _path, true && _exceptionable);
|
5757
5823
|
else if ("openIdConnect" === input.type)
|
5758
|
-
return $
|
5824
|
+
return $vo151(input, _path, true && _exceptionable);
|
5759
5825
|
else
|
5760
5826
|
return $report(_exceptionable, {
|
5761
5827
|
path: _path,
|
@@ -5765,17 +5831,17 @@ class MigrateApplication {
|
|
5765
5831
|
})();
|
5766
5832
|
const $vu18 = (input, _path, _exceptionable = true) => (() => {
|
5767
5833
|
if (undefined !== input.$ref)
|
5768
|
-
return $
|
5834
|
+
return $vo154(input, _path, true && _exceptionable);
|
5769
5835
|
else
|
5770
|
-
return $
|
5836
|
+
return $vo125(input, _path, true && _exceptionable);
|
5771
5837
|
})();
|
5772
5838
|
const $vu19 = (input, _path, _exceptionable = true) => (() => {
|
5773
5839
|
if (undefined !== input.swagger)
|
5774
5840
|
return $vo0(input, _path, true && _exceptionable);
|
5775
5841
|
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)))
|
5776
|
-
return $
|
5842
|
+
return $vo50(input, _path, true && _exceptionable);
|
5777
5843
|
else if ("string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi))
|
5778
|
-
return $
|
5844
|
+
return $vo101(input, _path, true && _exceptionable);
|
5779
5845
|
else
|
5780
5846
|
return $report(_exceptionable, {
|
5781
5847
|
path: _path,
|