@nestia/migrate 0.14.0 → 0.14.1
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 +172 -172
- 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/programmers/MigrateSchemaProgrammer.js +1 -1
- package/package.json +6 -6
- package/src/bundles/NEST_TEMPLATE.ts +2 -2
- package/src/bundles/SDK_TEMPLATE.ts +1 -1
@@ -39,9 +39,9 @@ class MigrateApplication {
|
|
39
39
|
return true;
|
40
40
|
return "object" === typeof value && null !== value && $io3(value);
|
41
41
|
});
|
42
|
-
const $io3 = input => "string" === typeof input["default"] && (undefined === input["enum"] || Array.isArray(input["enum"]) &&
|
42
|
+
const $io3 = 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);
|
43
43
|
const $io4 = 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) && $io5(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io6(input.license)) && "string" === typeof input.version;
|
44
|
-
const $io5 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email);
|
44
|
+
const $io5 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email && /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email));
|
45
45
|
const $io6 = input => "string" === typeof input.name && (undefined === input.identifier || "string" === typeof input.identifier) && (undefined === input.url || "string" === typeof input.url);
|
46
46
|
const $io7 = input => (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && $io8(input.schemas)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && $io21(input.securitySchemes));
|
47
47
|
const $io8 = input => Object.keys(input).every(key => {
|
@@ -54,7 +54,7 @@ class MigrateApplication {
|
|
54
54
|
const $io10 = input => (undefined === input["default"] || "boolean" === typeof input["default"]) && "boolean" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
55
55
|
const $io11 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000)) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
56
56
|
const $io12 = input => (undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
57
|
-
const $io13 = input => (undefined === input
|
57
|
+
const $io13 = input => (undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && "string" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
58
58
|
const $io14 = 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 <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
59
59
|
const $io15 = input => Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && $iu0(input.additionalItems))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && "array" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
60
60
|
const $io16 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io8(input.properties)) && (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.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
@@ -89,12 +89,12 @@ class MigrateApplication {
|
|
89
89
|
return true;
|
90
90
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io33(value);
|
91
91
|
});
|
92
|
-
const $io33 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.
|
92
|
+
const $io33 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io34(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io34(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io34(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io34(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io34(input.options)) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && $io34(input.head)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io34(input.patch)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && $io34(input.trace));
|
93
93
|
const $io34 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $io35(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && $io36(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io39(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io42(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
94
94
|
const $io35 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description);
|
95
95
|
const $io36 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io37(input.content)) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"]);
|
96
|
-
const $io37 = input => (undefined === input["text/plain"] || "object" === typeof input["text/plain"] && null !== input["text/plain"] && false === Array.isArray(input["text/plain"]) && $io38(input["text/plain"])) && (undefined === input["application/json"] || "object" === typeof input["application/json"] && null !== input["application/json"] && false === Array.isArray(input["application/json"]) && $io38(input["application/json"])) && (undefined === input["
|
97
|
-
if (["text/plain", "application/json", "
|
96
|
+
const $io37 = input => (undefined === input["text/plain"] || "object" === typeof input["text/plain"] && null !== input["text/plain"] && false === Array.isArray(input["text/plain"]) && $io38(input["text/plain"])) && (undefined === input["application/json"] || "object" === typeof input["application/json"] && null !== input["application/json"] && false === Array.isArray(input["application/json"]) && $io38(input["application/json"])) && (undefined === input["application/x-www-form-url-encoded"] || "object" === typeof input["application/x-www-form-url-encoded"] && null !== input["application/x-www-form-url-encoded"] && false === Array.isArray(input["application/x-www-form-url-encoded"]) && $io38(input["application/x-www-form-url-encoded"])) && (undefined === input["multipart/form-data"] || "object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] && false === Array.isArray(input["multipart/form-data"]) && $io38(input["multipart/form-data"])) && (undefined === input["*/*"] || "object" === typeof input["*/*"] && null !== input["*/*"] && false === Array.isArray(input["*/*"]) && $io38(input["*/*"])) && Object.keys(input).every(key => {
|
97
|
+
if (["text/plain", "application/json", "application/x-www-form-url-encoded", "multipart/form-data", "*/*"].some(prop => key === prop))
|
98
98
|
return true;
|
99
99
|
const value = input[key];
|
100
100
|
if (undefined === value)
|
@@ -186,7 +186,7 @@ class MigrateApplication {
|
|
186
186
|
return true;
|
187
187
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io83(value);
|
188
188
|
});
|
189
|
-
const $io83 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu3(elem))) && (undefined === input.
|
189
|
+
const $io83 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu3(elem))) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io85(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io85(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io85(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io85(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io85(input.options)) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && $io85(input.head)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io85(input.patch)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && $io85(input.trace));
|
190
190
|
const $io84 = input => "string" === typeof input.$ref && RegExp(/^#\/parameters\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
191
191
|
const $io85 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu4(elem))) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io87(input.responses)) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io42(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
192
192
|
const $io86 = input => "string" === typeof input.$ref && RegExp(/^#\/definitions\/parameters\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
@@ -292,7 +292,7 @@ class MigrateApplication {
|
|
292
292
|
return true;
|
293
293
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io134(value);
|
294
294
|
});
|
295
|
-
const $io134 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu6(elem))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io91(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.
|
295
|
+
const $io134 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu6(elem))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io91(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io136(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io136(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io136(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io136(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io136(input.options)) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && $io136(input.head)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io136(input.patch)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && $io136(input.trace));
|
296
296
|
const $io135 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
297
297
|
const $io136 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu6(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && $iu15(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io138(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io91(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io42(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
298
298
|
const $io137 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
@@ -323,7 +323,7 @@ class MigrateApplication {
|
|
323
323
|
return true;
|
324
324
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $iu7(value);
|
325
325
|
});
|
326
|
-
const $io150 = input => Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem) && (undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.
|
326
|
+
const $io150 = input => Array.isArray(input.type) && input.type.every(elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "integer" === elem || "array" === elem) && (undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 18446744073709552000)) && (null !== input.items && undefined !== input.items && (Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu7(input.items))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 18446744073709552000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 18446744073709552000)) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem))) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && $iu7(input.additionalItems))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io149(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && $iu7(input.additionalProperties))) && (undefined === input.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem))) && (Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem))) && (Array.isArray(input.allOf) && input.allOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu7(elem)));
|
327
327
|
const $io151 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
328
328
|
const $io152 = input => (undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "boolean" === typeof elem)) && "boolean" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
329
329
|
const $io153 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -9223372036854776000 <= input["default"] && input["default"] <= 9223372036854776000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -9223372036854776000 <= input.minimum && input.minimum <= 9223372036854776000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -9223372036854776000 <= input.maximum && input.maximum <= 9223372036854776000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -9223372036854776000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 9223372036854776000) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -9223372036854776000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 9223372036854776000) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 18446744073709552000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
@@ -343,7 +343,7 @@ class MigrateApplication {
|
|
343
343
|
return true;
|
344
344
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io165(value);
|
345
345
|
});
|
346
|
-
const $io165 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu8(elem))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io142(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.
|
346
|
+
const $io165 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $iu8(elem))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io142(elem))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && $io169(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && $io169(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && $io169(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && $io169(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io169(input.options)) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && $io169(input.head)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && $io169(input.patch)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && $io169(input.trace));
|
347
347
|
const $io166 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description);
|
348
348
|
const $io167 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
349
349
|
const $io168 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
@@ -820,27 +820,27 @@ class MigrateApplication {
|
|
820
820
|
value: input.info
|
821
821
|
}), ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) || $report(_exceptionable, {
|
822
822
|
path: _path + ".components",
|
823
|
-
expected: "OpenApi.IComponents",
|
823
|
+
expected: "OpenApi.IComponents<OpenApi.IJsonSchema>",
|
824
824
|
value: input.components
|
825
825
|
})) && $vo7(input.components, _path + ".components", true && _exceptionable) || $report(_exceptionable, {
|
826
826
|
path: _path + ".components",
|
827
|
-
expected: "OpenApi.IComponents",
|
827
|
+
expected: "OpenApi.IComponents<OpenApi.IJsonSchema>",
|
828
828
|
value: input.components
|
829
829
|
}), undefined === input.paths || ("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) || $report(_exceptionable, {
|
830
830
|
path: _path + ".paths",
|
831
|
-
expected: "(Record<string, OpenApi.IPath
|
831
|
+
expected: "(Record<string, OpenApi.IPath<OpenApi.IJsonSchema, OpenApi.IOperation<OpenApi.IJsonSchema>>> | undefined)",
|
832
832
|
value: input.paths
|
833
833
|
})) && $vo32(input.paths, _path + ".paths", true && _exceptionable) || $report(_exceptionable, {
|
834
834
|
path: _path + ".paths",
|
835
|
-
expected: "(Record<string, OpenApi.IPath
|
835
|
+
expected: "(Record<string, OpenApi.IPath<OpenApi.IJsonSchema, OpenApi.IOperation<OpenApi.IJsonSchema>>> | undefined)",
|
836
836
|
value: input.paths
|
837
837
|
}), undefined === input.webhooks || ("object" === typeof input.webhooks && null !== input.webhooks && false === Array.isArray(input.webhooks) || $report(_exceptionable, {
|
838
838
|
path: _path + ".webhooks",
|
839
|
-
expected: "(Record<string, OpenApi.IPath
|
839
|
+
expected: "(Record<string, OpenApi.IPath<OpenApi.IJsonSchema, OpenApi.IOperation<OpenApi.IJsonSchema>>> | undefined)",
|
840
840
|
value: input.webhooks
|
841
841
|
})) && $vo32(input.webhooks, _path + ".webhooks", true && _exceptionable) || $report(_exceptionable, {
|
842
842
|
path: _path + ".webhooks",
|
843
|
-
expected: "(Record<string, OpenApi.IPath
|
843
|
+
expected: "(Record<string, OpenApi.IPath<OpenApi.IJsonSchema, OpenApi.IOperation<OpenApi.IJsonSchema>>> | undefined)",
|
844
844
|
value: input.webhooks
|
845
845
|
}), undefined === input.security || (Array.isArray(input.security) || $report(_exceptionable, {
|
846
846
|
path: _path + ".security",
|
@@ -916,19 +916,15 @@ class MigrateApplication {
|
|
916
916
|
value: input["default"]
|
917
917
|
}), undefined === input["enum"] || (Array.isArray(input["enum"]) || $report(_exceptionable, {
|
918
918
|
path: _path + "[\"enum\"]",
|
919
|
-
expected: "(
|
920
|
-
value: input["enum"]
|
921
|
-
})) && ((1 <= input["enum"].length || $report(_exceptionable, {
|
922
|
-
path: _path + "[\"enum\"]",
|
923
|
-
expected: "Array<> & MinItems<1>",
|
919
|
+
expected: "(Array<string> | undefined)",
|
924
920
|
value: input["enum"]
|
925
921
|
})) && input["enum"].map((elem, _index4) => "string" === typeof elem || $report(_exceptionable, {
|
926
922
|
path: _path + "[\"enum\"][" + _index4 + "]",
|
927
923
|
expected: "string",
|
928
924
|
value: elem
|
929
|
-
})).every(flag => flag)
|
925
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
930
926
|
path: _path + "[\"enum\"]",
|
931
|
-
expected: "(
|
927
|
+
expected: "(Array<string> | undefined)",
|
932
928
|
value: input["enum"]
|
933
929
|
}), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
934
930
|
path: _path + ".description",
|
@@ -980,9 +976,13 @@ class MigrateApplication {
|
|
980
976
|
path: _path + ".url",
|
981
977
|
expected: "(string | undefined)",
|
982
978
|
value: input.url
|
983
|
-
}), undefined === input.email || "string" === typeof input.email || $report(_exceptionable, {
|
979
|
+
}), undefined === input.email || "string" === typeof input.email && (/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email) || $report(_exceptionable, {
|
984
980
|
path: _path + ".email",
|
985
|
-
expected: "
|
981
|
+
expected: "string & Format<\"email\">",
|
982
|
+
value: input.email
|
983
|
+
})) || $report(_exceptionable, {
|
984
|
+
path: _path + ".email",
|
985
|
+
expected: "((string & Format<\"email\">) | undefined)",
|
986
986
|
value: input.email
|
987
987
|
})].every(flag => flag);
|
988
988
|
const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
@@ -1021,11 +1021,11 @@ class MigrateApplication {
|
|
1021
1021
|
return true;
|
1022
1022
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
|
1023
1023
|
path: _path + $join(key),
|
1024
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown)",
|
1024
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown)",
|
1025
1025
|
value: value
|
1026
1026
|
})) && $vu0(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
1027
1027
|
path: _path + $join(key),
|
1028
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown)",
|
1028
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown)",
|
1029
1029
|
value: value
|
1030
1030
|
});
|
1031
1031
|
}).every(flag => flag)].every(flag => flag);
|
@@ -1173,11 +1173,7 @@ class MigrateApplication {
|
|
1173
1173
|
expected: "(boolean | undefined)",
|
1174
1174
|
value: input.deprecated
|
1175
1175
|
})].every(flag => flag);
|
1176
|
-
const $vo13 = (input, _path, _exceptionable = true) => [undefined === input
|
1177
|
-
path: _path + ".contentMediaType",
|
1178
|
-
expected: "(string | undefined)",
|
1179
|
-
value: input.contentMediaType
|
1180
|
-
}), undefined === input["default"] || "string" === typeof input["default"] || $report(_exceptionable, {
|
1176
|
+
const $vo13 = (input, _path, _exceptionable = true) => [undefined === input["default"] || "string" === typeof input["default"] || $report(_exceptionable, {
|
1181
1177
|
path: _path + "[\"default\"]",
|
1182
1178
|
expected: "(string | undefined)",
|
1183
1179
|
value: input["default"]
|
@@ -1189,6 +1185,10 @@ class MigrateApplication {
|
|
1189
1185
|
path: _path + ".pattern",
|
1190
1186
|
expected: "(string | undefined)",
|
1191
1187
|
value: input.pattern
|
1188
|
+
}), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || $report(_exceptionable, {
|
1189
|
+
path: _path + ".contentMediaType",
|
1190
|
+
expected: "(string | undefined)",
|
1191
|
+
value: input.contentMediaType
|
1192
1192
|
}), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || $report(_exceptionable, {
|
1193
1193
|
path: _path + ".minLength",
|
1194
1194
|
expected: "number & Type<\"uint64\">",
|
@@ -1224,11 +1224,11 @@ class MigrateApplication {
|
|
1224
1224
|
})].every(flag => flag);
|
1225
1225
|
const $vo14 = (input, _path, _exceptionable = true) => [("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || $report(_exceptionable, {
|
1226
1226
|
path: _path + ".items",
|
1227
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown)",
|
1227
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown)",
|
1228
1228
|
value: input.items
|
1229
1229
|
})) && $vu0(input.items, _path + ".items", true && _exceptionable) || $report(_exceptionable, {
|
1230
1230
|
path: _path + ".items",
|
1231
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown)",
|
1231
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown)",
|
1232
1232
|
value: input.items
|
1233
1233
|
}), undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || $report(_exceptionable, {
|
1234
1234
|
path: _path + ".uniqueItems",
|
@@ -1273,11 +1273,11 @@ class MigrateApplication {
|
|
1273
1273
|
value: input.prefixItems
|
1274
1274
|
})) && input.prefixItems.map((elem, _index5) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
|
1275
1275
|
path: _path + ".prefixItems[" + _index5 + "]",
|
1276
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown)",
|
1276
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown)",
|
1277
1277
|
value: elem
|
1278
1278
|
})) && $vu0(elem, _path + ".prefixItems[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
1279
1279
|
path: _path + ".prefixItems[" + _index5 + "]",
|
1280
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown)",
|
1280
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown)",
|
1281
1281
|
value: elem
|
1282
1282
|
})).every(flag => flag) || $report(_exceptionable, {
|
1283
1283
|
path: _path + ".prefixItems",
|
@@ -1285,15 +1285,15 @@ class MigrateApplication {
|
|
1285
1285
|
value: input.prefixItems
|
1286
1286
|
}), (null !== input.additionalItems || $report(_exceptionable, {
|
1287
1287
|
path: _path + ".additionalItems",
|
1288
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1288
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1289
1289
|
value: input.additionalItems
|
1290
1290
|
})) && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || ("object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) || $report(_exceptionable, {
|
1291
1291
|
path: _path + ".additionalItems",
|
1292
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1292
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1293
1293
|
value: input.additionalItems
|
1294
1294
|
})) && $vu0(input.additionalItems, _path + ".additionalItems", true && _exceptionable) || $report(_exceptionable, {
|
1295
1295
|
path: _path + ".additionalItems",
|
1296
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1296
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1297
1297
|
value: input.additionalItems
|
1298
1298
|
})), undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || $report(_exceptionable, {
|
1299
1299
|
path: _path + ".uniqueItems",
|
@@ -1342,15 +1342,15 @@ class MigrateApplication {
|
|
1342
1342
|
value: input.properties
|
1343
1343
|
}), (null !== input.additionalProperties || $report(_exceptionable, {
|
1344
1344
|
path: _path + ".additionalProperties",
|
1345
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1345
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1346
1346
|
value: input.additionalProperties
|
1347
1347
|
})) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || $report(_exceptionable, {
|
1348
1348
|
path: _path + ".additionalProperties",
|
1349
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1349
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1350
1350
|
value: input.additionalProperties
|
1351
1351
|
})) && $vu0(input.additionalProperties, _path + ".additionalProperties", true && _exceptionable) || $report(_exceptionable, {
|
1352
1352
|
path: _path + ".additionalProperties",
|
1353
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1353
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown | boolean | undefined)",
|
1354
1354
|
value: input.additionalProperties
|
1355
1355
|
})), undefined === input.required || (Array.isArray(input.required) || $report(_exceptionable, {
|
1356
1356
|
path: _path + ".required",
|
@@ -1400,19 +1400,19 @@ class MigrateApplication {
|
|
1400
1400
|
})].every(flag => flag);
|
1401
1401
|
const $vo18 = (input, _path, _exceptionable = true) => [(Array.isArray(input.oneOf) || $report(_exceptionable, {
|
1402
1402
|
path: _path + ".oneOf",
|
1403
|
-
expected: "Array<IConstant | IBoolean | IInteger | INumber | IString | IArray | ITuple | IObject | IReference
|
1403
|
+
expected: "Array<IConstant | IBoolean | IInteger | INumber | IString | IArray<IJsonSchema> | ITuple<IJsonSchema> | IObject<...> | IReference<...> | INull | IUnknown>",
|
1404
1404
|
value: input.oneOf
|
1405
1405
|
})) && input.oneOf.map((elem, _index7) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable, {
|
1406
1406
|
path: _path + ".oneOf[" + _index7 + "]",
|
1407
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown)",
|
1407
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown)",
|
1408
1408
|
value: elem
|
1409
1409
|
})) && $vu1(elem, _path + ".oneOf[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
1410
1410
|
path: _path + ".oneOf[" + _index7 + "]",
|
1411
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown)",
|
1411
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown)",
|
1412
1412
|
value: elem
|
1413
1413
|
})).every(flag => flag) || $report(_exceptionable, {
|
1414
1414
|
path: _path + ".oneOf",
|
1415
|
-
expected: "Array<IConstant | IBoolean | IInteger | INumber | IString | IArray | ITuple | IObject | IReference
|
1415
|
+
expected: "Array<IConstant | IBoolean | IInteger | INumber | IString | IArray<IJsonSchema> | ITuple<IJsonSchema> | IObject<...> | IReference<...> | INull | IUnknown>",
|
1416
1416
|
value: input.oneOf
|
1417
1417
|
}), undefined === input.title || "string" === typeof input.title || $report(_exceptionable, {
|
1418
1418
|
path: _path + ".title",
|
@@ -1660,11 +1660,11 @@ class MigrateApplication {
|
|
1660
1660
|
return true;
|
1661
1661
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
|
1662
1662
|
path: _path + $join(key),
|
1663
|
-
expected: "OpenApi.IPath",
|
1663
|
+
expected: "OpenApi.IPath<OpenApi.IJsonSchema, OpenApi.IOperation<OpenApi.IJsonSchema>>",
|
1664
1664
|
value: value
|
1665
1665
|
})) && $vo33(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
1666
1666
|
path: _path + $join(key),
|
1667
|
-
expected: "OpenApi.IPath",
|
1667
|
+
expected: "OpenApi.IPath<OpenApi.IJsonSchema, OpenApi.IOperation<OpenApi.IJsonSchema>>",
|
1668
1668
|
value: value
|
1669
1669
|
});
|
1670
1670
|
}).every(flag => flag)].every(flag => flag);
|
@@ -1692,69 +1692,69 @@ class MigrateApplication {
|
|
1692
1692
|
path: _path + ".description",
|
1693
1693
|
expected: "(string | undefined)",
|
1694
1694
|
value: input.description
|
1695
|
-
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
1696
|
-
path: _path + ".head",
|
1697
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1698
|
-
value: input.head
|
1699
|
-
})) && $vo34(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
1700
|
-
path: _path + ".head",
|
1701
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1702
|
-
value: input.head
|
1703
1695
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || $report(_exceptionable, {
|
1704
1696
|
path: _path + ".get",
|
1705
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1697
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1706
1698
|
value: input.get
|
1707
1699
|
})) && $vo34(input.get, _path + ".get", true && _exceptionable) || $report(_exceptionable, {
|
1708
1700
|
path: _path + ".get",
|
1709
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1701
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1710
1702
|
value: input.get
|
1711
1703
|
}), undefined === input.post || ("object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) || $report(_exceptionable, {
|
1712
1704
|
path: _path + ".post",
|
1713
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1705
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1714
1706
|
value: input.post
|
1715
1707
|
})) && $vo34(input.post, _path + ".post", true && _exceptionable) || $report(_exceptionable, {
|
1716
1708
|
path: _path + ".post",
|
1717
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1709
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1718
1710
|
value: input.post
|
1719
1711
|
}), undefined === input.put || ("object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) || $report(_exceptionable, {
|
1720
1712
|
path: _path + ".put",
|
1721
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1713
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1722
1714
|
value: input.put
|
1723
1715
|
})) && $vo34(input.put, _path + ".put", true && _exceptionable) || $report(_exceptionable, {
|
1724
1716
|
path: _path + ".put",
|
1725
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1717
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1726
1718
|
value: input.put
|
1727
|
-
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
1728
|
-
path: _path + ".patch",
|
1729
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1730
|
-
value: input.patch
|
1731
|
-
})) && $vo34(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
1732
|
-
path: _path + ".patch",
|
1733
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1734
|
-
value: input.patch
|
1735
1719
|
}), undefined === input["delete"] || ("object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) || $report(_exceptionable, {
|
1736
1720
|
path: _path + "[\"delete\"]",
|
1737
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1721
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1738
1722
|
value: input["delete"]
|
1739
1723
|
})) && $vo34(input["delete"], _path + "[\"delete\"]", true && _exceptionable) || $report(_exceptionable, {
|
1740
1724
|
path: _path + "[\"delete\"]",
|
1741
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1725
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1742
1726
|
value: input["delete"]
|
1743
1727
|
}), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
|
1744
1728
|
path: _path + ".options",
|
1745
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1729
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1746
1730
|
value: input.options
|
1747
1731
|
})) && $vo34(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
|
1748
1732
|
path: _path + ".options",
|
1749
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1733
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1750
1734
|
value: input.options
|
1735
|
+
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
1736
|
+
path: _path + ".head",
|
1737
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1738
|
+
value: input.head
|
1739
|
+
})) && $vo34(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
1740
|
+
path: _path + ".head",
|
1741
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1742
|
+
value: input.head
|
1743
|
+
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
1744
|
+
path: _path + ".patch",
|
1745
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1746
|
+
value: input.patch
|
1747
|
+
})) && $vo34(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
1748
|
+
path: _path + ".patch",
|
1749
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1750
|
+
value: input.patch
|
1751
1751
|
}), undefined === input.trace || ("object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) || $report(_exceptionable, {
|
1752
1752
|
path: _path + ".trace",
|
1753
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1753
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1754
1754
|
value: input.trace
|
1755
1755
|
})) && $vo34(input.trace, _path + ".trace", true && _exceptionable) || $report(_exceptionable, {
|
1756
1756
|
path: _path + ".trace",
|
1757
|
-
expected: "(OpenApi.IOperation | undefined)",
|
1757
|
+
expected: "(OpenApi.IOperation<OpenApi.IJsonSchema> | undefined)",
|
1758
1758
|
value: input.trace
|
1759
1759
|
})].every(flag => flag);
|
1760
1760
|
const $vo34 = (input, _path, _exceptionable = true) => [undefined === input.operationId || "string" === typeof input.operationId || $report(_exceptionable, {
|
@@ -1763,35 +1763,35 @@ class MigrateApplication {
|
|
1763
1763
|
value: input.operationId
|
1764
1764
|
}), undefined === input.parameters || (Array.isArray(input.parameters) || $report(_exceptionable, {
|
1765
1765
|
path: _path + ".parameters",
|
1766
|
-
expected: "(Array<OpenApi.IOperation.IParameter
|
1766
|
+
expected: "(Array<OpenApi.IOperation.IParameter<OpenApi.IJsonSchema>> | undefined)",
|
1767
1767
|
value: input.parameters
|
1768
1768
|
})) && input.parameters.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
1769
1769
|
path: _path + ".parameters[" + _index9 + "]",
|
1770
|
-
expected: "OpenApi.IOperation.IParameter",
|
1770
|
+
expected: "OpenApi.IOperation.IParameter<OpenApi.IJsonSchema>",
|
1771
1771
|
value: elem
|
1772
1772
|
})) && $vo35(elem, _path + ".parameters[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
1773
1773
|
path: _path + ".parameters[" + _index9 + "]",
|
1774
|
-
expected: "OpenApi.IOperation.IParameter",
|
1774
|
+
expected: "OpenApi.IOperation.IParameter<OpenApi.IJsonSchema>",
|
1775
1775
|
value: elem
|
1776
1776
|
})).every(flag => flag) || $report(_exceptionable, {
|
1777
1777
|
path: _path + ".parameters",
|
1778
|
-
expected: "(Array<OpenApi.IOperation.IParameter
|
1778
|
+
expected: "(Array<OpenApi.IOperation.IParameter<OpenApi.IJsonSchema>> | undefined)",
|
1779
1779
|
value: input.parameters
|
1780
1780
|
}), undefined === input.requestBody || ("object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) || $report(_exceptionable, {
|
1781
1781
|
path: _path + ".requestBody",
|
1782
|
-
expected: "(OpenApi.IOperation.IRequestBody | undefined)",
|
1782
|
+
expected: "(OpenApi.IOperation.IRequestBody<OpenApi.IJsonSchema> | undefined)",
|
1783
1783
|
value: input.requestBody
|
1784
1784
|
})) && $vo36(input.requestBody, _path + ".requestBody", true && _exceptionable) || $report(_exceptionable, {
|
1785
1785
|
path: _path + ".requestBody",
|
1786
|
-
expected: "(OpenApi.IOperation.IRequestBody | undefined)",
|
1786
|
+
expected: "(OpenApi.IOperation.IRequestBody<OpenApi.IJsonSchema> | undefined)",
|
1787
1787
|
value: input.requestBody
|
1788
1788
|
}), undefined === input.responses || ("object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) || $report(_exceptionable, {
|
1789
1789
|
path: _path + ".responses",
|
1790
|
-
expected: "(Record<string, OpenApi.IOperation.IResponse
|
1790
|
+
expected: "(Record<string, OpenApi.IOperation.IResponse<OpenApi.IJsonSchema>> | undefined)",
|
1791
1791
|
value: input.responses
|
1792
1792
|
})) && $vo39(input.responses, _path + ".responses", true && _exceptionable) || $report(_exceptionable, {
|
1793
1793
|
path: _path + ".responses",
|
1794
|
-
expected: "(Record<string, OpenApi.IOperation.IResponse
|
1794
|
+
expected: "(Record<string, OpenApi.IOperation.IResponse<OpenApi.IJsonSchema>> | undefined)",
|
1795
1795
|
value: input.responses
|
1796
1796
|
}), undefined === input.servers || (Array.isArray(input.servers) || $report(_exceptionable, {
|
1797
1797
|
path: _path + ".servers",
|
@@ -1860,11 +1860,11 @@ class MigrateApplication {
|
|
1860
1860
|
value: input["in"]
|
1861
1861
|
}), ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
1862
1862
|
path: _path + ".schema",
|
1863
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown)",
|
1863
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown)",
|
1864
1864
|
value: input.schema
|
1865
1865
|
})) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
|
1866
1866
|
path: _path + ".schema",
|
1867
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown)",
|
1867
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown)",
|
1868
1868
|
value: input.schema
|
1869
1869
|
}), undefined === input.required || "boolean" === typeof input.required || $report(_exceptionable, {
|
1870
1870
|
path: _path + ".required",
|
@@ -1889,11 +1889,11 @@ class MigrateApplication {
|
|
1889
1889
|
value: input.required
|
1890
1890
|
}), undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
|
1891
1891
|
path: _path + ".content",
|
1892
|
-
expected: "(Partial<Record<OpenApi.IOperation.ContentType, OpenApi.IOperation.IMediaType
|
1892
|
+
expected: "(Partial<Record<OpenApi.IOperation.ContentType, OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema>>> | undefined)",
|
1893
1893
|
value: input.content
|
1894
1894
|
})) && $vo37(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
1895
1895
|
path: _path + ".content",
|
1896
|
-
expected: "(Partial<Record<OpenApi.IOperation.ContentType, OpenApi.IOperation.IMediaType
|
1896
|
+
expected: "(Partial<Record<OpenApi.IOperation.ContentType, OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema>>> | undefined)",
|
1897
1897
|
value: input.content
|
1898
1898
|
}), undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"] || $report(_exceptionable, {
|
1899
1899
|
path: _path + "[\"x-nestia-encrypted\"]",
|
@@ -1902,67 +1902,67 @@ class MigrateApplication {
|
|
1902
1902
|
})].every(flag => flag);
|
1903
1903
|
const $vo37 = (input, _path, _exceptionable = true) => [undefined === input["text/plain"] || ("object" === typeof input["text/plain"] && null !== input["text/plain"] && false === Array.isArray(input["text/plain"]) || $report(_exceptionable, {
|
1904
1904
|
path: _path + "[\"text/plain\"]",
|
1905
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1905
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1906
1906
|
value: input["text/plain"]
|
1907
1907
|
})) && $vo38(input["text/plain"], _path + "[\"text/plain\"]", true && _exceptionable) || $report(_exceptionable, {
|
1908
1908
|
path: _path + "[\"text/plain\"]",
|
1909
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1909
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1910
1910
|
value: input["text/plain"]
|
1911
1911
|
}), undefined === input["application/json"] || ("object" === typeof input["application/json"] && null !== input["application/json"] && false === Array.isArray(input["application/json"]) || $report(_exceptionable, {
|
1912
1912
|
path: _path + "[\"application/json\"]",
|
1913
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1913
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1914
1914
|
value: input["application/json"]
|
1915
1915
|
})) && $vo38(input["application/json"], _path + "[\"application/json\"]", true && _exceptionable) || $report(_exceptionable, {
|
1916
1916
|
path: _path + "[\"application/json\"]",
|
1917
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1917
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1918
1918
|
value: input["application/json"]
|
1919
|
-
}), undefined === input["multipart/form-data"] || ("object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] && false === Array.isArray(input["multipart/form-data"]) || $report(_exceptionable, {
|
1920
|
-
path: _path + "[\"multipart/form-data\"]",
|
1921
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1922
|
-
value: input["multipart/form-data"]
|
1923
|
-
})) && $vo38(input["multipart/form-data"], _path + "[\"multipart/form-data\"]", true && _exceptionable) || $report(_exceptionable, {
|
1924
|
-
path: _path + "[\"multipart/form-data\"]",
|
1925
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1926
|
-
value: input["multipart/form-data"]
|
1927
1919
|
}), undefined === input["application/x-www-form-url-encoded"] || ("object" === typeof input["application/x-www-form-url-encoded"] && null !== input["application/x-www-form-url-encoded"] && false === Array.isArray(input["application/x-www-form-url-encoded"]) || $report(_exceptionable, {
|
1928
1920
|
path: _path + "[\"application/x-www-form-url-encoded\"]",
|
1929
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1921
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1930
1922
|
value: input["application/x-www-form-url-encoded"]
|
1931
1923
|
})) && $vo38(input["application/x-www-form-url-encoded"], _path + "[\"application/x-www-form-url-encoded\"]", true && _exceptionable) || $report(_exceptionable, {
|
1932
1924
|
path: _path + "[\"application/x-www-form-url-encoded\"]",
|
1933
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1925
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1934
1926
|
value: input["application/x-www-form-url-encoded"]
|
1927
|
+
}), undefined === input["multipart/form-data"] || ("object" === typeof input["multipart/form-data"] && null !== input["multipart/form-data"] && false === Array.isArray(input["multipart/form-data"]) || $report(_exceptionable, {
|
1928
|
+
path: _path + "[\"multipart/form-data\"]",
|
1929
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1930
|
+
value: input["multipart/form-data"]
|
1931
|
+
})) && $vo38(input["multipart/form-data"], _path + "[\"multipart/form-data\"]", true && _exceptionable) || $report(_exceptionable, {
|
1932
|
+
path: _path + "[\"multipart/form-data\"]",
|
1933
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1934
|
+
value: input["multipart/form-data"]
|
1935
1935
|
}), undefined === input["*/*"] || ("object" === typeof input["*/*"] && null !== input["*/*"] && false === Array.isArray(input["*/*"]) || $report(_exceptionable, {
|
1936
1936
|
path: _path + "[\"*/*\"]",
|
1937
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1937
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1938
1938
|
value: input["*/*"]
|
1939
1939
|
})) && $vo38(input["*/*"], _path + "[\"*/*\"]", true && _exceptionable) || $report(_exceptionable, {
|
1940
1940
|
path: _path + "[\"*/*\"]",
|
1941
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1941
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1942
1942
|
value: input["*/*"]
|
1943
1943
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
1944
|
-
if (["text/plain", "application/json", "
|
1944
|
+
if (["text/plain", "application/json", "application/x-www-form-url-encoded", "multipart/form-data", "*/*"].some(prop => key === prop))
|
1945
1945
|
return true;
|
1946
1946
|
const value = input[key];
|
1947
1947
|
if (undefined === value)
|
1948
1948
|
return true;
|
1949
1949
|
return undefined === value || ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
|
1950
1950
|
path: _path + $join(key),
|
1951
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1951
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1952
1952
|
value: value
|
1953
1953
|
})) && $vo38(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
1954
1954
|
path: _path + $join(key),
|
1955
|
-
expected: "(OpenApi.IOperation.IMediaType | undefined)",
|
1955
|
+
expected: "(OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema> | undefined)",
|
1956
1956
|
value: value
|
1957
1957
|
});
|
1958
1958
|
}).every(flag => flag)].every(flag => flag);
|
1959
1959
|
const $vo38 = (input, _path, _exceptionable = true) => [undefined === input.schema || ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || $report(_exceptionable, {
|
1960
1960
|
path: _path + ".schema",
|
1961
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown | undefined)",
|
1961
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown | undefined)",
|
1962
1962
|
value: input.schema
|
1963
1963
|
})) && $vu0(input.schema, _path + ".schema", true && _exceptionable) || $report(_exceptionable, {
|
1964
1964
|
path: _path + ".schema",
|
1965
|
-
expected: "(OpenApi.IJsonSchema.IArray | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject | OpenApi.IJsonSchema.IOneOf | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple | OpenApi.IJsonSchema.IUnknown | undefined)",
|
1965
|
+
expected: "(OpenApi.IJsonSchema.IArray<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IBoolean | OpenApi.IJsonSchema.IConstant | OpenApi.IJsonSchema.IInteger | OpenApi.IJsonSchema.INull | OpenApi.IJsonSchema.INumber | OpenApi.IJsonSchema.IObject<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IOneOf<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IReference<string> | OpenApi.IJsonSchema.IString | OpenApi.IJsonSchema.ITuple<OpenApi.IJsonSchema> | OpenApi.IJsonSchema.IUnknown | undefined)",
|
1966
1966
|
value: input.schema
|
1967
1967
|
})].every(flag => flag);
|
1968
1968
|
const $vo39 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
@@ -1971,29 +1971,29 @@ class MigrateApplication {
|
|
1971
1971
|
return true;
|
1972
1972
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable, {
|
1973
1973
|
path: _path + $join(key),
|
1974
|
-
expected: "OpenApi.IOperation.IResponse",
|
1974
|
+
expected: "OpenApi.IOperation.IResponse<OpenApi.IJsonSchema>",
|
1975
1975
|
value: value
|
1976
1976
|
})) && $vo40(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
1977
1977
|
path: _path + $join(key),
|
1978
|
-
expected: "OpenApi.IOperation.IResponse",
|
1978
|
+
expected: "OpenApi.IOperation.IResponse<OpenApi.IJsonSchema>",
|
1979
1979
|
value: value
|
1980
1980
|
});
|
1981
1981
|
}).every(flag => flag)].every(flag => flag);
|
1982
1982
|
const $vo40 = (input, _path, _exceptionable = true) => [undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || $report(_exceptionable, {
|
1983
1983
|
path: _path + ".content",
|
1984
|
-
expected: "(Partial<Record<OpenApi.IOperation.ContentType, OpenApi.IOperation.IMediaType
|
1984
|
+
expected: "(Partial<Record<OpenApi.IOperation.ContentType, OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema>>> | undefined)",
|
1985
1985
|
value: input.content
|
1986
1986
|
})) && $vo37(input.content, _path + ".content", true && _exceptionable) || $report(_exceptionable, {
|
1987
1987
|
path: _path + ".content",
|
1988
|
-
expected: "(Partial<Record<OpenApi.IOperation.ContentType, OpenApi.IOperation.IMediaType
|
1988
|
+
expected: "(Partial<Record<OpenApi.IOperation.ContentType, OpenApi.IOperation.IMediaType<OpenApi.IJsonSchema>>> | undefined)",
|
1989
1989
|
value: input.content
|
1990
1990
|
}), undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || $report(_exceptionable, {
|
1991
1991
|
path: _path + ".headers",
|
1992
|
-
expected: "(Record<string, OpenApi.IOperation.IParameter
|
1992
|
+
expected: "(Record<string, OpenApi.IOperation.IParameter<OpenApi.IJsonSchema>> | undefined)",
|
1993
1993
|
value: input.headers
|
1994
1994
|
})) && $vo41(input.headers, _path + ".headers", true && _exceptionable) || $report(_exceptionable, {
|
1995
1995
|
path: _path + ".headers",
|
1996
|
-
expected: "(Record<string, OpenApi.IOperation.IParameter
|
1996
|
+
expected: "(Record<string, OpenApi.IOperation.IParameter<OpenApi.IJsonSchema>> | undefined)",
|
1997
1997
|
value: input.headers
|
1998
1998
|
}), undefined === input.description || "string" === typeof input.description || $report(_exceptionable, {
|
1999
1999
|
path: _path + ".description",
|
@@ -2010,11 +2010,11 @@ class MigrateApplication {
|
|
2010
2010
|
return true;
|
2011
2011
|
return ("object" === typeof value && null !== value || $report(_exceptionable, {
|
2012
2012
|
path: _path + $join(key),
|
2013
|
-
expected: "OpenApi.IOperation.IParameter",
|
2013
|
+
expected: "OpenApi.IOperation.IParameter<OpenApi.IJsonSchema>",
|
2014
2014
|
value: value
|
2015
2015
|
})) && $vo35(value, _path + $join(key), true && _exceptionable) || $report(_exceptionable, {
|
2016
2016
|
path: _path + $join(key),
|
2017
|
-
expected: "OpenApi.IOperation.IParameter",
|
2017
|
+
expected: "OpenApi.IOperation.IParameter<OpenApi.IJsonSchema>",
|
2018
2018
|
value: value
|
2019
2019
|
});
|
2020
2020
|
}).every(flag => flag)].every(flag => flag);
|
@@ -3497,14 +3497,6 @@ class MigrateApplication {
|
|
3497
3497
|
path: _path + ".parameters",
|
3498
3498
|
expected: "(Array<IParameter | IReference<`#/parameters/${string}`>> | undefined)",
|
3499
3499
|
value: input.parameters
|
3500
|
-
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
3501
|
-
path: _path + ".head",
|
3502
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
3503
|
-
value: input.head
|
3504
|
-
})) && $vo85(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
3505
|
-
path: _path + ".head",
|
3506
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
3507
|
-
value: input.head
|
3508
3500
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || $report(_exceptionable, {
|
3509
3501
|
path: _path + ".get",
|
3510
3502
|
expected: "(SwaggerV2.IOperation | undefined)",
|
@@ -3529,14 +3521,6 @@ class MigrateApplication {
|
|
3529
3521
|
path: _path + ".put",
|
3530
3522
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3531
3523
|
value: input.put
|
3532
|
-
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
3533
|
-
path: _path + ".patch",
|
3534
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
3535
|
-
value: input.patch
|
3536
|
-
})) && $vo85(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
3537
|
-
path: _path + ".patch",
|
3538
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
3539
|
-
value: input.patch
|
3540
3524
|
}), undefined === input["delete"] || ("object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) || $report(_exceptionable, {
|
3541
3525
|
path: _path + "[\"delete\"]",
|
3542
3526
|
expected: "(SwaggerV2.IOperation | undefined)",
|
@@ -3553,6 +3537,22 @@ class MigrateApplication {
|
|
3553
3537
|
path: _path + ".options",
|
3554
3538
|
expected: "(SwaggerV2.IOperation | undefined)",
|
3555
3539
|
value: input.options
|
3540
|
+
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
3541
|
+
path: _path + ".head",
|
3542
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
3543
|
+
value: input.head
|
3544
|
+
})) && $vo85(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
3545
|
+
path: _path + ".head",
|
3546
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
3547
|
+
value: input.head
|
3548
|
+
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
3549
|
+
path: _path + ".patch",
|
3550
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
3551
|
+
value: input.patch
|
3552
|
+
})) && $vo85(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
3553
|
+
path: _path + ".patch",
|
3554
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
3555
|
+
value: input.patch
|
3556
3556
|
}), undefined === input.trace || ("object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) || $report(_exceptionable, {
|
3557
3557
|
path: _path + ".trace",
|
3558
3558
|
expected: "(SwaggerV2.IOperation | undefined)",
|
@@ -4875,14 +4875,6 @@ class MigrateApplication {
|
|
4875
4875
|
path: _path + ".description",
|
4876
4876
|
expected: "(string | undefined)",
|
4877
4877
|
value: input.description
|
4878
|
-
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
4879
|
-
path: _path + ".head",
|
4880
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
4881
|
-
value: input.head
|
4882
|
-
})) && $vo136(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
4883
|
-
path: _path + ".head",
|
4884
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
4885
|
-
value: input.head
|
4886
4878
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || $report(_exceptionable, {
|
4887
4879
|
path: _path + ".get",
|
4888
4880
|
expected: "(OpenApiV3.IOperation | undefined)",
|
@@ -4907,14 +4899,6 @@ class MigrateApplication {
|
|
4907
4899
|
path: _path + ".put",
|
4908
4900
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4909
4901
|
value: input.put
|
4910
|
-
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
4911
|
-
path: _path + ".patch",
|
4912
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
4913
|
-
value: input.patch
|
4914
|
-
})) && $vo136(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
4915
|
-
path: _path + ".patch",
|
4916
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
4917
|
-
value: input.patch
|
4918
4902
|
}), undefined === input["delete"] || ("object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) || $report(_exceptionable, {
|
4919
4903
|
path: _path + "[\"delete\"]",
|
4920
4904
|
expected: "(OpenApiV3.IOperation | undefined)",
|
@@ -4931,6 +4915,22 @@ class MigrateApplication {
|
|
4931
4915
|
path: _path + ".options",
|
4932
4916
|
expected: "(OpenApiV3.IOperation | undefined)",
|
4933
4917
|
value: input.options
|
4918
|
+
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
4919
|
+
path: _path + ".head",
|
4920
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
4921
|
+
value: input.head
|
4922
|
+
})) && $vo136(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
4923
|
+
path: _path + ".head",
|
4924
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
4925
|
+
value: input.head
|
4926
|
+
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
4927
|
+
path: _path + ".patch",
|
4928
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
4929
|
+
value: input.patch
|
4930
|
+
})) && $vo136(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
4931
|
+
path: _path + ".patch",
|
4932
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
4933
|
+
value: input.patch
|
4934
4934
|
}), undefined === input.trace || ("object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) || $report(_exceptionable, {
|
4935
4935
|
path: _path + ".trace",
|
4936
4936
|
expected: "(OpenApiV3.IOperation | undefined)",
|
@@ -5446,10 +5446,6 @@ class MigrateApplication {
|
|
5446
5446
|
path: _path + ".multipleOf",
|
5447
5447
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
5448
5448
|
value: input.multipleOf
|
5449
|
-
}), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || $report(_exceptionable, {
|
5450
|
-
path: _path + ".contentMediaType",
|
5451
|
-
expected: "(string | undefined)",
|
5452
|
-
value: input.contentMediaType
|
5453
5449
|
}), undefined === input.format || "string" === typeof input.format || $report(_exceptionable, {
|
5454
5450
|
path: _path + ".format",
|
5455
5451
|
expected: "(string | undefined)",
|
@@ -5458,6 +5454,10 @@ class MigrateApplication {
|
|
5458
5454
|
path: _path + ".pattern",
|
5459
5455
|
expected: "(string | undefined)",
|
5460
5456
|
value: input.pattern
|
5457
|
+
}), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || $report(_exceptionable, {
|
5458
|
+
path: _path + ".contentMediaType",
|
5459
|
+
expected: "(string | undefined)",
|
5460
|
+
value: input.contentMediaType
|
5461
5461
|
}), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 18446744073709552000 || $report(_exceptionable, {
|
5462
5462
|
path: _path + ".minLength",
|
5463
5463
|
expected: "number & Type<\"uint64\">",
|
@@ -6254,14 +6254,6 @@ class MigrateApplication {
|
|
6254
6254
|
path: _path + ".description",
|
6255
6255
|
expected: "(string | undefined)",
|
6256
6256
|
value: input.description
|
6257
|
-
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
6258
|
-
path: _path + ".head",
|
6259
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6260
|
-
value: input.head
|
6261
|
-
})) && $vo169(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
6262
|
-
path: _path + ".head",
|
6263
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6264
|
-
value: input.head
|
6265
6257
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || $report(_exceptionable, {
|
6266
6258
|
path: _path + ".get",
|
6267
6259
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
@@ -6286,14 +6278,6 @@ class MigrateApplication {
|
|
6286
6278
|
path: _path + ".put",
|
6287
6279
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6288
6280
|
value: input.put
|
6289
|
-
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
6290
|
-
path: _path + ".patch",
|
6291
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6292
|
-
value: input.patch
|
6293
|
-
})) && $vo169(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
6294
|
-
path: _path + ".patch",
|
6295
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6296
|
-
value: input.patch
|
6297
6281
|
}), undefined === input["delete"] || ("object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) || $report(_exceptionable, {
|
6298
6282
|
path: _path + "[\"delete\"]",
|
6299
6283
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
@@ -6310,6 +6294,22 @@ class MigrateApplication {
|
|
6310
6294
|
path: _path + ".options",
|
6311
6295
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6312
6296
|
value: input.options
|
6297
|
+
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || $report(_exceptionable, {
|
6298
|
+
path: _path + ".head",
|
6299
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6300
|
+
value: input.head
|
6301
|
+
})) && $vo169(input.head, _path + ".head", true && _exceptionable) || $report(_exceptionable, {
|
6302
|
+
path: _path + ".head",
|
6303
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6304
|
+
value: input.head
|
6305
|
+
}), undefined === input.patch || ("object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) || $report(_exceptionable, {
|
6306
|
+
path: _path + ".patch",
|
6307
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6308
|
+
value: input.patch
|
6309
|
+
})) && $vo169(input.patch, _path + ".patch", true && _exceptionable) || $report(_exceptionable, {
|
6310
|
+
path: _path + ".patch",
|
6311
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
6312
|
+
value: input.patch
|
6313
6313
|
}), undefined === input.trace || ("object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) || $report(_exceptionable, {
|
6314
6314
|
path: _path + ".trace",
|
6315
6315
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
@@ -7271,17 +7271,17 @@ class MigrateApplication {
|
|
7271
7271
|
else
|
7272
7272
|
return $report(_exceptionable, {
|
7273
7273
|
path: _path,
|
7274
|
-
expected: "(OpenApi.IDocument | SwaggerV2.IDocument | OpenApiV3.IDocument | OpenApiV3_1.IDocument)",
|
7274
|
+
expected: "(OpenApi.IDocument<OpenApi.IJsonSchema, OpenApi.IOperation<OpenApi.IJsonSchema>> | SwaggerV2.IDocument | OpenApiV3.IDocument | OpenApiV3_1.IDocument)",
|
7275
7275
|
value: input
|
7276
7276
|
});
|
7277
7277
|
})();
|
7278
7278
|
return ("object" === typeof input && null !== input || $report(true, {
|
7279
7279
|
path: _path + "",
|
7280
|
-
expected: "(OpenApi.IDocument | OpenApiV3.IDocument | OpenApiV3_1.IDocument | SwaggerV2.IDocument)",
|
7280
|
+
expected: "(OpenApi.IDocument<OpenApi.IJsonSchema, OpenApi.IOperation<OpenApi.IJsonSchema>> | OpenApiV3.IDocument | OpenApiV3_1.IDocument | SwaggerV2.IDocument)",
|
7281
7281
|
value: input
|
7282
7282
|
})) && $vu22(input, _path + "", true) || $report(true, {
|
7283
7283
|
path: _path + "",
|
7284
|
-
expected: "(OpenApi.IDocument | OpenApiV3.IDocument | OpenApiV3_1.IDocument | SwaggerV2.IDocument)",
|
7284
|
+
expected: "(OpenApi.IDocument<OpenApi.IJsonSchema, OpenApi.IOperation<OpenApi.IJsonSchema>> | OpenApiV3.IDocument | OpenApiV3_1.IDocument | SwaggerV2.IDocument)",
|
7285
7285
|
value: input
|
7286
7286
|
});
|
7287
7287
|
})(input, "$input", true);
|
@@ -55,7 +55,7 @@ exports.NEST_TEMPLATE = [
|
|
55
55
|
{
|
56
56
|
"location": "",
|
57
57
|
"file": "package.json",
|
58
|
-
"content": "{\r\n \"private\": true,\r\n \"name\": \"@ORGANIZATION/PROJECT\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"Starter kit of Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"scripts\": {\r\n \"benchmark\": \"node bin/test/benchmark\",\r\n \"test\": \"node bin/test\",\r\n \"test:webpack\": \"npm run webpack && node bin/test/webpack.js\",\r\n \"------------------------BUILDS------------------------\": \"\",\r\n \"build\": \"npm run build:sdk && npm run build:main && npm run build:test\",\r\n \"build:api\": \"rimraf packages/api/lib && npm run build:sdk && tsc -p packages/api/tsconfig.json\",\r\n \"build:main\": \"rimraf lib && tsc\",\r\n \"build:sdk\": \"rimraf src/api/functional && nestia sdk\",\r\n \"build:swagger\": \"npx nestia swagger\",\r\n \"build:test\": \"rimraf bin && tsc -p test/tsconfig.json\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"eslint\": \"eslint src && eslint test\",\r\n \"eslint:fix\": \"eslint --fix src && eslint --fix test\",\r\n \"prepare\": \"ts-patch install && typia patch\",\r\n \"prettier\": \"prettier src --write && prettier test --write\",\r\n \"------------------------WEBPACK------------------------\": \"\",\r\n \"webpack\": \"rimraf dist && webpack\",\r\n \"webpack:start\": \"cd dist && node dist/server\",\r\n \"------------------------DEPLOYS------------------------\": \"\",\r\n \"package:api\": \"npm run build:swagger && npm run build:api && cd packages/api && npm publish\",\r\n \"start\": \"node lib/executable/server\",\r\n \"start:swagger\": \"ts-node src/executable/swagger.ts\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-start\"\r\n },\r\n \"keywords\": [\r\n \"nestia\",\r\n \"template\",\r\n \"boilerplate\"\r\n ],\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-start/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-start#readme\",\r\n \"devDependencies\": {\r\n \"@nestia/e2e\": \"^0.6.0\",\r\n \"@nestia/sdk\": \"^3.
|
58
|
+
"content": "{\r\n \"private\": true,\r\n \"name\": \"@ORGANIZATION/PROJECT\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"Starter kit of Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"scripts\": {\r\n \"benchmark\": \"node bin/test/benchmark\",\r\n \"test\": \"node bin/test\",\r\n \"test:webpack\": \"npm run webpack && node bin/test/webpack.js\",\r\n \"------------------------BUILDS------------------------\": \"\",\r\n \"build\": \"npm run build:sdk && npm run build:main && npm run build:test\",\r\n \"build:api\": \"rimraf packages/api/lib && npm run build:sdk && tsc -p packages/api/tsconfig.json\",\r\n \"build:main\": \"rimraf lib && tsc\",\r\n \"build:sdk\": \"rimraf src/api/functional && nestia sdk\",\r\n \"build:swagger\": \"npx nestia swagger\",\r\n \"build:test\": \"rimraf bin && tsc -p test/tsconfig.json\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"eslint\": \"eslint src && eslint test\",\r\n \"eslint:fix\": \"eslint --fix src && eslint --fix test\",\r\n \"prepare\": \"ts-patch install && typia patch\",\r\n \"prettier\": \"prettier src --write && prettier test --write\",\r\n \"------------------------WEBPACK------------------------\": \"\",\r\n \"webpack\": \"rimraf dist && webpack\",\r\n \"webpack:start\": \"cd dist && node dist/server\",\r\n \"------------------------DEPLOYS------------------------\": \"\",\r\n \"package:api\": \"npm run build:swagger && npm run build:api && cd packages/api && npm publish\",\r\n \"start\": \"node lib/executable/server\",\r\n \"start:swagger\": \"ts-node src/executable/swagger.ts\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-start\"\r\n },\r\n \"keywords\": [\r\n \"nestia\",\r\n \"template\",\r\n \"boilerplate\"\r\n ],\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-start/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-start#readme\",\r\n \"devDependencies\": {\r\n \"@nestia/e2e\": \"^0.6.0\",\r\n \"@nestia/sdk\": \"^3.4.1\",\r\n \"@trivago/prettier-plugin-sort-imports\": \"^4.3.0\",\r\n \"@types/cli\": \"^0.11.21\",\r\n \"@types/cli-progress\": \"^3.11.5\",\r\n \"@types/express\": \"^4.17.21\",\r\n \"@types/inquirer\": \"^8.2.5\",\r\n \"@types/node\": \"^18.11.0\",\r\n \"@types/uuid\": \"^8.3.4\",\r\n \"@typescript-eslint/eslint-plugin\": \"^6.19.1\",\r\n \"@typescript-eslint/parser\": \"^6.19.1\",\r\n \"chalk\": \"^4.1.0\",\r\n \"cli\": \"^1.0.1\",\r\n \"cli-progress\": \"^3.12.0\",\r\n \"copy-webpack-plugin\": \"^11.0.0\",\r\n \"eslint-plugin-deprecation\": \"^2.0.0\",\r\n \"express\": \"^4.18.2\",\r\n \"nestia\": \"^5.3.1\",\r\n \"prettier\": \"^3.2.4\",\r\n \"prettier-plugin-prisma\": \"^5.0.0\",\r\n \"rimraf\": \"^3.0.2\",\r\n \"source-map-support\": \"^0.5.21\",\r\n \"swagger-ui-express\": \"^5.0.0\",\r\n \"ts-loader\": \"^9.5.1\",\r\n \"ts-node\": \"^10.9.1\",\r\n \"ts-patch\": \"^3.2.1\",\r\n \"typescript\": \"^5.5.3\",\r\n \"typescript-transform-paths\": \"^3.4.6\",\r\n \"webpack\": \"^5.89.0\",\r\n \"webpack-cli\": \"^5.1.4\",\r\n \"write-file-webpack-plugin\": \"^4.5.1\"\r\n },\r\n \"dependencies\": {\r\n \"@nestia/core\": \"^3.4.1\",\r\n \"@nestia/fetcher\": \"^3.4.1\",\r\n \"@nestjs/common\": \"^10.3.10\",\r\n \"@nestjs/core\": \"^10.3.10\",\r\n \"@nestjs/platform-express\": \"^10.3.10\",\r\n \"commander\": \"10.0.0\",\r\n \"dotenv\": \"^16.3.1\",\r\n \"dotenv-expand\": \"^10.0.0\",\r\n \"inquirer\": \"8.2.5\",\r\n \"serialize-error\": \"^4.1.0\",\r\n \"tgrid\": \"^1.0.2\",\r\n \"tstl\": \"^3.0.0\",\r\n \"typia\": \"^6.4.0\",\r\n \"uuid\": \"^9.0.0\"\r\n },\r\n \"stackblitz\": {\r\n \"startCommand\": \"npm run prepare && npm run build:test && npm run test\"\r\n }\r\n}"
|
59
59
|
},
|
60
60
|
{
|
61
61
|
"location": "packages/api",
|
@@ -70,7 +70,7 @@ exports.NEST_TEMPLATE = [
|
|
70
70
|
{
|
71
71
|
"location": "packages/api",
|
72
72
|
"file": "package.json",
|
73
|
-
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"SDK library generated by Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"scripts\": {\r\n \"build\": \"npm run build:sdk && npm run compile\",\r\n \"build:sdk\": \"rimraf ../../src/api/functional && cd ../.. && npx nestia sdk && cd packages/api\",\r\n \"compile\": \"rimraf lib && tsc\",\r\n \"deploy\": \"npm run build && npm publish\",\r\n \"prepare\": \"ts-patch install && typia patch\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia\"\r\n },\r\n \"author\": \"Jeongho Nam\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia/issues\"\r\n },\r\n \"homepage\": \"https://nestia.io\",\r\n \"files\": [\r\n \"lib\",\r\n \"swagger.json\",\r\n \"package.json\",\r\n \"README.md\"\r\n ],\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^3.
|
73
|
+
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"SDK library generated by Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"scripts\": {\r\n \"build\": \"npm run build:sdk && npm run compile\",\r\n \"build:sdk\": \"rimraf ../../src/api/functional && cd ../.. && npx nestia sdk && cd packages/api\",\r\n \"compile\": \"rimraf lib && tsc\",\r\n \"deploy\": \"npm run build && npm publish\",\r\n \"prepare\": \"ts-patch install && typia patch\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia\"\r\n },\r\n \"author\": \"Jeongho Nam\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia/issues\"\r\n },\r\n \"homepage\": \"https://nestia.io\",\r\n \"files\": [\r\n \"lib\",\r\n \"swagger.json\",\r\n \"package.json\",\r\n \"README.md\"\r\n ],\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^3.4.1\",\r\n \"tgrid\": \"^1.0.2\",\r\n \"typia\": \"^6.4.0\"\r\n }\r\n}"
|
74
74
|
},
|
75
75
|
{
|
76
76
|
"location": "packages/api",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NEST_TEMPLATE.js","sourceRoot":"","sources":["../../src/bundles/NEST_TEMPLATE.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,MAAM;QACd,SAAS,EAAE,+CAA+C;KAC3D;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,eAAe;QACvB,SAAS,EAAE,m1BAAm1B;KAC/1B;IACD;QACE,UAAU,EAAE,mBAAmB;QAC/B,MAAM,EAAE,WAAW;QACnB,SAAS,EAAE,k+BAAk+B;KAC9+B;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,iHAAiH;KAC7H;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,iBAAiB;QACzB,SAAS,EAAE,iIAAiI;KAC7I;IACD;QACE,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,aAAa;QACrB,SAAS,EAAE,irCAAirC;KAC7rC;IACD;QACE,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,eAAe;QACvB,SAAS,EAAE,qRAAqR;KACjS;IACD;QACE,UAAU,EAAE,iBAAiB;QAC7B,MAAM,EAAE,8CAA8C;QACtD,SAAS,EAAE,mqCAAmqC;KAC/qC;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,inCAAinC;KAC7nC;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,kBAAkB;QAC1B,SAAS,EAAE,woBAAwoB;KACppB;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,
|
1
|
+
{"version":3,"file":"NEST_TEMPLATE.js","sourceRoot":"","sources":["../../src/bundles/NEST_TEMPLATE.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,MAAM;QACd,SAAS,EAAE,+CAA+C;KAC3D;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,eAAe;QACvB,SAAS,EAAE,m1BAAm1B;KAC/1B;IACD;QACE,UAAU,EAAE,mBAAmB;QAC/B,MAAM,EAAE,WAAW;QACnB,SAAS,EAAE,k+BAAk+B;KAC9+B;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,iHAAiH;KAC7H;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,iBAAiB;QACzB,SAAS,EAAE,iIAAiI;KAC7I;IACD;QACE,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,aAAa;QACrB,SAAS,EAAE,irCAAirC;KAC7rC;IACD;QACE,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,eAAe;QACvB,SAAS,EAAE,qRAAqR;KACjS;IACD;QACE,UAAU,EAAE,iBAAiB;QAC7B,MAAM,EAAE,8CAA8C;QACtD,SAAS,EAAE,mqCAAmqC;KAC/qC;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,inCAAinC;KAC7nC;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,kBAAkB;QAC1B,SAAS,EAAE,woBAAwoB;KACppB;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,w5HAAw5H;KACp6H;IACD;QACE,UAAU,EAAE,cAAc;QAC1B,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,2CAA2C;KACvD;IACD;QACE,UAAU,EAAE,cAAc;QAC1B,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,8mCAA8mC;KAC1nC;IACD;QACE,UAAU,EAAE,cAAc;QAC1B,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,ilCAAilC;KAC7lC;IACD;QACE,UAAU,EAAE,cAAc;QAC1B,MAAM,EAAE,WAAW;QACnB,SAAS,EAAE,mmEAAmmE;KAC/mE;IACD;QACE,UAAU,EAAE,cAAc;QAC1B,MAAM,EAAE,eAAe;QACvB,SAAS,EAAE,qyWAAqyW;KACjzW;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,oBAAoB;QAC5B,SAAS,EAAE,yhBAAyhB;KACriB;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,WAAW;QACnB,SAAS,EAAE,gwNAAgwN;KAC5wN;IACD;QACE,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,oDAAoD;KAChE;IACD;QACE,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,gBAAgB;QACxB,SAAS,EAAE,2DAA2D;KACvE;IACD;QACE,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE,kGAAkG;KAC9G;IACD;QACE,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,WAAW;QACnB,SAAS,EAAE,kIAAkI;KAC9I;IACD;QACE,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,yDAAyD;KACrE;IACD;QACE,UAAU,EAAE,wBAAwB;QACpC,MAAM,EAAE,gBAAgB;QACxB,SAAS,EAAE,gyFAAgyF;KAC5yF;IACD;QACE,UAAU,EAAE,2BAA2B;QACvC,MAAM,EAAE,oBAAoB;QAC5B,SAAS,EAAE,4QAA4Q;KACxR;IACD;QACE,UAAU,EAAE,2BAA2B;QACvC,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE,+hDAA+hD;KAC3iD;IACD;QACE,UAAU,EAAE,gBAAgB;QAC5B,MAAM,EAAE,WAAW;QACnB,SAAS,EAAE,03DAA03D;KACt4D;IACD;QACE,UAAU,EAAE,gBAAgB;QAC5B,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,8+BAA8+B;KAC1/B;IACD;QACE,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,2nCAA2nC;KACvoC;IACD;QACE,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE,oBAAoB;QAC5B,SAAS,EAAE,ikBAAikB;KAC7kB;IACD;QACE,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE,aAAa;QACrB,SAAS,EAAE,mpBAAmpB;KAC/pB;IACD;QACE,UAAU,EAAE,WAAW;QACvB,MAAM,EAAE,cAAc;QACtB,SAAS,EAAE,4mDAA4mD;KACxnD;IACD;QACE,UAAU,EAAE,WAAW;QACvB,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,kVAAkV;KAC9V;IACD;QACE,UAAU,EAAE,gBAAgB;QAC5B,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE,28HAA28H;KACv9H;IACD;QACE,UAAU,EAAE,gBAAgB;QAC5B,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,icAAic;KAC7c;IACD;QACE,UAAU,EAAE,cAAc;QAC1B,MAAM,EAAE,mBAAmB;QAC3B,SAAS,EAAE,smFAAsmF;KAClnF;IACD;QACE,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE,k5FAAk5F;KAC95F;IACD;QACE,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,eAAe;QACvB,SAAS,EAAE,yJAAyJ;KACrK;IACD;QACE,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,80CAA80C;KAC11C;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,eAAe;QACvB,SAAS,EAAE,y8XAAy8X;KACr9X;IACD;QACE,UAAU,EAAE,EAAE;QACd,MAAM,EAAE,mBAAmB;QAC3B,SAAS,EAAE,g1DAAg1D;KAC51D;CACF,CAAA"}
|
@@ -30,7 +30,7 @@ exports.SDK_TEMPLATE = [
|
|
30
30
|
{
|
31
31
|
"location": "",
|
32
32
|
"file": "package.json",
|
33
|
-
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"SDK library generated by Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"exports\": {\r\n \".\": {\r\n \"types\": \"./lib/index.d.ts\",\r\n \"require\": \"./lib/index.js\",\r\n \"import\": \"./lib/index.mjs\"\r\n }\r\n },\r\n \"scripts\": {\r\n \"build\": \"rimraf lib && tsc && rollup -c\",\r\n \"build:test\": \"rimraf bin && tsc --project test/tsconfig.json\",\r\n \"deploy\": \"npm run build && npm publish\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"hello\": \"node hello\",\r\n \"prepare\": \"ts-patch install && typia patch\",\r\n \"start\": \"ts-node test/start.ts\",\r\n \"swagger\": \"ts-node test/swagger.ts\",\r\n \"test\": \"ts-node test/index.ts\",\r\n \"test:simulate\": \"ts-node test/index.ts --simulate true\",\r\n \"test:manual\": \"ts-node test/manual.ts\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia\"\r\n },\r\n \"author\": \"Jeongho Nam\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia/issues\"\r\n },\r\n \"homepage\": \"https://nestia.io\",\r\n \"files\": [\r\n \"lib\",\r\n \"swagger.json\",\r\n \"package.json\",\r\n \"README.md\"\r\n ],\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^3.
|
33
|
+
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"SDK library generated by Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"exports\": {\r\n \".\": {\r\n \"types\": \"./lib/index.d.ts\",\r\n \"require\": \"./lib/index.js\",\r\n \"import\": \"./lib/index.mjs\"\r\n }\r\n },\r\n \"scripts\": {\r\n \"build\": \"rimraf lib && tsc && rollup -c\",\r\n \"build:test\": \"rimraf bin && tsc --project test/tsconfig.json\",\r\n \"deploy\": \"npm run build && npm publish\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"hello\": \"node hello\",\r\n \"prepare\": \"ts-patch install && typia patch\",\r\n \"start\": \"ts-node test/start.ts\",\r\n \"swagger\": \"ts-node test/swagger.ts\",\r\n \"test\": \"ts-node test/index.ts\",\r\n \"test:simulate\": \"ts-node test/index.ts --simulate true\",\r\n \"test:manual\": \"ts-node test/manual.ts\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia\"\r\n },\r\n \"author\": \"Jeongho Nam\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia/issues\"\r\n },\r\n \"homepage\": \"https://nestia.io\",\r\n \"files\": [\r\n \"lib\",\r\n \"swagger.json\",\r\n \"package.json\",\r\n \"README.md\"\r\n ],\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^3.4.1\",\r\n \"tgrid\": \"^1.0.2\",\r\n \"typia\": \"^6.4.0\"\r\n },\r\n \"devDependencies\": {\r\n \"@nestia/e2e\": \"^0.6.0\",\r\n \"@rollup/plugin-terser\": \"^0.4.4\",\r\n \"@rollup/plugin-typescript\": \"^11.1.6\",\r\n \"@trivago/prettier-plugin-sort-imports\": \"^4.3.0\",\r\n \"@types/express\": \"^4.17.21\",\r\n \"@types/inquirer\": \"8.2.5\",\r\n \"@types/swagger-ui-express\": \"^4.1.6\",\r\n \"commander\": \"^10.0.0\",\r\n \"express\": \"^4.19.2\",\r\n \"inquirer\": \"8.2.5\",\r\n \"prettier\": \"^3.2.5\",\r\n \"rimraf\": \"^5.0.5\",\r\n \"rollup\": \"^4.13.2\",\r\n \"swagger-ui-express\": \"^5.0.0\",\r\n \"ts-node\": \"^10.9.2\",\r\n \"ts-patch\": \"^3.2.1\",\r\n \"typescript\": \"^5.5.3\",\r\n \"typescript-transform-paths\": \"^3.4.6\"\r\n }\r\n}"
|
34
34
|
},
|
35
35
|
{
|
36
36
|
"location": "",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nestia/migrate",
|
3
|
-
"version": "0.14.
|
3
|
+
"version": "0.14.1",
|
4
4
|
"description": "Migration program from swagger to NestJS",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"typings": "lib/index.d.ts",
|
@@ -36,9 +36,9 @@
|
|
36
36
|
},
|
37
37
|
"homepage": "https://nestia.io",
|
38
38
|
"devDependencies": {
|
39
|
-
"@nestia/core": "^3.
|
39
|
+
"@nestia/core": "^3.4.1",
|
40
40
|
"@nestia/e2e": "^0.6.0",
|
41
|
-
"@nestia/fetcher": "^3.
|
41
|
+
"@nestia/fetcher": "^3.4.1",
|
42
42
|
"@nestjs/common": "^10.3.8",
|
43
43
|
"@nestjs/core": "^10.3.8",
|
44
44
|
"@nestjs/platform-express": "^10.3.8",
|
@@ -63,13 +63,13 @@
|
|
63
63
|
"typescript-transform-paths": "^3.4.6"
|
64
64
|
},
|
65
65
|
"dependencies": {
|
66
|
-
"@samchon/openapi": "^0.
|
66
|
+
"@samchon/openapi": "^0.3.0",
|
67
67
|
"commander": "10.0.0",
|
68
68
|
"inquirer": "8.2.5",
|
69
69
|
"prettier": "^3.2.5",
|
70
70
|
"tstl": "^3.0.0",
|
71
|
-
"typescript": "^5.5.
|
72
|
-
"typia": "^6.
|
71
|
+
"typescript": "^5.5.3",
|
72
|
+
"typia": "^6.4.0"
|
73
73
|
},
|
74
74
|
"files": [
|
75
75
|
"lib",
|
@@ -52,7 +52,7 @@ export const NEST_TEMPLATE = [
|
|
52
52
|
{
|
53
53
|
"location": "",
|
54
54
|
"file": "package.json",
|
55
|
-
"content": "{\r\n \"private\": true,\r\n \"name\": \"@ORGANIZATION/PROJECT\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"Starter kit of Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"scripts\": {\r\n \"benchmark\": \"node bin/test/benchmark\",\r\n \"test\": \"node bin/test\",\r\n \"test:webpack\": \"npm run webpack && node bin/test/webpack.js\",\r\n \"------------------------BUILDS------------------------\": \"\",\r\n \"build\": \"npm run build:sdk && npm run build:main && npm run build:test\",\r\n \"build:api\": \"rimraf packages/api/lib && npm run build:sdk && tsc -p packages/api/tsconfig.json\",\r\n \"build:main\": \"rimraf lib && tsc\",\r\n \"build:sdk\": \"rimraf src/api/functional && nestia sdk\",\r\n \"build:swagger\": \"npx nestia swagger\",\r\n \"build:test\": \"rimraf bin && tsc -p test/tsconfig.json\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"eslint\": \"eslint src && eslint test\",\r\n \"eslint:fix\": \"eslint --fix src && eslint --fix test\",\r\n \"prepare\": \"ts-patch install && typia patch\",\r\n \"prettier\": \"prettier src --write && prettier test --write\",\r\n \"------------------------WEBPACK------------------------\": \"\",\r\n \"webpack\": \"rimraf dist && webpack\",\r\n \"webpack:start\": \"cd dist && node dist/server\",\r\n \"------------------------DEPLOYS------------------------\": \"\",\r\n \"package:api\": \"npm run build:swagger && npm run build:api && cd packages/api && npm publish\",\r\n \"start\": \"node lib/executable/server\",\r\n \"start:swagger\": \"ts-node src/executable/swagger.ts\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-start\"\r\n },\r\n \"keywords\": [\r\n \"nestia\",\r\n \"template\",\r\n \"boilerplate\"\r\n ],\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-start/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-start#readme\",\r\n \"devDependencies\": {\r\n \"@nestia/e2e\": \"^0.6.0\",\r\n \"@nestia/sdk\": \"^3.
|
55
|
+
"content": "{\r\n \"private\": true,\r\n \"name\": \"@ORGANIZATION/PROJECT\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"Starter kit of Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"scripts\": {\r\n \"benchmark\": \"node bin/test/benchmark\",\r\n \"test\": \"node bin/test\",\r\n \"test:webpack\": \"npm run webpack && node bin/test/webpack.js\",\r\n \"------------------------BUILDS------------------------\": \"\",\r\n \"build\": \"npm run build:sdk && npm run build:main && npm run build:test\",\r\n \"build:api\": \"rimraf packages/api/lib && npm run build:sdk && tsc -p packages/api/tsconfig.json\",\r\n \"build:main\": \"rimraf lib && tsc\",\r\n \"build:sdk\": \"rimraf src/api/functional && nestia sdk\",\r\n \"build:swagger\": \"npx nestia swagger\",\r\n \"build:test\": \"rimraf bin && tsc -p test/tsconfig.json\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"eslint\": \"eslint src && eslint test\",\r\n \"eslint:fix\": \"eslint --fix src && eslint --fix test\",\r\n \"prepare\": \"ts-patch install && typia patch\",\r\n \"prettier\": \"prettier src --write && prettier test --write\",\r\n \"------------------------WEBPACK------------------------\": \"\",\r\n \"webpack\": \"rimraf dist && webpack\",\r\n \"webpack:start\": \"cd dist && node dist/server\",\r\n \"------------------------DEPLOYS------------------------\": \"\",\r\n \"package:api\": \"npm run build:swagger && npm run build:api && cd packages/api && npm publish\",\r\n \"start\": \"node lib/executable/server\",\r\n \"start:swagger\": \"ts-node src/executable/swagger.ts\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-start\"\r\n },\r\n \"keywords\": [\r\n \"nestia\",\r\n \"template\",\r\n \"boilerplate\"\r\n ],\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-start/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-start#readme\",\r\n \"devDependencies\": {\r\n \"@nestia/e2e\": \"^0.6.0\",\r\n \"@nestia/sdk\": \"^3.4.1\",\r\n \"@trivago/prettier-plugin-sort-imports\": \"^4.3.0\",\r\n \"@types/cli\": \"^0.11.21\",\r\n \"@types/cli-progress\": \"^3.11.5\",\r\n \"@types/express\": \"^4.17.21\",\r\n \"@types/inquirer\": \"^8.2.5\",\r\n \"@types/node\": \"^18.11.0\",\r\n \"@types/uuid\": \"^8.3.4\",\r\n \"@typescript-eslint/eslint-plugin\": \"^6.19.1\",\r\n \"@typescript-eslint/parser\": \"^6.19.1\",\r\n \"chalk\": \"^4.1.0\",\r\n \"cli\": \"^1.0.1\",\r\n \"cli-progress\": \"^3.12.0\",\r\n \"copy-webpack-plugin\": \"^11.0.0\",\r\n \"eslint-plugin-deprecation\": \"^2.0.0\",\r\n \"express\": \"^4.18.2\",\r\n \"nestia\": \"^5.3.1\",\r\n \"prettier\": \"^3.2.4\",\r\n \"prettier-plugin-prisma\": \"^5.0.0\",\r\n \"rimraf\": \"^3.0.2\",\r\n \"source-map-support\": \"^0.5.21\",\r\n \"swagger-ui-express\": \"^5.0.0\",\r\n \"ts-loader\": \"^9.5.1\",\r\n \"ts-node\": \"^10.9.1\",\r\n \"ts-patch\": \"^3.2.1\",\r\n \"typescript\": \"^5.5.3\",\r\n \"typescript-transform-paths\": \"^3.4.6\",\r\n \"webpack\": \"^5.89.0\",\r\n \"webpack-cli\": \"^5.1.4\",\r\n \"write-file-webpack-plugin\": \"^4.5.1\"\r\n },\r\n \"dependencies\": {\r\n \"@nestia/core\": \"^3.4.1\",\r\n \"@nestia/fetcher\": \"^3.4.1\",\r\n \"@nestjs/common\": \"^10.3.10\",\r\n \"@nestjs/core\": \"^10.3.10\",\r\n \"@nestjs/platform-express\": \"^10.3.10\",\r\n \"commander\": \"10.0.0\",\r\n \"dotenv\": \"^16.3.1\",\r\n \"dotenv-expand\": \"^10.0.0\",\r\n \"inquirer\": \"8.2.5\",\r\n \"serialize-error\": \"^4.1.0\",\r\n \"tgrid\": \"^1.0.2\",\r\n \"tstl\": \"^3.0.0\",\r\n \"typia\": \"^6.4.0\",\r\n \"uuid\": \"^9.0.0\"\r\n },\r\n \"stackblitz\": {\r\n \"startCommand\": \"npm run prepare && npm run build:test && npm run test\"\r\n }\r\n}"
|
56
56
|
},
|
57
57
|
{
|
58
58
|
"location": "packages/api",
|
@@ -67,7 +67,7 @@ export const NEST_TEMPLATE = [
|
|
67
67
|
{
|
68
68
|
"location": "packages/api",
|
69
69
|
"file": "package.json",
|
70
|
-
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"SDK library generated by Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"scripts\": {\r\n \"build\": \"npm run build:sdk && npm run compile\",\r\n \"build:sdk\": \"rimraf ../../src/api/functional && cd ../.. && npx nestia sdk && cd packages/api\",\r\n \"compile\": \"rimraf lib && tsc\",\r\n \"deploy\": \"npm run build && npm publish\",\r\n \"prepare\": \"ts-patch install && typia patch\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia\"\r\n },\r\n \"author\": \"Jeongho Nam\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia/issues\"\r\n },\r\n \"homepage\": \"https://nestia.io\",\r\n \"files\": [\r\n \"lib\",\r\n \"swagger.json\",\r\n \"package.json\",\r\n \"README.md\"\r\n ],\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^3.
|
70
|
+
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"SDK library generated by Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"scripts\": {\r\n \"build\": \"npm run build:sdk && npm run compile\",\r\n \"build:sdk\": \"rimraf ../../src/api/functional && cd ../.. && npx nestia sdk && cd packages/api\",\r\n \"compile\": \"rimraf lib && tsc\",\r\n \"deploy\": \"npm run build && npm publish\",\r\n \"prepare\": \"ts-patch install && typia patch\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia\"\r\n },\r\n \"author\": \"Jeongho Nam\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia/issues\"\r\n },\r\n \"homepage\": \"https://nestia.io\",\r\n \"files\": [\r\n \"lib\",\r\n \"swagger.json\",\r\n \"package.json\",\r\n \"README.md\"\r\n ],\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^3.4.1\",\r\n \"tgrid\": \"^1.0.2\",\r\n \"typia\": \"^6.4.0\"\r\n }\r\n}"
|
71
71
|
},
|
72
72
|
{
|
73
73
|
"location": "packages/api",
|
@@ -27,7 +27,7 @@ export const SDK_TEMPLATE = [
|
|
27
27
|
{
|
28
28
|
"location": "",
|
29
29
|
"file": "package.json",
|
30
|
-
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"SDK library generated by Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"exports\": {\r\n \".\": {\r\n \"types\": \"./lib/index.d.ts\",\r\n \"require\": \"./lib/index.js\",\r\n \"import\": \"./lib/index.mjs\"\r\n }\r\n },\r\n \"scripts\": {\r\n \"build\": \"rimraf lib && tsc && rollup -c\",\r\n \"build:test\": \"rimraf bin && tsc --project test/tsconfig.json\",\r\n \"deploy\": \"npm run build && npm publish\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"hello\": \"node hello\",\r\n \"prepare\": \"ts-patch install && typia patch\",\r\n \"start\": \"ts-node test/start.ts\",\r\n \"swagger\": \"ts-node test/swagger.ts\",\r\n \"test\": \"ts-node test/index.ts\",\r\n \"test:simulate\": \"ts-node test/index.ts --simulate true\",\r\n \"test:manual\": \"ts-node test/manual.ts\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia\"\r\n },\r\n \"author\": \"Jeongho Nam\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia/issues\"\r\n },\r\n \"homepage\": \"https://nestia.io\",\r\n \"files\": [\r\n \"lib\",\r\n \"swagger.json\",\r\n \"package.json\",\r\n \"README.md\"\r\n ],\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^3.
|
30
|
+
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"SDK library generated by Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"exports\": {\r\n \".\": {\r\n \"types\": \"./lib/index.d.ts\",\r\n \"require\": \"./lib/index.js\",\r\n \"import\": \"./lib/index.mjs\"\r\n }\r\n },\r\n \"scripts\": {\r\n \"build\": \"rimraf lib && tsc && rollup -c\",\r\n \"build:test\": \"rimraf bin && tsc --project test/tsconfig.json\",\r\n \"deploy\": \"npm run build && npm publish\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"hello\": \"node hello\",\r\n \"prepare\": \"ts-patch install && typia patch\",\r\n \"start\": \"ts-node test/start.ts\",\r\n \"swagger\": \"ts-node test/swagger.ts\",\r\n \"test\": \"ts-node test/index.ts\",\r\n \"test:simulate\": \"ts-node test/index.ts --simulate true\",\r\n \"test:manual\": \"ts-node test/manual.ts\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia\"\r\n },\r\n \"author\": \"Jeongho Nam\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia/issues\"\r\n },\r\n \"homepage\": \"https://nestia.io\",\r\n \"files\": [\r\n \"lib\",\r\n \"swagger.json\",\r\n \"package.json\",\r\n \"README.md\"\r\n ],\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^3.4.1\",\r\n \"tgrid\": \"^1.0.2\",\r\n \"typia\": \"^6.4.0\"\r\n },\r\n \"devDependencies\": {\r\n \"@nestia/e2e\": \"^0.6.0\",\r\n \"@rollup/plugin-terser\": \"^0.4.4\",\r\n \"@rollup/plugin-typescript\": \"^11.1.6\",\r\n \"@trivago/prettier-plugin-sort-imports\": \"^4.3.0\",\r\n \"@types/express\": \"^4.17.21\",\r\n \"@types/inquirer\": \"8.2.5\",\r\n \"@types/swagger-ui-express\": \"^4.1.6\",\r\n \"commander\": \"^10.0.0\",\r\n \"express\": \"^4.19.2\",\r\n \"inquirer\": \"8.2.5\",\r\n \"prettier\": \"^3.2.5\",\r\n \"rimraf\": \"^5.0.5\",\r\n \"rollup\": \"^4.13.2\",\r\n \"swagger-ui-express\": \"^5.0.0\",\r\n \"ts-node\": \"^10.9.2\",\r\n \"ts-patch\": \"^3.2.1\",\r\n \"typescript\": \"^5.5.3\",\r\n \"typescript-transform-paths\": \"^3.4.6\"\r\n }\r\n}"
|
31
31
|
},
|
32
32
|
{
|
33
33
|
"location": "",
|