@nestia/migrate 0.1.10 → 0.2.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/NestiaMigrateApplication.js +280 -151
- package/lib/NestiaMigrateApplication.js.map +1 -1
- package/lib/archivers/FileArchiver.js +0 -1
- package/lib/archivers/FileArchiver.js.map +1 -1
- package/lib/bundles/TEMPLATE.js +15 -5
- package/lib/bundles/TEMPLATE.js.map +1 -1
- package/lib/executable/bundle.js +0 -1
- package/lib/executable/bundle.js.map +1 -1
- package/lib/programmers/ControllerProgrammer.js +1 -1
- package/lib/programmers/ControllerProgrammer.js.map +1 -1
- package/lib/programmers/RouteProgrammer.js +70 -35
- package/lib/programmers/RouteProgrammer.js.map +1 -1
- package/lib/structures/IMigrateRoute.d.ts +3 -0
- package/lib/structures/ISwagger.d.ts +2 -6
- package/lib/structures/ISwaggerInfo.d.ts +71 -0
- package/lib/structures/ISwaggerInfo.js +3 -0
- package/lib/structures/ISwaggerInfo.js.map +1 -0
- package/lib/structures/ISwaggerRoute.d.ts +5 -3
- package/package.json +4 -4
- package/src/NestiaMigrateApplication.ts +22 -1
- package/src/archivers/FileArchiver.ts +0 -1
- package/src/bundles/TEMPLATE.ts +15 -5
- package/src/executable/bundle.ts +0 -1
- package/src/programmers/ControllerProgrammer.ts +1 -1
- package/src/programmers/RouteProgrammer.ts +88 -35
- package/src/structures/IMigrateRoute.ts +4 -0
- package/src/structures/ISwagger.ts +3 -7
- package/src/structures/ISwaggerInfo.ts +80 -0
- package/src/structures/ISwaggerRoute.ts +6 -3
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.NestiaMigrateApplication = void 0;
|
7
|
+
const child_process_1 = __importDefault(require("child_process"));
|
7
8
|
const typia_1 = __importDefault(require("typia"));
|
8
9
|
const FileArchiver_1 = require("./archivers/FileArchiver");
|
9
10
|
const TEMPLATE_1 = require("./bundles/TEMPLATE");
|
@@ -13,16 +14,36 @@ class NestiaMigrateApplication {
|
|
13
14
|
this.generate = (archiver) => (output) => {
|
14
15
|
const program = this.analyze();
|
15
16
|
const files = MigrateProgrammer_1.MigrateProgrammer.write(program);
|
16
|
-
|
17
|
+
try {
|
18
|
+
child_process_1.default.execSync(`git clone https://github.com/samchon/nestia-template "${output}"`, { stdio: "ignore" });
|
19
|
+
for (const path of [
|
20
|
+
"/.git",
|
21
|
+
"/src/api",
|
22
|
+
"/src/controllers",
|
23
|
+
"/src/providers",
|
24
|
+
"/test/features",
|
25
|
+
])
|
26
|
+
child_process_1.default.execSync(`rm -rf "${output}${path}"`, {
|
27
|
+
stdio: "ignore",
|
28
|
+
});
|
29
|
+
}
|
30
|
+
catch (_a) {
|
31
|
+
FileArchiver_1.FileArchiver.archive(archiver)(output)(TEMPLATE_1.TEMPLATE);
|
32
|
+
}
|
33
|
+
FileArchiver_1.FileArchiver.archive(archiver)(output)(files);
|
17
34
|
};
|
18
35
|
this.swagger = (input => {
|
19
36
|
const __is = input => {
|
37
|
+
const $is_url = typia_1.default.assert.is_url;
|
38
|
+
const $is_email = typia_1.default.assert.is_email;
|
20
39
|
const $join = typia_1.default.assert.join;
|
21
|
-
const $io0 = input => "string" === typeof input.openapi && RegExp(/^3\.0\.-?\d+\.?\d*$/).test(input.openapi) && ("object" === typeof input.info && null !== input.info && $io1(input.info)) && (Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $
|
22
|
-
const $io1 = input => "string" === typeof input.
|
23
|
-
const $io2 = input => "string" === typeof input.url && (undefined === input.
|
24
|
-
const $io3 = input =>
|
25
|
-
const $io4 = input =>
|
40
|
+
const $io0 = input => "string" === typeof input.openapi && RegExp(/^3\.0\.-?\d+\.?\d*$/).test(input.openapi) && ("object" === typeof input.info && null !== input.info && $io1(input.info)) && (Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && $io5(input.components)) && ("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io29(input.paths)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io39(elem)));
|
41
|
+
const $io1 = input => "string" === typeof input.title && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && $is_url(input.termsOfService)) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && $io2(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io3(input.license)) && "string" === typeof input.version;
|
42
|
+
const $io2 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url && $is_url(input.url)) && (undefined === input.email || "string" === typeof input.email && $is_email(input.email));
|
43
|
+
const $io3 = input => "string" === typeof input.name && (undefined === input.url || "string" === typeof input.url && $is_url(input.url));
|
44
|
+
const $io4 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description);
|
45
|
+
const $io5 = input => (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && $io6(input.schemas)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && $io18(input.securitySchemes));
|
46
|
+
const $io6 = input => Object.keys(input).every(key => {
|
26
47
|
const value = input[key];
|
27
48
|
if (undefined === value)
|
28
49
|
return true;
|
@@ -30,18 +51,18 @@ class NestiaMigrateApplication {
|
|
30
51
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu0(value);
|
31
52
|
return true;
|
32
53
|
});
|
33
|
-
const $
|
34
|
-
const $
|
35
|
-
const $
|
36
|
-
const $
|
37
|
-
const $
|
38
|
-
const $
|
39
|
-
const $
|
40
|
-
const $
|
41
|
-
const $
|
42
|
-
const $
|
43
|
-
const $
|
44
|
-
const $
|
54
|
+
const $io7 = input => null !== input.type && undefined === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
55
|
+
const $io8 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
56
|
+
const $io9 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
57
|
+
const $io10 = input => (undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "boolean" === typeof elem)) && "boolean" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
58
|
+
const $io11 = input => (undefined === input["default"] || "number" === typeof input["default"] && parseInt(input["default"]) === input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem && parseInt(elem) === elem)) && (undefined === input.minimum || "number" === typeof input.minimum && parseInt(input.minimum) === input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum && parseInt(input.maximum) === input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && parseInt(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf) && "integer" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
59
|
+
const $io12 = input => (undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf) && "number" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
60
|
+
const $io13 = 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 && parseInt(input.minLength) === input.minLength && 0 <= input.minLength) && (undefined === input.maxLength || "number" === typeof input.maxLength && parseInt(input.maxLength) === input.maxLength && 0 <= input.maxLength) && "string" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
61
|
+
const $io14 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu0(input.items) && (undefined === input.minItems || "number" === typeof input.minItems && parseInt(input.minItems) === input.minItems && 0 <= input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems && parseInt(input.maxItems) === input.maxItems && 0 <= input.maxItems) && (undefined === input["x-typia-tuple"] || "object" === typeof input["x-typia-tuple"] && null !== input["x-typia-tuple"] && $io17(input["x-typia-tuple"])) && "array" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
62
|
+
const $io15 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io6(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && $iu0(input.additionalProperties))) && (undefined === input["x-typia-patternProperties"] || "object" === typeof input["x-typia-patternProperties"] && null !== input["x-typia-patternProperties"] && false === Array.isArray(input["x-typia-patternProperties"]) && $io6(input["x-typia-patternProperties"])) && "object" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
63
|
+
const $io16 = input => "string" === typeof input.$ref && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
64
|
+
const $io17 = input => Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && "array" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
65
|
+
const $io18 = input => Object.keys(input).every(key => {
|
45
66
|
const value = input[key];
|
46
67
|
if (undefined === value)
|
47
68
|
return true;
|
@@ -49,14 +70,14 @@ class NestiaMigrateApplication {
|
|
49
70
|
return "object" === typeof value && null !== value && $iu1(value);
|
50
71
|
return true;
|
51
72
|
});
|
52
|
-
const $
|
53
|
-
const $
|
54
|
-
const $
|
55
|
-
const $
|
56
|
-
const $
|
57
|
-
const $
|
58
|
-
const $
|
59
|
-
const $
|
73
|
+
const $io19 = input => "http" === input.type && "basic" === input.scheme;
|
74
|
+
const $io20 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat);
|
75
|
+
const $io21 = input => "apiKey" === input.type && ("header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && "string" === typeof input.name;
|
76
|
+
const $io22 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl;
|
77
|
+
const $io23 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && $io24(input.flows)) && (undefined === input.description || "string" === typeof input.description);
|
78
|
+
const $io24 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && $io25(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && $io27(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && $io28(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && $io28(input.clientCredentials));
|
79
|
+
const $io25 = input => "string" === typeof input.authorizationUrl && "string" === typeof input.tokenUrl && "string" === typeof input.refreshUrl && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io26(input.scopes));
|
80
|
+
const $io26 = input => Object.keys(input).every(key => {
|
60
81
|
const value = input[key];
|
61
82
|
if (undefined === value)
|
62
83
|
return true;
|
@@ -64,40 +85,40 @@ class NestiaMigrateApplication {
|
|
64
85
|
return "string" === typeof value;
|
65
86
|
return true;
|
66
87
|
});
|
67
|
-
const $
|
68
|
-
const $
|
69
|
-
const $
|
88
|
+
const $io27 = input => "string" === typeof input.authorizationUrl && "string" === typeof input.refreshUrl && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io26(input.scopes));
|
89
|
+
const $io28 = input => "string" === typeof input.tokenUrl && "string" === typeof input.refreshUrl && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && $io26(input.scopes));
|
90
|
+
const $io29 = input => Object.keys(input).every(key => {
|
70
91
|
const value = input[key];
|
71
92
|
if (undefined === value)
|
72
93
|
return true;
|
73
94
|
if (RegExp(/(.*)/).test(key))
|
74
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
95
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io30(value);
|
75
96
|
return true;
|
76
97
|
});
|
77
|
-
const $
|
98
|
+
const $io30 = input => Object.keys(input).every(key => {
|
78
99
|
const value = input[key];
|
79
100
|
if (undefined === value)
|
80
101
|
return true;
|
81
102
|
if (RegExp(/(.*)/).test(key))
|
82
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
103
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io31(value);
|
83
104
|
return true;
|
84
105
|
});
|
85
|
-
const $
|
86
|
-
const $
|
87
|
-
const $
|
88
|
-
const $
|
89
|
-
const $
|
90
|
-
const $
|
91
|
-
const $
|
106
|
+
const $io31 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $io32(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && $io33(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io37(input.responses)) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io39(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input["x-nestia-jsDocTags"] || Array.isArray(input["x-nestia-jsDocTags"]) && input["x-nestia-jsDocTags"].every(elem => "object" === typeof elem && null !== elem && $io40(elem)));
|
107
|
+
const $io32 = input => (undefined === input.name || "string" === typeof input.name) && ("header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || "path" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description);
|
108
|
+
const $io33 = input => (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io34(input.content)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"]);
|
109
|
+
const $io34 = input => (undefined === input["text/plain"] || "object" === typeof input["text/plain"] && null !== input["text/plain"] && $io35(input["text/plain"])) && (undefined === input["application/json"] || "object" === typeof input["application/json"] && null !== input["application/json"] && $io36(input["application/json"]));
|
110
|
+
const $io35 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
|
111
|
+
const $io36 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema);
|
112
|
+
const $io37 = input => Object.keys(input).every(key => {
|
92
113
|
const value = input[key];
|
93
114
|
if (undefined === value)
|
94
115
|
return true;
|
95
116
|
if (RegExp(/(.*)/).test(key))
|
96
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && $
|
117
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io38(value);
|
97
118
|
return true;
|
98
119
|
});
|
99
|
-
const $
|
100
|
-
const $
|
120
|
+
const $io38 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io34(input.content)) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"]);
|
121
|
+
const $io39 = input => Object.keys(input).every(key => {
|
101
122
|
const value = input[key];
|
102
123
|
if (undefined === value)
|
103
124
|
return true;
|
@@ -105,38 +126,40 @@ class NestiaMigrateApplication {
|
|
105
126
|
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
106
127
|
return true;
|
107
128
|
});
|
129
|
+
const $io40 = input => "string" === typeof input.name && (undefined === input.text || Array.isArray(input.text) && input.text.every(elem => "object" === typeof elem && null !== elem && $io41(elem)));
|
130
|
+
const $io41 = input => "string" === typeof input.text && "string" === typeof input.kind;
|
108
131
|
const $iu0 = input => (() => {
|
109
132
|
if (undefined !== input.anyOf)
|
110
|
-
return $
|
133
|
+
return $io8(input);
|
111
134
|
if (undefined !== input.oneOf)
|
112
|
-
return $
|
135
|
+
return $io9(input);
|
113
136
|
if ("boolean" === input.type)
|
114
|
-
return $io8(input);
|
115
|
-
if ("number" === input.type)
|
116
137
|
return $io10(input);
|
138
|
+
if ("number" === input.type)
|
139
|
+
return $io12(input);
|
117
140
|
if ("integer" === input.type)
|
118
|
-
return $io9(input);
|
119
|
-
if ("string" === input.type)
|
120
141
|
return $io11(input);
|
142
|
+
if ("string" === input.type)
|
143
|
+
return $io13(input);
|
121
144
|
if ("array" === input.type)
|
122
|
-
return $
|
145
|
+
return $io14(input);
|
123
146
|
if ("object" === input.type)
|
124
|
-
return $
|
147
|
+
return $io15(input);
|
125
148
|
if (undefined !== input.$ref)
|
126
|
-
return $
|
127
|
-
return $
|
149
|
+
return $io16(input);
|
150
|
+
return $io7(input);
|
128
151
|
})();
|
129
152
|
const $iu1 = input => (() => {
|
130
153
|
if ("basic" === input.scheme)
|
131
|
-
return $
|
154
|
+
return $io19(input);
|
132
155
|
if ("bearer" === input.scheme)
|
133
|
-
return $
|
156
|
+
return $io20(input);
|
134
157
|
if ("apiKey" === input.type)
|
135
|
-
return $
|
158
|
+
return $io21(input);
|
136
159
|
if ("openIdConnect" === input.type)
|
137
|
-
return $
|
160
|
+
return $io22(input);
|
138
161
|
if ("oauth2" === input.type)
|
139
|
-
return $
|
162
|
+
return $io23(input);
|
140
163
|
return false;
|
141
164
|
})();
|
142
165
|
return "object" === typeof input && null !== input && $io0(input);
|
@@ -144,6 +167,8 @@ class NestiaMigrateApplication {
|
|
144
167
|
if (false === __is(input))
|
145
168
|
((input, _path, _exceptionable = true) => {
|
146
169
|
const $guard = typia_1.default.assert.guard;
|
170
|
+
const $is_url = typia_1.default.assert.is_url;
|
171
|
+
const $is_email = typia_1.default.assert.is_email;
|
147
172
|
const $join = typia_1.default.assert.join;
|
148
173
|
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.openapi && RegExp(/^3\.0\.-?\d+\.?\d*$/).test(input.openapi) || $guard(_exceptionable, {
|
149
174
|
path: _path + ".openapi",
|
@@ -151,11 +176,11 @@ class NestiaMigrateApplication {
|
|
151
176
|
value: input.openapi
|
152
177
|
})) && (("object" === typeof input.info && null !== input.info || $guard(_exceptionable, {
|
153
178
|
path: _path + ".info",
|
154
|
-
expected: "
|
179
|
+
expected: "ISwaggerInfo",
|
155
180
|
value: input.info
|
156
181
|
})) && $ao1(input.info, _path + ".info", true && _exceptionable) || $guard(_exceptionable, {
|
157
182
|
path: _path + ".info",
|
158
|
-
expected: "
|
183
|
+
expected: "ISwaggerInfo",
|
159
184
|
value: input.info
|
160
185
|
})) && ((Array.isArray(input.servers) || $guard(_exceptionable, {
|
161
186
|
path: _path + ".servers",
|
@@ -165,7 +190,7 @@ class NestiaMigrateApplication {
|
|
165
190
|
path: _path + ".servers[" + _index1 + "]",
|
166
191
|
expected: "ISwagger.IServer",
|
167
192
|
value: elem
|
168
|
-
})) && $
|
193
|
+
})) && $ao4(elem, _path + ".servers[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
169
194
|
path: _path + ".servers[" + _index1 + "]",
|
170
195
|
expected: "ISwagger.IServer",
|
171
196
|
value: elem
|
@@ -177,7 +202,7 @@ class NestiaMigrateApplication {
|
|
177
202
|
path: _path + ".components",
|
178
203
|
expected: "ISwaggerComponents",
|
179
204
|
value: input.components
|
180
|
-
})) && $
|
205
|
+
})) && $ao5(input.components, _path + ".components", true && _exceptionable) || $guard(_exceptionable, {
|
181
206
|
path: _path + ".components",
|
182
207
|
expected: "ISwaggerComponents",
|
183
208
|
value: input.components
|
@@ -185,7 +210,7 @@ class NestiaMigrateApplication {
|
|
185
210
|
path: _path + ".paths",
|
186
211
|
expected: "Record<string, ISwagger.IPath>",
|
187
212
|
value: input.paths
|
188
|
-
})) && $
|
213
|
+
})) && $ao29(input.paths, _path + ".paths", true && _exceptionable) || $guard(_exceptionable, {
|
189
214
|
path: _path + ".paths",
|
190
215
|
expected: "Record<string, ISwagger.IPath>",
|
191
216
|
value: input.paths
|
@@ -197,7 +222,7 @@ class NestiaMigrateApplication {
|
|
197
222
|
path: _path + ".security[" + _index2 + "]",
|
198
223
|
expected: "Record<string, Array<string>>",
|
199
224
|
value: elem
|
200
|
-
})) && $
|
225
|
+
})) && $ao39(elem, _path + ".security[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
201
226
|
path: _path + ".security[" + _index2 + "]",
|
202
227
|
expected: "Record<string, Array<string>>",
|
203
228
|
value: elem
|
@@ -206,11 +231,7 @@ class NestiaMigrateApplication {
|
|
206
231
|
expected: "(Array<Record<string, Array<string>>> | undefined)",
|
207
232
|
value: input.security
|
208
233
|
}));
|
209
|
-
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.
|
210
|
-
path: _path + ".version",
|
211
|
-
expected: "string",
|
212
|
-
value: input.version
|
213
|
-
})) && ("string" === typeof input.title || $guard(_exceptionable, {
|
234
|
+
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.title || $guard(_exceptionable, {
|
214
235
|
path: _path + ".title",
|
215
236
|
expected: "string",
|
216
237
|
value: input.title
|
@@ -218,8 +239,70 @@ class NestiaMigrateApplication {
|
|
218
239
|
path: _path + ".description",
|
219
240
|
expected: "(string | undefined)",
|
220
241
|
value: input.description
|
242
|
+
})) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && ($is_url(input.termsOfService) || $guard(_exceptionable, {
|
243
|
+
path: _path + ".termsOfService",
|
244
|
+
expected: "string (@format url)",
|
245
|
+
value: input.termsOfService
|
246
|
+
})) || $guard(_exceptionable, {
|
247
|
+
path: _path + ".termsOfService",
|
248
|
+
expected: "(string | undefined)",
|
249
|
+
value: input.termsOfService
|
250
|
+
})) && (undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || $guard(_exceptionable, {
|
251
|
+
path: _path + ".contact",
|
252
|
+
expected: "(ISwaggerInfo.IContact | undefined)",
|
253
|
+
value: input.contact
|
254
|
+
})) && $ao2(input.contact, _path + ".contact", true && _exceptionable) || $guard(_exceptionable, {
|
255
|
+
path: _path + ".contact",
|
256
|
+
expected: "(ISwaggerInfo.IContact | undefined)",
|
257
|
+
value: input.contact
|
258
|
+
})) && (undefined === input.license || ("object" === typeof input.license && null !== input.license || $guard(_exceptionable, {
|
259
|
+
path: _path + ".license",
|
260
|
+
expected: "(ISwaggerInfo.ILicense | undefined)",
|
261
|
+
value: input.license
|
262
|
+
})) && $ao3(input.license, _path + ".license", true && _exceptionable) || $guard(_exceptionable, {
|
263
|
+
path: _path + ".license",
|
264
|
+
expected: "(ISwaggerInfo.ILicense | undefined)",
|
265
|
+
value: input.license
|
266
|
+
})) && ("string" === typeof input.version || $guard(_exceptionable, {
|
267
|
+
path: _path + ".version",
|
268
|
+
expected: "string",
|
269
|
+
value: input.version
|
221
270
|
}));
|
222
|
-
const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.
|
271
|
+
const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
272
|
+
path: _path + ".name",
|
273
|
+
expected: "(string | undefined)",
|
274
|
+
value: input.name
|
275
|
+
})) && (undefined === input.url || "string" === typeof input.url && ($is_url(input.url) || $guard(_exceptionable, {
|
276
|
+
path: _path + ".url",
|
277
|
+
expected: "string (@format url)",
|
278
|
+
value: input.url
|
279
|
+
})) || $guard(_exceptionable, {
|
280
|
+
path: _path + ".url",
|
281
|
+
expected: "(string | undefined)",
|
282
|
+
value: input.url
|
283
|
+
})) && (undefined === input.email || "string" === typeof input.email && ($is_email(input.email) || $guard(_exceptionable, {
|
284
|
+
path: _path + ".email",
|
285
|
+
expected: "string (@format email)",
|
286
|
+
value: input.email
|
287
|
+
})) || $guard(_exceptionable, {
|
288
|
+
path: _path + ".email",
|
289
|
+
expected: "(string | undefined)",
|
290
|
+
value: input.email
|
291
|
+
}));
|
292
|
+
const $ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
293
|
+
path: _path + ".name",
|
294
|
+
expected: "string",
|
295
|
+
value: input.name
|
296
|
+
})) && (undefined === input.url || "string" === typeof input.url && ($is_url(input.url) || $guard(_exceptionable, {
|
297
|
+
path: _path + ".url",
|
298
|
+
expected: "string (@format url)",
|
299
|
+
value: input.url
|
300
|
+
})) || $guard(_exceptionable, {
|
301
|
+
path: _path + ".url",
|
302
|
+
expected: "(string | undefined)",
|
303
|
+
value: input.url
|
304
|
+
}));
|
305
|
+
const $ao4 = (input, _path, _exceptionable = true) => ("string" === typeof input.url || $guard(_exceptionable, {
|
223
306
|
path: _path + ".url",
|
224
307
|
expected: "string",
|
225
308
|
value: input.url
|
@@ -228,11 +311,11 @@ class NestiaMigrateApplication {
|
|
228
311
|
expected: "(string | undefined)",
|
229
312
|
value: input.description
|
230
313
|
}));
|
231
|
-
const $
|
314
|
+
const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.schemas || ("object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) || $guard(_exceptionable, {
|
232
315
|
path: _path + ".schemas",
|
233
316
|
expected: "(Record<string, ISwaggerSchema> | undefined)",
|
234
317
|
value: input.schemas
|
235
|
-
})) && $
|
318
|
+
})) && $ao6(input.schemas, _path + ".schemas", true && _exceptionable) || $guard(_exceptionable, {
|
236
319
|
path: _path + ".schemas",
|
237
320
|
expected: "(Record<string, ISwaggerSchema> | undefined)",
|
238
321
|
value: input.schemas
|
@@ -240,12 +323,12 @@ class NestiaMigrateApplication {
|
|
240
323
|
path: _path + ".securitySchemes",
|
241
324
|
expected: "(Record<string, ISwaggerSecurity> | undefined)",
|
242
325
|
value: input.securitySchemes
|
243
|
-
})) && $
|
326
|
+
})) && $ao18(input.securitySchemes, _path + ".securitySchemes", true && _exceptionable) || $guard(_exceptionable, {
|
244
327
|
path: _path + ".securitySchemes",
|
245
328
|
expected: "(Record<string, ISwaggerSecurity> | undefined)",
|
246
329
|
value: input.securitySchemes
|
247
330
|
}));
|
248
|
-
const $
|
331
|
+
const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
249
332
|
const value = input[key];
|
250
333
|
if (undefined === value)
|
251
334
|
return true;
|
@@ -261,7 +344,7 @@ class NestiaMigrateApplication {
|
|
261
344
|
});
|
262
345
|
return true;
|
263
346
|
});
|
264
|
-
const $
|
347
|
+
const $ao7 = (input, _path, _exceptionable = true) => (null !== input.type || $guard(_exceptionable, {
|
265
348
|
path: _path + ".type",
|
266
349
|
expected: "undefined",
|
267
350
|
value: input.type
|
@@ -290,7 +373,7 @@ class NestiaMigrateApplication {
|
|
290
373
|
expected: "(boolean | undefined)",
|
291
374
|
value: input["x-typia-rest"]
|
292
375
|
}));
|
293
|
-
const $
|
376
|
+
const $ao8 = (input, _path, _exceptionable = true) => ((Array.isArray(input.anyOf) || $guard(_exceptionable, {
|
294
377
|
path: _path + ".anyOf",
|
295
378
|
expected: "Array<ISwaggerSchema>",
|
296
379
|
value: input.anyOf
|
@@ -327,7 +410,7 @@ class NestiaMigrateApplication {
|
|
327
410
|
expected: "(boolean | undefined)",
|
328
411
|
value: input["x-typia-rest"]
|
329
412
|
}));
|
330
|
-
const $
|
413
|
+
const $ao9 = (input, _path, _exceptionable = true) => ((Array.isArray(input.oneOf) || $guard(_exceptionable, {
|
331
414
|
path: _path + ".oneOf",
|
332
415
|
expected: "Array<ISwaggerSchema>",
|
333
416
|
value: input.oneOf
|
@@ -364,7 +447,7 @@ class NestiaMigrateApplication {
|
|
364
447
|
expected: "(boolean | undefined)",
|
365
448
|
value: input["x-typia-rest"]
|
366
449
|
}));
|
367
|
-
const $
|
450
|
+
const $ao10 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "boolean" === typeof input["default"] || $guard(_exceptionable, {
|
368
451
|
path: _path + "[\"default\"]",
|
369
452
|
expected: "(boolean | undefined)",
|
370
453
|
value: input["default"]
|
@@ -409,7 +492,7 @@ class NestiaMigrateApplication {
|
|
409
492
|
expected: "(boolean | undefined)",
|
410
493
|
value: input["x-typia-rest"]
|
411
494
|
}));
|
412
|
-
const $
|
495
|
+
const $ao11 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "number" === typeof input["default"] && (parseInt(input["default"]) === input["default"] || $guard(_exceptionable, {
|
413
496
|
path: _path + "[\"default\"]",
|
414
497
|
expected: "number (@type int)",
|
415
498
|
value: input["default"]
|
@@ -498,7 +581,7 @@ class NestiaMigrateApplication {
|
|
498
581
|
expected: "(boolean | undefined)",
|
499
582
|
value: input["x-typia-rest"]
|
500
583
|
}));
|
501
|
-
const $
|
584
|
+
const $ao12 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "number" === typeof input["default"] || $guard(_exceptionable, {
|
502
585
|
path: _path + "[\"default\"]",
|
503
586
|
expected: "(number | undefined)",
|
504
587
|
value: input["default"]
|
@@ -563,7 +646,7 @@ class NestiaMigrateApplication {
|
|
563
646
|
expected: "(boolean | undefined)",
|
564
647
|
value: input["x-typia-rest"]
|
565
648
|
}));
|
566
|
-
const $
|
649
|
+
const $ao13 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "string" === typeof input["default"] || $guard(_exceptionable, {
|
567
650
|
path: _path + "[\"default\"]",
|
568
651
|
expected: "(string | undefined)",
|
569
652
|
value: input["default"]
|
@@ -640,7 +723,7 @@ class NestiaMigrateApplication {
|
|
640
723
|
expected: "(boolean | undefined)",
|
641
724
|
value: input["x-typia-rest"]
|
642
725
|
}));
|
643
|
-
const $
|
726
|
+
const $ao14 = (input, _path, _exceptionable = true) => (("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $guard(_exceptionable, {
|
644
727
|
path: _path + ".items",
|
645
728
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
646
729
|
value: input.items
|
@@ -676,7 +759,7 @@ class NestiaMigrateApplication {
|
|
676
759
|
path: _path + "[\"x-typia-tuple\"]",
|
677
760
|
expected: "(ISwaggerSchema.ITuple | undefined)",
|
678
761
|
value: input["x-typia-tuple"]
|
679
|
-
})) && $
|
762
|
+
})) && $ao17(input["x-typia-tuple"], _path + "[\"x-typia-tuple\"]", true && _exceptionable) || $guard(_exceptionable, {
|
680
763
|
path: _path + "[\"x-typia-tuple\"]",
|
681
764
|
expected: "(ISwaggerSchema.ITuple | undefined)",
|
682
765
|
value: input["x-typia-tuple"]
|
@@ -709,11 +792,11 @@ class NestiaMigrateApplication {
|
|
709
792
|
expected: "(boolean | undefined)",
|
710
793
|
value: input["x-typia-rest"]
|
711
794
|
}));
|
712
|
-
const $
|
795
|
+
const $ao15 = (input, _path, _exceptionable = true) => (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
|
713
796
|
path: _path + ".properties",
|
714
797
|
expected: "(Record<string, ISwaggerSchema> | undefined)",
|
715
798
|
value: input.properties
|
716
|
-
})) && $
|
799
|
+
})) && $ao6(input.properties, _path + ".properties", true && _exceptionable) || $guard(_exceptionable, {
|
717
800
|
path: _path + ".properties",
|
718
801
|
expected: "(Record<string, ISwaggerSchema> | undefined)",
|
719
802
|
value: input.properties
|
@@ -745,7 +828,7 @@ class NestiaMigrateApplication {
|
|
745
828
|
path: _path + "[\"x-typia-patternProperties\"]",
|
746
829
|
expected: "(Record<string, ISwaggerSchema> | undefined)",
|
747
830
|
value: input["x-typia-patternProperties"]
|
748
|
-
})) && $
|
831
|
+
})) && $ao6(input["x-typia-patternProperties"], _path + "[\"x-typia-patternProperties\"]", true && _exceptionable) || $guard(_exceptionable, {
|
749
832
|
path: _path + "[\"x-typia-patternProperties\"]",
|
750
833
|
expected: "(Record<string, ISwaggerSchema> | undefined)",
|
751
834
|
value: input["x-typia-patternProperties"]
|
@@ -778,7 +861,7 @@ class NestiaMigrateApplication {
|
|
778
861
|
expected: "(boolean | undefined)",
|
779
862
|
value: input["x-typia-rest"]
|
780
863
|
}));
|
781
|
-
const $
|
864
|
+
const $ao16 = (input, _path, _exceptionable = true) => ("string" === typeof input.$ref || $guard(_exceptionable, {
|
782
865
|
path: _path + ".$ref",
|
783
866
|
expected: "string",
|
784
867
|
value: input.$ref
|
@@ -803,7 +886,7 @@ class NestiaMigrateApplication {
|
|
803
886
|
expected: "(boolean | undefined)",
|
804
887
|
value: input["x-typia-rest"]
|
805
888
|
}));
|
806
|
-
const $
|
889
|
+
const $ao17 = (input, _path, _exceptionable = true) => ((Array.isArray(input.items) || $guard(_exceptionable, {
|
807
890
|
path: _path + ".items",
|
808
891
|
expected: "Array<ISwaggerSchema>",
|
809
892
|
value: input.items
|
@@ -848,7 +931,7 @@ class NestiaMigrateApplication {
|
|
848
931
|
expected: "(boolean | undefined)",
|
849
932
|
value: input["x-typia-rest"]
|
850
933
|
}));
|
851
|
-
const $
|
934
|
+
const $ao18 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
852
935
|
const value = input[key];
|
853
936
|
if (undefined === value)
|
854
937
|
return true;
|
@@ -864,7 +947,7 @@ class NestiaMigrateApplication {
|
|
864
947
|
});
|
865
948
|
return true;
|
866
949
|
});
|
867
|
-
const $
|
950
|
+
const $ao19 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
|
868
951
|
path: _path + ".type",
|
869
952
|
expected: "\"http\"",
|
870
953
|
value: input.type
|
@@ -873,7 +956,7 @@ class NestiaMigrateApplication {
|
|
873
956
|
expected: "\"basic\"",
|
874
957
|
value: input.scheme
|
875
958
|
}));
|
876
|
-
const $
|
959
|
+
const $ao20 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
|
877
960
|
path: _path + ".type",
|
878
961
|
expected: "\"http\"",
|
879
962
|
value: input.type
|
@@ -886,7 +969,7 @@ class NestiaMigrateApplication {
|
|
886
969
|
expected: "(string | undefined)",
|
887
970
|
value: input.bearerFormat
|
888
971
|
}));
|
889
|
-
const $
|
972
|
+
const $ao21 = (input, _path, _exceptionable = true) => ("apiKey" === input.type || $guard(_exceptionable, {
|
890
973
|
path: _path + ".type",
|
891
974
|
expected: "\"apiKey\"",
|
892
975
|
value: input.type
|
@@ -899,7 +982,7 @@ class NestiaMigrateApplication {
|
|
899
982
|
expected: "string",
|
900
983
|
value: input.name
|
901
984
|
}));
|
902
|
-
const $
|
985
|
+
const $ao22 = (input, _path, _exceptionable = true) => ("openIdConnect" === input.type || $guard(_exceptionable, {
|
903
986
|
path: _path + ".type",
|
904
987
|
expected: "\"openIdConnect\"",
|
905
988
|
value: input.type
|
@@ -908,7 +991,7 @@ class NestiaMigrateApplication {
|
|
908
991
|
expected: "string",
|
909
992
|
value: input.openIdConnectUrl
|
910
993
|
}));
|
911
|
-
const $
|
994
|
+
const $ao23 = (input, _path, _exceptionable = true) => ("oauth2" === input.type || $guard(_exceptionable, {
|
912
995
|
path: _path + ".type",
|
913
996
|
expected: "\"oauth2\"",
|
914
997
|
value: input.type
|
@@ -916,7 +999,7 @@ class NestiaMigrateApplication {
|
|
916
999
|
path: _path + ".flows",
|
917
1000
|
expected: "ISwaggerSecurity.IOAuth2.IFlowSet",
|
918
1001
|
value: input.flows
|
919
|
-
})) && $
|
1002
|
+
})) && $ao24(input.flows, _path + ".flows", true && _exceptionable) || $guard(_exceptionable, {
|
920
1003
|
path: _path + ".flows",
|
921
1004
|
expected: "ISwaggerSecurity.IOAuth2.IFlowSet",
|
922
1005
|
value: input.flows
|
@@ -925,11 +1008,11 @@ class NestiaMigrateApplication {
|
|
925
1008
|
expected: "(string | undefined)",
|
926
1009
|
value: input.description
|
927
1010
|
}));
|
928
|
-
const $
|
1011
|
+
const $ao24 = (input, _path, _exceptionable = true) => (undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode || $guard(_exceptionable, {
|
929
1012
|
path: _path + ".authorizationCode",
|
930
1013
|
expected: "(ISwaggerSecurity.IOAuth2.IFlow | undefined)",
|
931
1014
|
value: input.authorizationCode
|
932
|
-
})) && $
|
1015
|
+
})) && $ao25(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $guard(_exceptionable, {
|
933
1016
|
path: _path + ".authorizationCode",
|
934
1017
|
expected: "(ISwaggerSecurity.IOAuth2.IFlow | undefined)",
|
935
1018
|
value: input.authorizationCode
|
@@ -937,7 +1020,7 @@ class NestiaMigrateApplication {
|
|
937
1020
|
path: _path + ".implicit",
|
938
1021
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
939
1022
|
value: input.implicit
|
940
|
-
})) && $
|
1023
|
+
})) && $ao27(input.implicit, _path + ".implicit", true && _exceptionable) || $guard(_exceptionable, {
|
941
1024
|
path: _path + ".implicit",
|
942
1025
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
|
943
1026
|
value: input.implicit
|
@@ -945,7 +1028,7 @@ class NestiaMigrateApplication {
|
|
945
1028
|
path: _path + ".password",
|
946
1029
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
947
1030
|
value: input.password
|
948
|
-
})) && $
|
1031
|
+
})) && $ao28(input.password, _path + ".password", true && _exceptionable) || $guard(_exceptionable, {
|
949
1032
|
path: _path + ".password",
|
950
1033
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
951
1034
|
value: input.password
|
@@ -953,12 +1036,12 @@ class NestiaMigrateApplication {
|
|
953
1036
|
path: _path + ".clientCredentials",
|
954
1037
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
955
1038
|
value: input.clientCredentials
|
956
|
-
})) && $
|
1039
|
+
})) && $ao28(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $guard(_exceptionable, {
|
957
1040
|
path: _path + ".clientCredentials",
|
958
1041
|
expected: "(Omit<ISwaggerSecurity.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
|
959
1042
|
value: input.clientCredentials
|
960
1043
|
}));
|
961
|
-
const $
|
1044
|
+
const $ao25 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
|
962
1045
|
path: _path + ".authorizationUrl",
|
963
1046
|
expected: "string",
|
964
1047
|
value: input.authorizationUrl
|
@@ -974,12 +1057,12 @@ class NestiaMigrateApplication {
|
|
974
1057
|
path: _path + ".scopes",
|
975
1058
|
expected: "(Record<string, string> | undefined)",
|
976
1059
|
value: input.scopes
|
977
|
-
})) && $
|
1060
|
+
})) && $ao26(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
978
1061
|
path: _path + ".scopes",
|
979
1062
|
expected: "(Record<string, string> | undefined)",
|
980
1063
|
value: input.scopes
|
981
1064
|
}));
|
982
|
-
const $
|
1065
|
+
const $ao26 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
983
1066
|
const value = input[key];
|
984
1067
|
if (undefined === value)
|
985
1068
|
return true;
|
@@ -991,7 +1074,7 @@ class NestiaMigrateApplication {
|
|
991
1074
|
});
|
992
1075
|
return true;
|
993
1076
|
});
|
994
|
-
const $
|
1077
|
+
const $ao27 = (input, _path, _exceptionable = true) => ("string" === typeof input.authorizationUrl || $guard(_exceptionable, {
|
995
1078
|
path: _path + ".authorizationUrl",
|
996
1079
|
expected: "string",
|
997
1080
|
value: input.authorizationUrl
|
@@ -1003,12 +1086,12 @@ class NestiaMigrateApplication {
|
|
1003
1086
|
path: _path + ".scopes",
|
1004
1087
|
expected: "(Record<string, string> | undefined)",
|
1005
1088
|
value: input.scopes
|
1006
|
-
})) && $
|
1089
|
+
})) && $ao26(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
1007
1090
|
path: _path + ".scopes",
|
1008
1091
|
expected: "(Record<string, string> | undefined)",
|
1009
1092
|
value: input.scopes
|
1010
1093
|
}));
|
1011
|
-
const $
|
1094
|
+
const $ao28 = (input, _path, _exceptionable = true) => ("string" === typeof input.tokenUrl || $guard(_exceptionable, {
|
1012
1095
|
path: _path + ".tokenUrl",
|
1013
1096
|
expected: "string",
|
1014
1097
|
value: input.tokenUrl
|
@@ -1020,12 +1103,12 @@ class NestiaMigrateApplication {
|
|
1020
1103
|
path: _path + ".scopes",
|
1021
1104
|
expected: "(Record<string, string> | undefined)",
|
1022
1105
|
value: input.scopes
|
1023
|
-
})) && $
|
1106
|
+
})) && $ao26(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
|
1024
1107
|
path: _path + ".scopes",
|
1025
1108
|
expected: "(Record<string, string> | undefined)",
|
1026
1109
|
value: input.scopes
|
1027
1110
|
}));
|
1028
|
-
const $
|
1111
|
+
const $ao29 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
1029
1112
|
const value = input[key];
|
1030
1113
|
if (undefined === value)
|
1031
1114
|
return true;
|
@@ -1034,14 +1117,14 @@ class NestiaMigrateApplication {
|
|
1034
1117
|
path: _path + $join(key),
|
1035
1118
|
expected: "ISwagger.IPath",
|
1036
1119
|
value: value
|
1037
|
-
})) && $
|
1120
|
+
})) && $ao30(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
1038
1121
|
path: _path + $join(key),
|
1039
1122
|
expected: "ISwagger.IPath",
|
1040
1123
|
value: value
|
1041
1124
|
});
|
1042
1125
|
return true;
|
1043
1126
|
});
|
1044
|
-
const $
|
1127
|
+
const $ao30 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
1045
1128
|
const value = input[key];
|
1046
1129
|
if (undefined === value)
|
1047
1130
|
return true;
|
@@ -1050,14 +1133,14 @@ class NestiaMigrateApplication {
|
|
1050
1133
|
path: _path + $join(key),
|
1051
1134
|
expected: "ISwaggerRoute",
|
1052
1135
|
value: value
|
1053
|
-
})) && $
|
1136
|
+
})) && $ao31(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
1054
1137
|
path: _path + $join(key),
|
1055
1138
|
expected: "ISwaggerRoute",
|
1056
1139
|
value: value
|
1057
1140
|
});
|
1058
1141
|
return true;
|
1059
1142
|
});
|
1060
|
-
const $
|
1143
|
+
const $ao31 = (input, _path, _exceptionable = true) => (undefined === input.parameters || (Array.isArray(input.parameters) || $guard(_exceptionable, {
|
1061
1144
|
path: _path + ".parameters",
|
1062
1145
|
expected: "(Array<ISwaggerRoute.IParameter> | undefined)",
|
1063
1146
|
value: input.parameters
|
@@ -1065,7 +1148,7 @@ class NestiaMigrateApplication {
|
|
1065
1148
|
path: _path + ".parameters[" + _index11 + "]",
|
1066
1149
|
expected: "ISwaggerRoute.IParameter",
|
1067
1150
|
value: elem
|
1068
|
-
})) && $
|
1151
|
+
})) && $ao32(elem, _path + ".parameters[" + _index11 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
1069
1152
|
path: _path + ".parameters[" + _index11 + "]",
|
1070
1153
|
expected: "ISwaggerRoute.IParameter",
|
1071
1154
|
value: elem
|
@@ -1077,7 +1160,7 @@ class NestiaMigrateApplication {
|
|
1077
1160
|
path: _path + ".requestBody",
|
1078
1161
|
expected: "(ISwaggerRoute.IRequestBody | undefined)",
|
1079
1162
|
value: input.requestBody
|
1080
|
-
})) && $
|
1163
|
+
})) && $ao33(input.requestBody, _path + ".requestBody", true && _exceptionable) || $guard(_exceptionable, {
|
1081
1164
|
path: _path + ".requestBody",
|
1082
1165
|
expected: "(ISwaggerRoute.IRequestBody | undefined)",
|
1083
1166
|
value: input.requestBody
|
@@ -1085,7 +1168,7 @@ class NestiaMigrateApplication {
|
|
1085
1168
|
path: _path + ".responses",
|
1086
1169
|
expected: "(ISwaggerRoute.IResponseBody | undefined)",
|
1087
1170
|
value: input.responses
|
1088
|
-
})) && $
|
1171
|
+
})) && $ao37(input.responses, _path + ".responses", true && _exceptionable) || $guard(_exceptionable, {
|
1089
1172
|
path: _path + ".responses",
|
1090
1173
|
expected: "(ISwaggerRoute.IResponseBody | undefined)",
|
1091
1174
|
value: input.responses
|
@@ -1109,7 +1192,7 @@ class NestiaMigrateApplication {
|
|
1109
1192
|
path: _path + ".security[" + _index12 + "]",
|
1110
1193
|
expected: "Record<string, Array<string>>",
|
1111
1194
|
value: elem
|
1112
|
-
})) && $
|
1195
|
+
})) && $ao39(elem, _path + ".security[" + _index12 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
1113
1196
|
path: _path + ".security[" + _index12 + "]",
|
1114
1197
|
expected: "Record<string, Array<string>>",
|
1115
1198
|
value: elem
|
@@ -1129,10 +1212,26 @@ class NestiaMigrateApplication {
|
|
1129
1212
|
path: _path + ".tags",
|
1130
1213
|
expected: "(Array<string> | undefined)",
|
1131
1214
|
value: input.tags
|
1215
|
+
})) && (undefined === input["x-nestia-jsDocTags"] || (Array.isArray(input["x-nestia-jsDocTags"]) || $guard(_exceptionable, {
|
1216
|
+
path: _path + "[\"x-nestia-jsDocTags\"]",
|
1217
|
+
expected: "(Array<IJsDocTagInfo> | undefined)",
|
1218
|
+
value: input["x-nestia-jsDocTags"]
|
1219
|
+
})) && input["x-nestia-jsDocTags"].every((elem, _index14) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
1220
|
+
path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
|
1221
|
+
expected: "IJsDocTagInfo",
|
1222
|
+
value: elem
|
1223
|
+
})) && $ao40(elem, _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
1224
|
+
path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
|
1225
|
+
expected: "IJsDocTagInfo",
|
1226
|
+
value: elem
|
1227
|
+
})) || $guard(_exceptionable, {
|
1228
|
+
path: _path + "[\"x-nestia-jsDocTags\"]",
|
1229
|
+
expected: "(Array<IJsDocTagInfo> | undefined)",
|
1230
|
+
value: input["x-nestia-jsDocTags"]
|
1132
1231
|
}));
|
1133
|
-
const $
|
1232
|
+
const $ao32 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
1134
1233
|
path: _path + ".name",
|
1135
|
-
expected: "string",
|
1234
|
+
expected: "(string | undefined)",
|
1136
1235
|
value: input.name
|
1137
1236
|
})) && ("header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || "path" === input["in"] || $guard(_exceptionable, {
|
1138
1237
|
path: _path + "[\"in\"]",
|
@@ -1155,7 +1254,7 @@ class NestiaMigrateApplication {
|
|
1155
1254
|
expected: "(string | undefined)",
|
1156
1255
|
value: input.description
|
1157
1256
|
}));
|
1158
|
-
const $
|
1257
|
+
const $ao33 = (input, _path, _exceptionable = true) => (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
1159
1258
|
path: _path + ".description",
|
1160
1259
|
expected: "(string | undefined)",
|
1161
1260
|
value: input.description
|
@@ -1163,24 +1262,24 @@ class NestiaMigrateApplication {
|
|
1163
1262
|
path: _path + ".content",
|
1164
1263
|
expected: "ISwaggerRoute.IContent",
|
1165
1264
|
value: input.content
|
1166
|
-
})) && $
|
1265
|
+
})) && $ao34(input.content, _path + ".content", true && _exceptionable) || $guard(_exceptionable, {
|
1167
1266
|
path: _path + ".content",
|
1168
1267
|
expected: "ISwaggerRoute.IContent",
|
1169
1268
|
value: input.content
|
1170
|
-
})) && (undefined === input.required ||
|
1269
|
+
})) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
|
1171
1270
|
path: _path + ".required",
|
1172
|
-
expected: "(
|
1271
|
+
expected: "(boolean | undefined)",
|
1173
1272
|
value: input.required
|
1174
1273
|
})) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"] || $guard(_exceptionable, {
|
1175
1274
|
path: _path + "[\"x-nestia-encrypted\"]",
|
1176
1275
|
expected: "(boolean | undefined)",
|
1177
1276
|
value: input["x-nestia-encrypted"]
|
1178
1277
|
}));
|
1179
|
-
const $
|
1278
|
+
const $ao34 = (input, _path, _exceptionable = true) => (undefined === input["text/plain"] || ("object" === typeof input["text/plain"] && null !== input["text/plain"] || $guard(_exceptionable, {
|
1180
1279
|
path: _path + "[\"text/plain\"]",
|
1181
1280
|
expected: "(__type | undefined)",
|
1182
1281
|
value: input["text/plain"]
|
1183
|
-
})) && $
|
1282
|
+
})) && $ao35(input["text/plain"], _path + "[\"text/plain\"]", true && _exceptionable) || $guard(_exceptionable, {
|
1184
1283
|
path: _path + "[\"text/plain\"]",
|
1185
1284
|
expected: "(__type | undefined)",
|
1186
1285
|
value: input["text/plain"]
|
@@ -1188,21 +1287,21 @@ class NestiaMigrateApplication {
|
|
1188
1287
|
path: _path + "[\"application/json\"]",
|
1189
1288
|
expected: "(__type.o1 | undefined)",
|
1190
1289
|
value: input["application/json"]
|
1191
|
-
})) && $
|
1290
|
+
})) && $ao36(input["application/json"], _path + "[\"application/json\"]", true && _exceptionable) || $guard(_exceptionable, {
|
1192
1291
|
path: _path + "[\"application/json\"]",
|
1193
1292
|
expected: "(__type.o1 | undefined)",
|
1194
1293
|
value: input["application/json"]
|
1195
1294
|
}));
|
1196
|
-
const $
|
1295
|
+
const $ao35 = (input, _path, _exceptionable = true) => ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $guard(_exceptionable, {
|
1197
1296
|
path: _path + ".schema",
|
1198
|
-
expected: "ISwaggerSchema.IString",
|
1297
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1199
1298
|
value: input.schema
|
1200
|
-
})) && $
|
1299
|
+
})) && $au0(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
|
1201
1300
|
path: _path + ".schema",
|
1202
|
-
expected: "ISwaggerSchema.IString",
|
1301
|
+
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1203
1302
|
value: input.schema
|
1204
1303
|
});
|
1205
|
-
const $
|
1304
|
+
const $ao36 = (input, _path, _exceptionable = true) => ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $guard(_exceptionable, {
|
1206
1305
|
path: _path + ".schema",
|
1207
1306
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1208
1307
|
value: input.schema
|
@@ -1211,7 +1310,7 @@ class NestiaMigrateApplication {
|
|
1211
1310
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
1212
1311
|
value: input.schema
|
1213
1312
|
});
|
1214
|
-
const $
|
1313
|
+
const $ao37 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
1215
1314
|
const value = input[key];
|
1216
1315
|
if (undefined === value)
|
1217
1316
|
return true;
|
@@ -1220,14 +1319,14 @@ class NestiaMigrateApplication {
|
|
1220
1319
|
path: _path + $join(key),
|
1221
1320
|
expected: "__type.o2",
|
1222
1321
|
value: value
|
1223
|
-
})) && $
|
1322
|
+
})) && $ao38(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
|
1224
1323
|
path: _path + $join(key),
|
1225
1324
|
expected: "__type.o2",
|
1226
1325
|
value: value
|
1227
1326
|
});
|
1228
1327
|
return true;
|
1229
1328
|
});
|
1230
|
-
const $
|
1329
|
+
const $ao38 = (input, _path, _exceptionable = true) => (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
|
1231
1330
|
path: _path + ".description",
|
1232
1331
|
expected: "(string | undefined)",
|
1233
1332
|
value: input.description
|
@@ -1235,7 +1334,7 @@ class NestiaMigrateApplication {
|
|
1235
1334
|
path: _path + ".content",
|
1236
1335
|
expected: "(ISwaggerRoute.IContent | undefined)",
|
1237
1336
|
value: input.content
|
1238
|
-
})) && $
|
1337
|
+
})) && $ao34(input.content, _path + ".content", true && _exceptionable) || $guard(_exceptionable, {
|
1239
1338
|
path: _path + ".content",
|
1240
1339
|
expected: "(ISwaggerRoute.IContent | undefined)",
|
1241
1340
|
value: input.content
|
@@ -1244,7 +1343,7 @@ class NestiaMigrateApplication {
|
|
1244
1343
|
expected: "(boolean | undefined)",
|
1245
1344
|
value: input["x-nestia-encrypted"]
|
1246
1345
|
}));
|
1247
|
-
const $
|
1346
|
+
const $ao39 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
|
1248
1347
|
const value = input[key];
|
1249
1348
|
if (undefined === value)
|
1250
1349
|
return true;
|
@@ -1253,8 +1352,8 @@ class NestiaMigrateApplication {
|
|
1253
1352
|
path: _path + $join(key),
|
1254
1353
|
expected: "Array<string>",
|
1255
1354
|
value: value
|
1256
|
-
})) && value.every((elem,
|
1257
|
-
path: _path + $join(key) + "[" +
|
1355
|
+
})) && value.every((elem, _index15) => "string" === typeof elem || $guard(_exceptionable, {
|
1356
|
+
path: _path + $join(key) + "[" + _index15 + "]",
|
1258
1357
|
expected: "string",
|
1259
1358
|
value: elem
|
1260
1359
|
})) || $guard(_exceptionable, {
|
@@ -1264,38 +1363,68 @@ class NestiaMigrateApplication {
|
|
1264
1363
|
});
|
1265
1364
|
return true;
|
1266
1365
|
});
|
1366
|
+
const $ao40 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
1367
|
+
path: _path + ".name",
|
1368
|
+
expected: "string",
|
1369
|
+
value: input.name
|
1370
|
+
})) && (undefined === input.text || (Array.isArray(input.text) || $guard(_exceptionable, {
|
1371
|
+
path: _path + ".text",
|
1372
|
+
expected: "(Array<IJsDocTagInfo.IText> | undefined)",
|
1373
|
+
value: input.text
|
1374
|
+
})) && input.text.every((elem, _index16) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
1375
|
+
path: _path + ".text[" + _index16 + "]",
|
1376
|
+
expected: "IJsDocTagInfo.IText",
|
1377
|
+
value: elem
|
1378
|
+
})) && $ao41(elem, _path + ".text[" + _index16 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
1379
|
+
path: _path + ".text[" + _index16 + "]",
|
1380
|
+
expected: "IJsDocTagInfo.IText",
|
1381
|
+
value: elem
|
1382
|
+
})) || $guard(_exceptionable, {
|
1383
|
+
path: _path + ".text",
|
1384
|
+
expected: "(Array<IJsDocTagInfo.IText> | undefined)",
|
1385
|
+
value: input.text
|
1386
|
+
}));
|
1387
|
+
const $ao41 = (input, _path, _exceptionable = true) => ("string" === typeof input.text || $guard(_exceptionable, {
|
1388
|
+
path: _path + ".text",
|
1389
|
+
expected: "string",
|
1390
|
+
value: input.text
|
1391
|
+
})) && ("string" === typeof input.kind || $guard(_exceptionable, {
|
1392
|
+
path: _path + ".kind",
|
1393
|
+
expected: "string",
|
1394
|
+
value: input.kind
|
1395
|
+
}));
|
1267
1396
|
const $au0 = (input, _path, _exceptionable = true) => (() => {
|
1268
1397
|
if (undefined !== input.anyOf)
|
1269
|
-
return $
|
1398
|
+
return $ao8(input, _path, true && _exceptionable);
|
1270
1399
|
if (undefined !== input.oneOf)
|
1271
|
-
return $
|
1400
|
+
return $ao9(input, _path, true && _exceptionable);
|
1272
1401
|
if ("boolean" === input.type)
|
1273
|
-
return $ao8(input, _path, true && _exceptionable);
|
1274
|
-
if ("number" === input.type)
|
1275
1402
|
return $ao10(input, _path, true && _exceptionable);
|
1403
|
+
if ("number" === input.type)
|
1404
|
+
return $ao12(input, _path, true && _exceptionable);
|
1276
1405
|
if ("integer" === input.type)
|
1277
|
-
return $ao9(input, _path, true && _exceptionable);
|
1278
|
-
if ("string" === input.type)
|
1279
1406
|
return $ao11(input, _path, true && _exceptionable);
|
1407
|
+
if ("string" === input.type)
|
1408
|
+
return $ao13(input, _path, true && _exceptionable);
|
1280
1409
|
if ("array" === input.type)
|
1281
|
-
return $
|
1410
|
+
return $ao14(input, _path, true && _exceptionable);
|
1282
1411
|
if ("object" === input.type)
|
1283
|
-
return $
|
1412
|
+
return $ao15(input, _path, true && _exceptionable);
|
1284
1413
|
if (undefined !== input.$ref)
|
1285
|
-
return $
|
1286
|
-
return $
|
1414
|
+
return $ao16(input, _path, true && _exceptionable);
|
1415
|
+
return $ao7(input, _path, true && _exceptionable);
|
1287
1416
|
})();
|
1288
1417
|
const $au1 = (input, _path, _exceptionable = true) => (() => {
|
1289
1418
|
if ("basic" === input.scheme)
|
1290
|
-
return $
|
1419
|
+
return $ao19(input, _path, true && _exceptionable);
|
1291
1420
|
if ("bearer" === input.scheme)
|
1292
|
-
return $
|
1421
|
+
return $ao20(input, _path, true && _exceptionable);
|
1293
1422
|
if ("apiKey" === input.type)
|
1294
|
-
return $
|
1423
|
+
return $ao21(input, _path, true && _exceptionable);
|
1295
1424
|
if ("openIdConnect" === input.type)
|
1296
|
-
return $
|
1425
|
+
return $ao22(input, _path, true && _exceptionable);
|
1297
1426
|
if ("oauth2" === input.type)
|
1298
|
-
return $
|
1427
|
+
return $ao23(input, _path, true && _exceptionable);
|
1299
1428
|
return $guard(_exceptionable, {
|
1300
1429
|
path: _path,
|
1301
1430
|
expected: "(ISwaggerSecurity.IHttpBasic | ISwaggerSecurity.IHttpBearer | ISwaggerSecurity.IApiKey | ISwaggerSecurity.IOpenId | ISwaggerSecurity.IOAuth2)",
|