@nestia/migrate 4.4.1 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/MigrateApplication.js +275 -259
- package/lib/MigrateApplication.js.map +1 -1
- package/lib/analyzers/{MigrateAnalyzer.d.ts → MigrateApplicationAnalyzer.d.ts} +1 -1
- package/lib/analyzers/MigrateApplicationAnalyzer.js +12 -0
- package/lib/analyzers/MigrateApplicationAnalyzer.js.map +1 -0
- package/lib/analyzers/MigrateControllerAnalyzer.d.ts +3 -1
- package/lib/analyzers/MigrateControllerAnalyzer.js +34 -24
- package/lib/analyzers/MigrateControllerAnalyzer.js.map +1 -1
- package/lib/bundles/NEST_TEMPLATE.js +2 -2
- package/lib/bundles/SDK_TEMPLATE.js +1 -1
- package/lib/index.mjs +318 -287
- package/lib/index.mjs.map +1 -1
- package/lib/module.d.ts +1 -1
- package/lib/module.js +1 -1
- package/lib/module.js.map +1 -1
- package/lib/programmers/MigrateNestProgrammer.js +3 -1
- package/lib/programmers/MigrateNestProgrammer.js.map +1 -1
- package/package.json +4 -4
- package/src/MigrateApplication.ts +3 -3
- package/src/analyzers/{MigrateAnalyzer.ts → MigrateApplicationAnalyzer.ts} +1 -1
- package/src/analyzers/MigrateControllerAnalyzer.ts +41 -30
- package/src/bundles/NEST_TEMPLATE.ts +2 -2
- package/src/bundles/SDK_TEMPLATE.ts +1 -1
- package/src/module.ts +1 -1
- package/src/programmers/MigrateNestProgrammer.ts +3 -1
- package/lib/analyzers/MigrateAnalyzer.js +0 -12
- package/lib/analyzers/MigrateAnalyzer.js.map +0 -1
package/lib/index.mjs
CHANGED
@@ -24,10 +24,10 @@ import { LiteralFactory } from "typia/lib/factories/LiteralFactory";
|
|
24
24
|
|
25
25
|
import { StatementFactory } from "typia/lib/factories/StatementFactory";
|
26
26
|
|
27
|
-
var
|
27
|
+
var MigrateApplicationAnalyzer;
|
28
28
|
|
29
|
-
(function(
|
30
|
-
|
29
|
+
(function(MigrateApplicationAnalyzer) {
|
30
|
+
MigrateApplicationAnalyzer.analyze = props => {
|
31
31
|
const application = HttpMigration.application(props.document);
|
32
32
|
return {
|
33
33
|
...props,
|
@@ -35,7 +35,7 @@ var MigrateAnalyzer;
|
|
35
35
|
errors: application.errors
|
36
36
|
};
|
37
37
|
};
|
38
|
-
})(
|
38
|
+
})(MigrateApplicationAnalyzer || (MigrateApplicationAnalyzer = {}));
|
39
39
|
|
40
40
|
const NEST_TEMPLATE = [ {
|
41
41
|
location: "",
|
@@ -84,7 +84,7 @@ const NEST_TEMPLATE = [ {
|
|
84
84
|
}, {
|
85
85
|
location: "",
|
86
86
|
file: "package.json",
|
87
|
-
content: '{\n "private": true,\n "name": "@ORGANIZATION/PROJECT",\n "version": "0.1.0",\n "description": "Starter kit of Nestia",\n "main": "lib/index.js",\n "scripts": {\n "benchmark": "node bin/test/benchmark",\n "test": "node bin/test",\n "test:webpack": "npm run webpack && node bin/test/webpack.js",\n "------------------------BUILDS------------------------": "",\n "build": "npm run build:sdk && npm run build:main && npm run build:test",\n "build:api": "rimraf packages/api/lib && nestia all && rimraf packages/api/lib && tsc -p packages/api/tsconfig.json && rollup -c packages/api/rollup.config.js",\n "build:main": "rimraf lib && tsc",\n "build:sdk": "rimraf src/api/functional && nestia sdk",\n "build:swagger": "npx nestia swagger",\n "build:test": "rimraf bin && tsc -p test/tsconfig.json",\n "dev": "npm run build:test -- --watch",\n "eslint": "eslint src && eslint test",\n "eslint:fix": "eslint --fix src && eslint --fix test",\n "prepare": "ts-patch install && typia patch",\n "prettier": "prettier src --write && prettier test --write",\n "------------------------WEBPACK------------------------": "",\n "webpack": "rimraf dist && webpack",\n "webpack:start": "cd dist && node dist/server",\n "webpack:test": "npm run webpack && node bin/test/webpack.js",\n "------------------------DEPLOYS------------------------": "",\n "package:api": "npm run build:api && cd packages/api && npm publish",\n "start": "node lib/executable/server",\n "start:swagger": "ts-node src/executable/swagger.ts"\n },\n "repository": {\n "type": "git",\n "url": "https://github.com/samchon/nestia-start"\n },\n "keywords": [\n "nestia",\n "template",\n "boilerplate"\n ],\n "author": "AUTHOR",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/samchon/nestia-start/issues"\n },\n "homepage": "https://github.com/samchon/nestia-start#readme",\n "devDependencies": {\n "@nestia/benchmark": "^0.3.0",\n "@nestia/e2e": "^0.7.0",\n "@nestia/sdk": "^4.
|
87
|
+
content: '{\n "private": true,\n "name": "@ORGANIZATION/PROJECT",\n "version": "0.1.0",\n "description": "Starter kit of Nestia",\n "main": "lib/index.js",\n "scripts": {\n "benchmark": "node bin/test/benchmark",\n "test": "node bin/test",\n "test:webpack": "npm run webpack && node bin/test/webpack.js",\n "------------------------BUILDS------------------------": "",\n "build": "npm run build:sdk && npm run build:main && npm run build:test",\n "build:api": "rimraf packages/api/lib && nestia all && rimraf packages/api/lib && tsc -p packages/api/tsconfig.json && rollup -c packages/api/rollup.config.js",\n "build:main": "rimraf lib && tsc",\n "build:sdk": "rimraf src/api/functional && nestia sdk",\n "build:swagger": "npx nestia swagger",\n "build:test": "rimraf bin && tsc -p test/tsconfig.json",\n "dev": "npm run build:test -- --watch",\n "eslint": "eslint src && eslint test",\n "eslint:fix": "eslint --fix src && eslint --fix test",\n "prepare": "ts-patch install && typia patch",\n "prettier": "prettier src --write && prettier test --write",\n "------------------------WEBPACK------------------------": "",\n "webpack": "rimraf dist && webpack",\n "webpack:start": "cd dist && node dist/server",\n "webpack:test": "npm run webpack && node bin/test/webpack.js",\n "------------------------DEPLOYS------------------------": "",\n "package:api": "npm run build:api && cd packages/api && npm publish",\n "start": "node lib/executable/server",\n "start:swagger": "ts-node src/executable/swagger.ts"\n },\n "repository": {\n "type": "git",\n "url": "https://github.com/samchon/nestia-start"\n },\n "keywords": [\n "nestia",\n "template",\n "boilerplate"\n ],\n "author": "AUTHOR",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/samchon/nestia-start/issues"\n },\n "homepage": "https://github.com/samchon/nestia-start#readme",\n "devDependencies": {\n "@nestia/benchmark": "^0.3.0",\n "@nestia/e2e": "^0.7.0",\n "@nestia/sdk": "^4.5.0",\n "@rollup/plugin-terser": "^0.4.4",\n "@rollup/plugin-typescript": "^11.1.6",\n "@trivago/prettier-plugin-sort-imports": "^4.3.0",\n "@types/cli": "^0.11.21",\n "@types/cli-progress": "^3.11.5",\n "@types/express": "^4.17.21",\n "@types/inquirer": "^8.2.5",\n "@types/node": "^18.11.0",\n "@types/uuid": "^8.3.4",\n "@typescript-eslint/eslint-plugin": "^8.1.0",\n "@typescript-eslint/parser": "^8.1.0",\n "chalk": "^4.1.2",\n "cli": "^1.0.1",\n "cli-progress": "^3.12.0",\n "copy-webpack-plugin": "^11.0.0",\n "eslint-plugin-deprecation": "^3.0.0",\n "express": "^4.18.2",\n "nestia": "^6.3.1",\n "prettier": "^3.2.4",\n "prettier-plugin-prisma": "^5.0.0",\n "rimraf": "^3.0.2",\n "rollup": "^4.18.0",\n "source-map-support": "^0.5.21",\n "swagger-ui-express": "^5.0.0",\n "ts-loader": "^9.5.1",\n "ts-node": "^10.9.1",\n "ts-patch": "^3.3.0",\n "typescript": "~5.7.2",\n "typescript-transform-paths": "^3.5.2",\n "webpack": "^5.89.0",\n "webpack-cli": "^5.1.4",\n "write-file-webpack-plugin": "^4.5.1"\n },\n "dependencies": {\n "@nestia/core": "^4.5.0",\n "@nestia/fetcher": "^4.5.0",\n "@nestjs/common": "^10.4.15",\n "@nestjs/core": "^10.4.15",\n "@nestjs/platform-express": "^10.4.15",\n "commander": "10.0.0",\n "dotenv": "^16.3.1",\n "dotenv-expand": "^10.0.0",\n "inquirer": "8.2.5",\n "serialize-error": "^4.1.0",\n "tgrid": "^1.0.2",\n "tstl": "^3.0.0",\n "typia": "^7.5.0",\n "uuid": "^9.0.0"\n },\n "stackblitz": {\n "startCommand": "npm run prepare && npm run build:test && npm run test"\n }\n}'
|
88
88
|
}, {
|
89
89
|
location: "packages/api",
|
90
90
|
file: ".gitignore",
|
@@ -100,7 +100,7 @@ const NEST_TEMPLATE = [ {
|
|
100
100
|
}, {
|
101
101
|
location: "packages/api",
|
102
102
|
file: "package.json",
|
103
|
-
content: '{\n "name": "@ORGANIZATION/PROJECT-api",\n "version": "0.1.0",\n "description": "SDK library generated by Nestia",\n "main": "lib/index.js",\n "module": "lib/index.mjs",\n "typings": "lib/index.d.ts",\n "repository": {\n "type": "git",\n "url": "https://github.com/samchon/nestia"\n },\n "author": "Jeongho Nam",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/samchon/nestia/issues"\n },\n "homepage": "https://nestia.io",\n "files": [\n "lib",\n "package.json",\n "swagger.json",\n "openai.json",\n "README.md"\n ],\n "dependencies": {\n "@nestia/fetcher": "^4.
|
103
|
+
content: '{\n "name": "@ORGANIZATION/PROJECT-api",\n "version": "0.1.0",\n "description": "SDK library generated by Nestia",\n "main": "lib/index.js",\n "module": "lib/index.mjs",\n "typings": "lib/index.d.ts",\n "repository": {\n "type": "git",\n "url": "https://github.com/samchon/nestia"\n },\n "author": "Jeongho Nam",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/samchon/nestia/issues"\n },\n "homepage": "https://nestia.io",\n "files": [\n "lib",\n "package.json",\n "swagger.json",\n "openai.json",\n "README.md"\n ],\n "dependencies": {\n "@nestia/fetcher": "^4.5.0",\n "tgrid": "^1.1.0",\n "typia": "^7.5.0"\n }\n}'
|
104
104
|
}, {
|
105
105
|
location: "packages/api",
|
106
106
|
file: "rollup.config.js",
|
@@ -238,7 +238,7 @@ const SDK_TEMPLATE = [ {
|
|
238
238
|
}, {
|
239
239
|
location: "",
|
240
240
|
file: "package.json",
|
241
|
-
content: '{\n "name": "@ORGANIZATION/PROJECT-api",\n "version": "0.1.0",\n "description": "SDK library generated by Nestia",\n "main": "lib/index.js",\n "module": "lib/index.mjs",\n "typings": "lib/index.d.ts",\n "scripts": {\n "build": "rimraf lib && tsc && rollup -c",\n "build:test": "rimraf bin && tsc --project test/tsconfig.json",\n "deploy": "npm run build && npm publish",\n "dev": "npm run build:test -- --watch",\n "hello": "node hello",\n "prepare": "ts-patch install && typia patch",\n "start": "ts-node test/start.ts",\n "swagger": "ts-node test/swagger.ts",\n "test": "ts-node test/index.ts",\n "test:simulate": "ts-node test/index.ts --simulate true",\n "test:manual": "ts-node test/manual.ts"\n },\n "repository": {\n "type": "git",\n "url": "https://github.com/samchon/nestia"\n },\n "author": "Jeongho Nam",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/samchon/nestia/issues"\n },\n "homepage": "https://nestia.io",\n "files": [\n "lib",\n "swagger.json",\n "package.json",\n "README.md"\n ],\n "dependencies": {\n "@nestia/fetcher": "^4.
|
241
|
+
content: '{\n "name": "@ORGANIZATION/PROJECT-api",\n "version": "0.1.0",\n "description": "SDK library generated by Nestia",\n "main": "lib/index.js",\n "module": "lib/index.mjs",\n "typings": "lib/index.d.ts",\n "scripts": {\n "build": "rimraf lib && tsc && rollup -c",\n "build:test": "rimraf bin && tsc --project test/tsconfig.json",\n "deploy": "npm run build && npm publish",\n "dev": "npm run build:test -- --watch",\n "hello": "node hello",\n "prepare": "ts-patch install && typia patch",\n "start": "ts-node test/start.ts",\n "swagger": "ts-node test/swagger.ts",\n "test": "ts-node test/index.ts",\n "test:simulate": "ts-node test/index.ts --simulate true",\n "test:manual": "ts-node test/manual.ts"\n },\n "repository": {\n "type": "git",\n "url": "https://github.com/samchon/nestia"\n },\n "author": "Jeongho Nam",\n "license": "MIT",\n "bugs": {\n "url": "https://github.com/samchon/nestia/issues"\n },\n "homepage": "https://nestia.io",\n "files": [\n "lib",\n "swagger.json",\n "package.json",\n "README.md"\n ],\n "dependencies": {\n "@nestia/fetcher": "^4.5.0",\n "tgrid": "^1.1.0",\n "typia": "^7.5.0"\n },\n "devDependencies": {\n "@nestia/e2e": "^0.7.0",\n "@rollup/plugin-terser": "^0.4.4",\n "@rollup/plugin-typescript": "^11.1.6",\n "@trivago/prettier-plugin-sort-imports": "^4.3.0",\n "@types/express": "^4.17.21",\n "@types/inquirer": "8.2.5",\n "@types/swagger-ui-express": "^4.1.6",\n "chalk": "4.1.2",\n "commander": "^10.0.0",\n "express": "^4.19.2",\n "inquirer": "8.2.5",\n "prettier": "^3.2.5",\n "rimraf": "^5.0.5",\n "rollup": "^4.13.2",\n "swagger-ui-express": "^5.0.0",\n "ts-node": "^10.9.2",\n "ts-patch": "^3.3.0",\n "typescript": "~5.7.2",\n "typescript-transform-paths": "^3.5.2"\n }\n}'
|
242
242
|
}, {
|
243
243
|
location: "",
|
244
244
|
file: "prettier.config.js",
|
@@ -843,27 +843,40 @@ var MigrateE2eProgrammer;
|
|
843
843
|
var MigrateControllerAnalyzer;
|
844
844
|
|
845
845
|
(function(MigrateControllerAnalyzer) {
|
846
|
-
MigrateControllerAnalyzer.analyze =
|
847
|
-
const
|
848
|
-
for (const
|
849
|
-
const
|
850
|
-
MapUtil.take(
|
851
|
-
}
|
852
|
-
const total = [ ...endpoints.entries() ].filter((([_l, routes]) => !!routes.length)).map((([path, routes]) => {
|
853
|
-
const name = routes[0].accessor.slice(0, -1).map(StringUtil.capitalize).join("") + "Controller";
|
854
|
-
const location = routes[0].accessor.slice(0, -2).join("/");
|
855
|
-
return {
|
846
|
+
MigrateControllerAnalyzer.analyze = props => {
|
847
|
+
const collection = new Map;
|
848
|
+
for (const route of props.routes) {
|
849
|
+
const name = route.operation()["x-samchon-controller"] ?? (route.accessor.length <= 1 ? "__App" : route.accessor.slice(0, -1).map(StringUtil.capitalize).join("")) + "Controller";
|
850
|
+
MapUtil.take(collection)(name)((() => ({
|
856
851
|
name,
|
857
|
-
path,
|
858
|
-
location: "
|
859
|
-
routes
|
860
|
-
};
|
861
|
-
}
|
862
|
-
|
863
|
-
|
852
|
+
path: "@lazy",
|
853
|
+
location: "@lazy",
|
854
|
+
routes: []
|
855
|
+
}))).routes.push(route);
|
856
|
+
}
|
857
|
+
const controllers = [ ...collection.values() ];
|
858
|
+
for (const col of controllers) {
|
859
|
+
const splitPath = r => r.emendedPath.split("/");
|
860
|
+
const splitLocation = r => splitPath(r).filter((s => s[0] !== ":"));
|
861
|
+
const minPath = splitPath(col.routes[0]);
|
862
|
+
const minLocation = splitLocation(col.routes[0]);
|
863
|
+
for (const r of col.routes.slice(1)) {
|
864
|
+
minPath.splice(getSplitIndex(minPath, splitPath(r)));
|
865
|
+
minLocation.splice(getSplitIndex(minLocation, splitLocation(r)));
|
866
|
+
}
|
867
|
+
col.path = minPath.join("/");
|
868
|
+
col.location = "src/controllers/" + minLocation.join("/");
|
869
|
+
}
|
870
|
+
return controllers;
|
864
871
|
};
|
865
872
|
})(MigrateControllerAnalyzer || (MigrateControllerAnalyzer = {}));
|
866
873
|
|
874
|
+
const getSplitIndex = (x, y) => {
|
875
|
+
const n = Math.min(x.length, y.length);
|
876
|
+
for (let i = 0; i < n; ++i) if (x[i] !== y[i]) return i;
|
877
|
+
return n;
|
878
|
+
};
|
879
|
+
|
867
880
|
var MigrateNestMethodProgrammer;
|
868
881
|
|
869
882
|
(function(MigrateNestMethodProgrammer) {
|
@@ -971,7 +984,9 @@ var MigrateNestProgrammer;
|
|
971
984
|
|
972
985
|
(function(MigrateNestProgrammer) {
|
973
986
|
MigrateNestProgrammer.write = program => {
|
974
|
-
const controllers = MigrateControllerAnalyzer.analyze(
|
987
|
+
const controllers = MigrateControllerAnalyzer.analyze({
|
988
|
+
routes: program.routes
|
989
|
+
});
|
975
990
|
return [ {
|
976
991
|
location: "src",
|
977
992
|
file: "MyModule.ts",
|
@@ -1076,7 +1091,7 @@ class MigrateApplication {
|
|
1076
1091
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io35(value);
|
1077
1092
|
}));
|
1078
1093
|
const _io35 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io1(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io36(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io36(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io36(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io36(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io36(input.patch)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io36(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io36(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io36(input.trace));
|
1079
|
-
const _io36 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _io37(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _io40(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io43(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) && _io46(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-samchon-human"] || "boolean" === typeof input["x-samchon-human"]);
|
1094
|
+
const _io36 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _io37(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _io40(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io43(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) && _io46(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-samchon-human"] || "boolean" === typeof input["x-samchon-human"]) && (undefined === input["x-samchon-accessor"] || Array.isArray(input["x-samchon-accessor"]) && input["x-samchon-accessor"].every((elem => "string" === typeof elem))) && (undefined === input["x-samchon-controller"] || "string" === typeof input["x-samchon-controller"]);
|
1080
1095
|
const _io37 = 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) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io38(input.examples));
|
1081
1096
|
const _io38 = input => Object.keys(input).every((key => {
|
1082
1097
|
const value = input[key];
|
@@ -1498,12 +1513,12 @@ class MigrateApplication {
|
|
1498
1513
|
path: _path + ".servers",
|
1499
1514
|
expected: "(Array<OpenApi.IServer> | undefined)",
|
1500
1515
|
value: input.servers
|
1501
|
-
})) && input.servers.map(((elem,
|
1502
|
-
path: _path + ".servers[" +
|
1516
|
+
})) && input.servers.map(((elem, _index83) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
1517
|
+
path: _path + ".servers[" + _index83 + "]",
|
1503
1518
|
expected: "OpenApi.IServer",
|
1504
1519
|
value: elem
|
1505
|
-
})) && _vo1(elem, _path + ".servers[" +
|
1506
|
-
path: _path + ".servers[" +
|
1520
|
+
})) && _vo1(elem, _path + ".servers[" + _index83 + "]", _exceptionable) || _report(_exceptionable, {
|
1521
|
+
path: _path + ".servers[" + _index83 + "]",
|
1507
1522
|
expected: "OpenApi.IServer",
|
1508
1523
|
value: elem
|
1509
1524
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -1546,12 +1561,12 @@ class MigrateApplication {
|
|
1546
1561
|
path: _path + ".security",
|
1547
1562
|
expected: "(Array<Record<string, Array<string>>> | undefined)",
|
1548
1563
|
value: input.security
|
1549
|
-
})) && input.security.map(((elem,
|
1550
|
-
path: _path + ".security[" +
|
1564
|
+
})) && input.security.map(((elem, _index84) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
1565
|
+
path: _path + ".security[" + _index84 + "]",
|
1551
1566
|
expected: "Record<string, Array<string>>",
|
1552
1567
|
value: elem
|
1553
|
-
})) && _vo46(elem, _path + ".security[" +
|
1554
|
-
path: _path + ".security[" +
|
1568
|
+
})) && _vo46(elem, _path + ".security[" + _index84 + "]", _exceptionable) || _report(_exceptionable, {
|
1569
|
+
path: _path + ".security[" + _index84 + "]",
|
1555
1570
|
expected: "Record<string, Array<string>>",
|
1556
1571
|
value: elem
|
1557
1572
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -1562,12 +1577,12 @@ class MigrateApplication {
|
|
1562
1577
|
path: _path + ".tags",
|
1563
1578
|
expected: "(Array<OpenApi.IDocument.ITag> | undefined)",
|
1564
1579
|
value: input.tags
|
1565
|
-
})) && input.tags.map(((elem,
|
1566
|
-
path: _path + ".tags[" +
|
1580
|
+
})) && input.tags.map(((elem, _index85) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
1581
|
+
path: _path + ".tags[" + _index85 + "]",
|
1567
1582
|
expected: "OpenApi.IDocument.ITag",
|
1568
1583
|
value: elem
|
1569
|
-
})) && _vo47(elem, _path + ".tags[" +
|
1570
|
-
path: _path + ".tags[" +
|
1584
|
+
})) && _vo47(elem, _path + ".tags[" + _index85 + "]", _exceptionable) || _report(_exceptionable, {
|
1585
|
+
path: _path + ".tags[" + _index85 + "]",
|
1571
1586
|
expected: "OpenApi.IDocument.ITag",
|
1572
1587
|
value: elem
|
1573
1588
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -1617,8 +1632,8 @@ class MigrateApplication {
|
|
1617
1632
|
path: _path + '["enum"]',
|
1618
1633
|
expected: "(Array<string> | undefined)",
|
1619
1634
|
value: input["enum"]
|
1620
|
-
})) && input["enum"].map(((elem,
|
1621
|
-
path: _path + '["enum"][' +
|
1635
|
+
})) && input["enum"].map(((elem, _index86) => "string" === typeof elem || _report(_exceptionable, {
|
1636
|
+
path: _path + '["enum"][' + _index86 + "]",
|
1622
1637
|
expected: "string",
|
1623
1638
|
value: elem
|
1624
1639
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2022,12 +2037,12 @@ class MigrateApplication {
|
|
2022
2037
|
path: _path + ".prefixItems",
|
2023
2038
|
expected: "Array<OpenApi.IJsonSchema>",
|
2024
2039
|
value: input.prefixItems
|
2025
|
-
})) && input.prefixItems.map(((elem,
|
2026
|
-
path: _path + ".prefixItems[" +
|
2040
|
+
})) && input.prefixItems.map(((elem, _index87) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
2041
|
+
path: _path + ".prefixItems[" + _index87 + "]",
|
2027
2042
|
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)",
|
2028
2043
|
value: elem
|
2029
|
-
})) && _vu0(elem, _path + ".prefixItems[" +
|
2030
|
-
path: _path + ".prefixItems[" +
|
2044
|
+
})) && _vu0(elem, _path + ".prefixItems[" + _index87 + "]", _exceptionable) || _report(_exceptionable, {
|
2045
|
+
path: _path + ".prefixItems[" + _index87 + "]",
|
2031
2046
|
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)",
|
2032
2047
|
value: elem
|
2033
2048
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2115,8 +2130,8 @@ class MigrateApplication {
|
|
2115
2130
|
path: _path + ".required",
|
2116
2131
|
expected: "(Array<string> | undefined)",
|
2117
2132
|
value: input.required
|
2118
|
-
})) && input.required.map(((elem,
|
2119
|
-
path: _path + ".required[" +
|
2133
|
+
})) && input.required.map(((elem, _index88) => "string" === typeof elem || _report(_exceptionable, {
|
2134
|
+
path: _path + ".required[" + _index88 + "]",
|
2120
2135
|
expected: "string",
|
2121
2136
|
value: elem
|
2122
2137
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2177,12 +2192,12 @@ class MigrateApplication {
|
|
2177
2192
|
path: _path + ".oneOf",
|
2178
2193
|
expected: "Array<IConstant | IBoolean | IInteger | INumber | IString | IArray | ITuple | IObject | IReference<string> | INull | IUnknown>",
|
2179
2194
|
value: input.oneOf
|
2180
|
-
})) && input.oneOf.map(((elem,
|
2181
|
-
path: _path + ".oneOf[" +
|
2195
|
+
})) && input.oneOf.map(((elem, _index89) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
2196
|
+
path: _path + ".oneOf[" + _index89 + "]",
|
2182
2197
|
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)",
|
2183
2198
|
value: elem
|
2184
|
-
})) && _vu1(elem, _path + ".oneOf[" +
|
2185
|
-
path: _path + ".oneOf[" +
|
2199
|
+
})) && _vu1(elem, _path + ".oneOf[" + _index89 + "]", _exceptionable) || _report(_exceptionable, {
|
2200
|
+
path: _path + ".oneOf[" + _index89 + "]",
|
2186
2201
|
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)",
|
2187
2202
|
value: elem
|
2188
2203
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2493,12 +2508,12 @@ class MigrateApplication {
|
|
2493
2508
|
path: _path + ".servers",
|
2494
2509
|
expected: "(Array<OpenApi.IServer> | undefined)",
|
2495
2510
|
value: input.servers
|
2496
|
-
})) && input.servers.map(((elem,
|
2497
|
-
path: _path + ".servers[" +
|
2511
|
+
})) && input.servers.map(((elem, _index90) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
2512
|
+
path: _path + ".servers[" + _index90 + "]",
|
2498
2513
|
expected: "OpenApi.IServer",
|
2499
2514
|
value: elem
|
2500
|
-
})) && _vo1(elem, _path + ".servers[" +
|
2501
|
-
path: _path + ".servers[" +
|
2515
|
+
})) && _vo1(elem, _path + ".servers[" + _index90 + "]", _exceptionable) || _report(_exceptionable, {
|
2516
|
+
path: _path + ".servers[" + _index90 + "]",
|
2502
2517
|
expected: "OpenApi.IServer",
|
2503
2518
|
value: elem
|
2504
2519
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2586,12 +2601,12 @@ class MigrateApplication {
|
|
2586
2601
|
path: _path + ".parameters",
|
2587
2602
|
expected: "(Array<OpenApi.IOperation.IParameter> | undefined)",
|
2588
2603
|
value: input.parameters
|
2589
|
-
})) && input.parameters.map(((elem,
|
2590
|
-
path: _path + ".parameters[" +
|
2604
|
+
})) && input.parameters.map(((elem, _index91) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
2605
|
+
path: _path + ".parameters[" + _index91 + "]",
|
2591
2606
|
expected: "OpenApi.IOperation.IParameter",
|
2592
2607
|
value: elem
|
2593
|
-
})) && _vo37(elem, _path + ".parameters[" +
|
2594
|
-
path: _path + ".parameters[" +
|
2608
|
+
})) && _vo37(elem, _path + ".parameters[" + _index91 + "]", _exceptionable) || _report(_exceptionable, {
|
2609
|
+
path: _path + ".parameters[" + _index91 + "]",
|
2595
2610
|
expected: "OpenApi.IOperation.IParameter",
|
2596
2611
|
value: elem
|
2597
2612
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2618,12 +2633,12 @@ class MigrateApplication {
|
|
2618
2633
|
path: _path + ".servers",
|
2619
2634
|
expected: "(Array<OpenApi.IServer> | undefined)",
|
2620
2635
|
value: input.servers
|
2621
|
-
})) && input.servers.map(((elem,
|
2622
|
-
path: _path + ".servers[" +
|
2636
|
+
})) && input.servers.map(((elem, _index92) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
2637
|
+
path: _path + ".servers[" + _index92 + "]",
|
2623
2638
|
expected: "OpenApi.IServer",
|
2624
2639
|
value: elem
|
2625
|
-
})) && _vo1(elem, _path + ".servers[" +
|
2626
|
-
path: _path + ".servers[" +
|
2640
|
+
})) && _vo1(elem, _path + ".servers[" + _index92 + "]", _exceptionable) || _report(_exceptionable, {
|
2641
|
+
path: _path + ".servers[" + _index92 + "]",
|
2627
2642
|
expected: "OpenApi.IServer",
|
2628
2643
|
value: elem
|
2629
2644
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2642,12 +2657,12 @@ class MigrateApplication {
|
|
2642
2657
|
path: _path + ".security",
|
2643
2658
|
expected: "(Array<Record<string, Array<string>>> | undefined)",
|
2644
2659
|
value: input.security
|
2645
|
-
})) && input.security.map(((elem,
|
2646
|
-
path: _path + ".security[" +
|
2660
|
+
})) && input.security.map(((elem, _index93) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
2661
|
+
path: _path + ".security[" + _index93 + "]",
|
2647
2662
|
expected: "Record<string, Array<string>>",
|
2648
2663
|
value: elem
|
2649
|
-
})) && _vo46(elem, _path + ".security[" +
|
2650
|
-
path: _path + ".security[" +
|
2664
|
+
})) && _vo46(elem, _path + ".security[" + _index93 + "]", _exceptionable) || _report(_exceptionable, {
|
2665
|
+
path: _path + ".security[" + _index93 + "]",
|
2651
2666
|
expected: "Record<string, Array<string>>",
|
2652
2667
|
value: elem
|
2653
2668
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2658,8 +2673,8 @@ class MigrateApplication {
|
|
2658
2673
|
path: _path + ".tags",
|
2659
2674
|
expected: "(Array<string> | undefined)",
|
2660
2675
|
value: input.tags
|
2661
|
-
})) && input.tags.map(((elem,
|
2662
|
-
path: _path + ".tags[" +
|
2676
|
+
})) && input.tags.map(((elem, _index94) => "string" === typeof elem || _report(_exceptionable, {
|
2677
|
+
path: _path + ".tags[" + _index94 + "]",
|
2663
2678
|
expected: "string",
|
2664
2679
|
value: elem
|
2665
2680
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2674,6 +2689,22 @@ class MigrateApplication {
|
|
2674
2689
|
path: _path + '["x-samchon-human"]',
|
2675
2690
|
expected: "(boolean | undefined)",
|
2676
2691
|
value: input["x-samchon-human"]
|
2692
|
+
}), undefined === input["x-samchon-accessor"] || (Array.isArray(input["x-samchon-accessor"]) || _report(_exceptionable, {
|
2693
|
+
path: _path + '["x-samchon-accessor"]',
|
2694
|
+
expected: "(Array<string> | undefined)",
|
2695
|
+
value: input["x-samchon-accessor"]
|
2696
|
+
})) && input["x-samchon-accessor"].map(((elem, _index95) => "string" === typeof elem || _report(_exceptionable, {
|
2697
|
+
path: _path + '["x-samchon-accessor"][' + _index95 + "]",
|
2698
|
+
expected: "string",
|
2699
|
+
value: elem
|
2700
|
+
}))).every((flag => flag)) || _report(_exceptionable, {
|
2701
|
+
path: _path + '["x-samchon-accessor"]',
|
2702
|
+
expected: "(Array<string> | undefined)",
|
2703
|
+
value: input["x-samchon-accessor"]
|
2704
|
+
}), undefined === input["x-samchon-controller"] || "string" === typeof input["x-samchon-controller"] || _report(_exceptionable, {
|
2705
|
+
path: _path + '["x-samchon-controller"]',
|
2706
|
+
expected: "(string | undefined)",
|
2707
|
+
value: input["x-samchon-controller"]
|
2677
2708
|
}) ].every((flag => flag));
|
2678
2709
|
const _vo37 = (input, _path, _exceptionable = true) => [ undefined === input.name || "string" === typeof input.name || _report(_exceptionable, {
|
2679
2710
|
path: _path + ".name",
|
@@ -2888,8 +2919,8 @@ class MigrateApplication {
|
|
2888
2919
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
2889
2920
|
expected: "Array<string>",
|
2890
2921
|
value
|
2891
|
-
})) && value.map(((elem,
|
2892
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" +
|
2922
|
+
})) && value.map(((elem, _index96) => "string" === typeof elem || _report(_exceptionable, {
|
2923
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index96 + "]",
|
2893
2924
|
expected: "string",
|
2894
2925
|
value: elem
|
2895
2926
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2939,8 +2970,8 @@ class MigrateApplication {
|
|
2939
2970
|
path: _path + ".consumes",
|
2940
2971
|
expected: "(Array<string> | undefined)",
|
2941
2972
|
value: input.consumes
|
2942
|
-
})) && input.consumes.map(((elem,
|
2943
|
-
path: _path + ".consumes[" +
|
2973
|
+
})) && input.consumes.map(((elem, _index97) => "string" === typeof elem || _report(_exceptionable, {
|
2974
|
+
path: _path + ".consumes[" + _index97 + "]",
|
2944
2975
|
expected: "string",
|
2945
2976
|
value: elem
|
2946
2977
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2951,8 +2982,8 @@ class MigrateApplication {
|
|
2951
2982
|
path: _path + ".produces",
|
2952
2983
|
expected: "(Array<string> | undefined)",
|
2953
2984
|
value: input.produces
|
2954
|
-
})) && input.produces.map(((elem,
|
2955
|
-
path: _path + ".produces[" +
|
2985
|
+
})) && input.produces.map(((elem, _index98) => "string" === typeof elem || _report(_exceptionable, {
|
2986
|
+
path: _path + ".produces[" + _index98 + "]",
|
2956
2987
|
expected: "string",
|
2957
2988
|
value: elem
|
2958
2989
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -2995,12 +3026,12 @@ class MigrateApplication {
|
|
2995
3026
|
path: _path + ".security",
|
2996
3027
|
expected: "(Array<Record<string, Array<string>>> | undefined)",
|
2997
3028
|
value: input.security
|
2998
|
-
})) && input.security.map(((elem,
|
2999
|
-
path: _path + ".security[" +
|
3029
|
+
})) && input.security.map(((elem, _index99) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
3030
|
+
path: _path + ".security[" + _index99 + "]",
|
3000
3031
|
expected: "Record<string, Array<string>>",
|
3001
3032
|
value: elem
|
3002
|
-
})) && _vo46(elem, _path + ".security[" +
|
3003
|
-
path: _path + ".security[" +
|
3033
|
+
})) && _vo46(elem, _path + ".security[" + _index99 + "]", _exceptionable) || _report(_exceptionable, {
|
3034
|
+
path: _path + ".security[" + _index99 + "]",
|
3004
3035
|
expected: "Record<string, Array<string>>",
|
3005
3036
|
value: elem
|
3006
3037
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3019,12 +3050,12 @@ class MigrateApplication {
|
|
3019
3050
|
path: _path + ".tags",
|
3020
3051
|
expected: "(Array<SwaggerV2.IDocument.ITag> | undefined)",
|
3021
3052
|
value: input.tags
|
3022
|
-
})) && input.tags.map(((elem,
|
3023
|
-
path: _path + ".tags[" +
|
3053
|
+
})) && input.tags.map(((elem, _index100) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
3054
|
+
path: _path + ".tags[" + _index100 + "]",
|
3024
3055
|
expected: "SwaggerV2.IDocument.ITag",
|
3025
3056
|
value: elem
|
3026
|
-
})) && _vo93(elem, _path + ".tags[" +
|
3027
|
-
path: _path + ".tags[" +
|
3057
|
+
})) && _vo93(elem, _path + ".tags[" + _index100 + "]", _exceptionable) || _report(_exceptionable, {
|
3058
|
+
path: _path + ".tags[" + _index100 + "]",
|
3028
3059
|
expected: "SwaggerV2.IDocument.ITag",
|
3029
3060
|
value: elem
|
3030
3061
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3108,8 +3139,8 @@ class MigrateApplication {
|
|
3108
3139
|
path: _path + '["enum"]',
|
3109
3140
|
expected: "(Array<boolean | null> | undefined)",
|
3110
3141
|
value: input["enum"]
|
3111
|
-
})) && input["enum"].map(((elem,
|
3112
|
-
path: _path + '["enum"][' +
|
3142
|
+
})) && input["enum"].map(((elem, _index101) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
|
3143
|
+
path: _path + '["enum"][' + _index101 + "]",
|
3113
3144
|
expected: "(boolean | null)",
|
3114
3145
|
value: elem
|
3115
3146
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3153,8 +3184,8 @@ class MigrateApplication {
|
|
3153
3184
|
path: _path + '["enum"]',
|
3154
3185
|
expected: "(Array<number | null> | undefined)",
|
3155
3186
|
value: input["enum"]
|
3156
|
-
})) && input["enum"].map(((elem,
|
3157
|
-
path: _path + '["enum"][' +
|
3187
|
+
})) && input["enum"].map(((elem, _index102) => null === elem || "number" === typeof elem || _report(_exceptionable, {
|
3188
|
+
path: _path + '["enum"][' + _index102 + "]",
|
3158
3189
|
expected: "(null | number)",
|
3159
3190
|
value: elem
|
3160
3191
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3230,8 +3261,8 @@ class MigrateApplication {
|
|
3230
3261
|
path: _path + '["enum"]',
|
3231
3262
|
expected: "(Array<number | null> | undefined)",
|
3232
3263
|
value: input["enum"]
|
3233
|
-
})) && input["enum"].map(((elem,
|
3234
|
-
path: _path + '["enum"][' +
|
3264
|
+
})) && input["enum"].map(((elem, _index103) => null === elem || "number" === typeof elem || _report(_exceptionable, {
|
3265
|
+
path: _path + '["enum"][' + _index103 + "]",
|
3235
3266
|
expected: "(null | number)",
|
3236
3267
|
value: elem
|
3237
3268
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3295,8 +3326,8 @@ class MigrateApplication {
|
|
3295
3326
|
path: _path + '["enum"]',
|
3296
3327
|
expected: "(Array<string | null> | undefined)",
|
3297
3328
|
value: input["enum"]
|
3298
|
-
})) && input["enum"].map(((elem,
|
3299
|
-
path: _path + '["enum"][' +
|
3329
|
+
})) && input["enum"].map(((elem, _index104) => null === elem || "string" === typeof elem || _report(_exceptionable, {
|
3330
|
+
path: _path + '["enum"][' + _index104 + "]",
|
3300
3331
|
expected: "(null | string)",
|
3301
3332
|
value: elem
|
3302
3333
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3417,8 +3448,8 @@ class MigrateApplication {
|
|
3417
3448
|
path: _path + ".required",
|
3418
3449
|
expected: "(Array<string> | undefined)",
|
3419
3450
|
value: input.required
|
3420
|
-
})) && input.required.map(((elem,
|
3421
|
-
path: _path + ".required[" +
|
3451
|
+
})) && input.required.map(((elem, _index105) => "string" === typeof elem || _report(_exceptionable, {
|
3452
|
+
path: _path + ".required[" + _index105 + "]",
|
3422
3453
|
expected: "string",
|
3423
3454
|
value: elem
|
3424
3455
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3545,12 +3576,12 @@ class MigrateApplication {
|
|
3545
3576
|
path: _path + '["x-anyOf"]',
|
3546
3577
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
3547
3578
|
value: input["x-anyOf"]
|
3548
|
-
})) && input["x-anyOf"].map(((elem,
|
3549
|
-
path: _path + '["x-anyOf"][' +
|
3579
|
+
})) && input["x-anyOf"].map(((elem, _index106) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
3580
|
+
path: _path + '["x-anyOf"][' + _index106 + "]",
|
3550
3581
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown)",
|
3551
3582
|
value: elem
|
3552
|
-
})) && _vu2(elem, _path + '["x-anyOf"][' +
|
3553
|
-
path: _path + '["x-anyOf"][' +
|
3583
|
+
})) && _vu2(elem, _path + '["x-anyOf"][' + _index106 + "]", _exceptionable) || _report(_exceptionable, {
|
3584
|
+
path: _path + '["x-anyOf"][' + _index106 + "]",
|
3554
3585
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown)",
|
3555
3586
|
value: elem
|
3556
3587
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3578,12 +3609,12 @@ class MigrateApplication {
|
|
3578
3609
|
path: _path + '["x-oneOf"]',
|
3579
3610
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
3580
3611
|
value: input["x-oneOf"]
|
3581
|
-
})) && input["x-oneOf"].map(((elem,
|
3582
|
-
path: _path + '["x-oneOf"][' +
|
3612
|
+
})) && input["x-oneOf"].map(((elem, _index107) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
3613
|
+
path: _path + '["x-oneOf"][' + _index107 + "]",
|
3583
3614
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown)",
|
3584
3615
|
value: elem
|
3585
|
-
})) && _vu2(elem, _path + '["x-oneOf"][' +
|
3586
|
-
path: _path + '["x-oneOf"][' +
|
3616
|
+
})) && _vu2(elem, _path + '["x-oneOf"][' + _index107 + "]", _exceptionable) || _report(_exceptionable, {
|
3617
|
+
path: _path + '["x-oneOf"][' + _index107 + "]",
|
3587
3618
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown)",
|
3588
3619
|
value: elem
|
3589
3620
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3628,8 +3659,8 @@ class MigrateApplication {
|
|
3628
3659
|
path: _path + '["enum"]',
|
3629
3660
|
expected: "(Array<boolean | null> | undefined)",
|
3630
3661
|
value: input["enum"]
|
3631
|
-
})) && input["enum"].map(((elem,
|
3632
|
-
path: _path + '["enum"][' +
|
3662
|
+
})) && input["enum"].map(((elem, _index108) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
|
3663
|
+
path: _path + '["enum"][' + _index108 + "]",
|
3633
3664
|
expected: "(boolean | null)",
|
3634
3665
|
value: elem
|
3635
3666
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3681,8 +3712,8 @@ class MigrateApplication {
|
|
3681
3712
|
path: _path + '["enum"]',
|
3682
3713
|
expected: "(Array<number | null> | undefined)",
|
3683
3714
|
value: input["enum"]
|
3684
|
-
})) && input["enum"].map(((elem,
|
3685
|
-
path: _path + '["enum"][' +
|
3715
|
+
})) && input["enum"].map(((elem, _index109) => null === elem || "number" === typeof elem || _report(_exceptionable, {
|
3716
|
+
path: _path + '["enum"][' + _index109 + "]",
|
3686
3717
|
expected: "(null | number)",
|
3687
3718
|
value: elem
|
3688
3719
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3766,8 +3797,8 @@ class MigrateApplication {
|
|
3766
3797
|
path: _path + '["enum"]',
|
3767
3798
|
expected: "(Array<number | null> | undefined)",
|
3768
3799
|
value: input["enum"]
|
3769
|
-
})) && input["enum"].map(((elem,
|
3770
|
-
path: _path + '["enum"][' +
|
3800
|
+
})) && input["enum"].map(((elem, _index110) => null === elem || "number" === typeof elem || _report(_exceptionable, {
|
3801
|
+
path: _path + '["enum"][' + _index110 + "]",
|
3771
3802
|
expected: "(null | number)",
|
3772
3803
|
value: elem
|
3773
3804
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3839,8 +3870,8 @@ class MigrateApplication {
|
|
3839
3870
|
path: _path + '["enum"]',
|
3840
3871
|
expected: "(Array<string | null> | undefined)",
|
3841
3872
|
value: input["enum"]
|
3842
|
-
})) && input["enum"].map(((elem,
|
3843
|
-
path: _path + '["enum"][' +
|
3873
|
+
})) && input["enum"].map(((elem, _index111) => null === elem || "string" === typeof elem || _report(_exceptionable, {
|
3874
|
+
path: _path + '["enum"][' + _index111 + "]",
|
3844
3875
|
expected: "(null | string)",
|
3845
3876
|
value: elem
|
3846
3877
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -3977,8 +4008,8 @@ class MigrateApplication {
|
|
3977
4008
|
path: _path + ".required",
|
3978
4009
|
expected: "(Array<string> | undefined)",
|
3979
4010
|
value: input.required
|
3980
|
-
})) && input.required.map(((elem,
|
3981
|
-
path: _path + ".required[" +
|
4011
|
+
})) && input.required.map(((elem, _index112) => "string" === typeof elem || _report(_exceptionable, {
|
4012
|
+
path: _path + ".required[" + _index112 + "]",
|
3982
4013
|
expected: "string",
|
3983
4014
|
value: elem
|
3984
4015
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4137,12 +4168,12 @@ class MigrateApplication {
|
|
4137
4168
|
path: _path + '["x-anyOf"]',
|
4138
4169
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
4139
4170
|
value: input["x-anyOf"]
|
4140
|
-
})) && input["x-anyOf"].map(((elem,
|
4141
|
-
path: _path + '["x-anyOf"][' +
|
4171
|
+
})) && input["x-anyOf"].map(((elem, _index113) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
4172
|
+
path: _path + '["x-anyOf"][' + _index113 + "]",
|
4142
4173
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown)",
|
4143
4174
|
value: elem
|
4144
|
-
})) && _vu2(elem, _path + '["x-anyOf"][' +
|
4145
|
-
path: _path + '["x-anyOf"][' +
|
4175
|
+
})) && _vu2(elem, _path + '["x-anyOf"][' + _index113 + "]", _exceptionable) || _report(_exceptionable, {
|
4176
|
+
path: _path + '["x-anyOf"][' + _index113 + "]",
|
4146
4177
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown)",
|
4147
4178
|
value: elem
|
4148
4179
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4178,12 +4209,12 @@ class MigrateApplication {
|
|
4178
4209
|
path: _path + '["x-oneOf"]',
|
4179
4210
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
4180
4211
|
value: input["x-oneOf"]
|
4181
|
-
})) && input["x-oneOf"].map(((elem,
|
4182
|
-
path: _path + '["x-oneOf"][' +
|
4212
|
+
})) && input["x-oneOf"].map(((elem, _index114) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
4213
|
+
path: _path + '["x-oneOf"][' + _index114 + "]",
|
4183
4214
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown)",
|
4184
4215
|
value: elem
|
4185
|
-
})) && _vu2(elem, _path + '["x-oneOf"][' +
|
4186
|
-
path: _path + '["x-oneOf"][' +
|
4216
|
+
})) && _vu2(elem, _path + '["x-oneOf"][' + _index114 + "]", _exceptionable) || _report(_exceptionable, {
|
4217
|
+
path: _path + '["x-oneOf"][' + _index114 + "]",
|
4187
4218
|
expected: "(SwaggerV2.IJsonSchema.IAnyOf | SwaggerV2.IJsonSchema.IArray | SwaggerV2.IJsonSchema.IBoolean | SwaggerV2.IJsonSchema.IInteger | SwaggerV2.IJsonSchema.INullOnly | SwaggerV2.IJsonSchema.INumber | SwaggerV2.IJsonSchema.IObject | SwaggerV2.IJsonSchema.IOneOf | SwaggerV2.IJsonSchema.IReference<string> | SwaggerV2.IJsonSchema.IString | SwaggerV2.IJsonSchema.IUnknown)",
|
4188
4219
|
value: elem
|
4189
4220
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4438,12 +4469,12 @@ class MigrateApplication {
|
|
4438
4469
|
path: _path + ".parameters",
|
4439
4470
|
expected: "(Array<IParameter | IReference<`#/parameters/${string}`>> | undefined)",
|
4440
4471
|
value: input.parameters
|
4441
|
-
})) && input.parameters.map(((elem,
|
4442
|
-
path: _path + ".parameters[" +
|
4472
|
+
})) && input.parameters.map(((elem, _index115) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
4473
|
+
path: _path + ".parameters[" + _index115 + "]",
|
4443
4474
|
expected: "(IAnyOf & { name: string; in: string; description?: string | undefined; } | IArray & { name: string; in: string; description?: string | undefined; } | IBoolean & { name: string; in: string; description?: string | undefined; } | IInteger & { name: string; in: string; description?: string | undefined; } | INullOnly & { name: string; in: string; description?: string | undefined; } | INumber & { name: string; in: string; description?: string | undefined; } | IObject & { name: string; in: string; description?: string | undefined; } | IOneOf & { name: string; in: string; description?: string | undefined; } | IReference<string> & { name: string; in: string; description?: string | undefined; } | IString & { name: string; in: string; description?: string | undefined; } | IUnknown & { name: string; in: string; description?: string | undefined; } | SwaggerV2.IJsonSchema.IReference<`#/parameters/${string}`> | SwaggerV2.IOperation.IBodyParameter)",
|
4444
4475
|
value: elem
|
4445
|
-
})) && _vu3(elem, _path + ".parameters[" +
|
4446
|
-
path: _path + ".parameters[" +
|
4476
|
+
})) && _vu3(elem, _path + ".parameters[" + _index115 + "]", _exceptionable) || _report(_exceptionable, {
|
4477
|
+
path: _path + ".parameters[" + _index115 + "]",
|
4447
4478
|
expected: "(IAnyOf & { name: string; in: string; description?: string | undefined; } | IArray & { name: string; in: string; description?: string | undefined; } | IBoolean & { name: string; in: string; description?: string | undefined; } | IInteger & { name: string; in: string; description?: string | undefined; } | INullOnly & { name: string; in: string; description?: string | undefined; } | INumber & { name: string; in: string; description?: string | undefined; } | IObject & { name: string; in: string; description?: string | undefined; } | IOneOf & { name: string; in: string; description?: string | undefined; } | IReference<string> & { name: string; in: string; description?: string | undefined; } | IString & { name: string; in: string; description?: string | undefined; } | IUnknown & { name: string; in: string; description?: string | undefined; } | SwaggerV2.IJsonSchema.IReference<`#/parameters/${string}`> | SwaggerV2.IOperation.IBodyParameter)",
|
4448
4479
|
value: elem
|
4449
4480
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4544,12 +4575,12 @@ class MigrateApplication {
|
|
4544
4575
|
path: _path + ".parameters",
|
4545
4576
|
expected: "(Array<IParameter | IReference<`#/definitions/parameters/${string}`>> | undefined)",
|
4546
4577
|
value: input.parameters
|
4547
|
-
})) && input.parameters.map(((elem,
|
4548
|
-
path: _path + ".parameters[" +
|
4578
|
+
})) && input.parameters.map(((elem, _index116) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
4579
|
+
path: _path + ".parameters[" + _index116 + "]",
|
4549
4580
|
expected: "(IAnyOf & { name: string; in: string; description?: string | undefined; } | IArray & { name: string; in: string; description?: string | undefined; } | IBoolean & { name: string; in: string; description?: string | undefined; } | IInteger & { name: string; in: string; description?: string | undefined; } | INullOnly & { name: string; in: string; description?: string | undefined; } | INumber & { name: string; in: string; description?: string | undefined; } | IObject & { name: string; in: string; description?: string | undefined; } | IOneOf & { name: string; in: string; description?: string | undefined; } | IReference<string> & { name: string; in: string; description?: string | undefined; } | IString & { name: string; in: string; description?: string | undefined; } | IUnknown & { name: string; in: string; description?: string | undefined; } | SwaggerV2.IJsonSchema.IReference<`#/definitions/parameters/${string}`> | SwaggerV2.IOperation.IBodyParameter)",
|
4550
4581
|
value: elem
|
4551
|
-
})) && _vu4(elem, _path + ".parameters[" +
|
4552
|
-
path: _path + ".parameters[" +
|
4582
|
+
})) && _vu4(elem, _path + ".parameters[" + _index116 + "]", _exceptionable) || _report(_exceptionable, {
|
4583
|
+
path: _path + ".parameters[" + _index116 + "]",
|
4553
4584
|
expected: "(IAnyOf & { name: string; in: string; description?: string | undefined; } | IArray & { name: string; in: string; description?: string | undefined; } | IBoolean & { name: string; in: string; description?: string | undefined; } | IInteger & { name: string; in: string; description?: string | undefined; } | INullOnly & { name: string; in: string; description?: string | undefined; } | INumber & { name: string; in: string; description?: string | undefined; } | IObject & { name: string; in: string; description?: string | undefined; } | IOneOf & { name: string; in: string; description?: string | undefined; } | IReference<string> & { name: string; in: string; description?: string | undefined; } | IString & { name: string; in: string; description?: string | undefined; } | IUnknown & { name: string; in: string; description?: string | undefined; } | SwaggerV2.IJsonSchema.IReference<`#/definitions/parameters/${string}`> | SwaggerV2.IOperation.IBodyParameter)",
|
4554
4585
|
value: elem
|
4555
4586
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4576,12 +4607,12 @@ class MigrateApplication {
|
|
4576
4607
|
path: _path + ".security",
|
4577
4608
|
expected: "(Array<Record<string, Array<string>>> | undefined)",
|
4578
4609
|
value: input.security
|
4579
|
-
})) && input.security.map(((elem,
|
4580
|
-
path: _path + ".security[" +
|
4610
|
+
})) && input.security.map(((elem, _index117) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
4611
|
+
path: _path + ".security[" + _index117 + "]",
|
4581
4612
|
expected: "Record<string, Array<string>>",
|
4582
4613
|
value: elem
|
4583
|
-
})) && _vo46(elem, _path + ".security[" +
|
4584
|
-
path: _path + ".security[" +
|
4614
|
+
})) && _vo46(elem, _path + ".security[" + _index117 + "]", _exceptionable) || _report(_exceptionable, {
|
4615
|
+
path: _path + ".security[" + _index117 + "]",
|
4585
4616
|
expected: "Record<string, Array<string>>",
|
4586
4617
|
value: elem
|
4587
4618
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4592,8 +4623,8 @@ class MigrateApplication {
|
|
4592
4623
|
path: _path + ".tags",
|
4593
4624
|
expected: "(Array<string> | undefined)",
|
4594
4625
|
value: input.tags
|
4595
|
-
})) && input.tags.map(((elem,
|
4596
|
-
path: _path + ".tags[" +
|
4626
|
+
})) && input.tags.map(((elem, _index118) => "string" === typeof elem || _report(_exceptionable, {
|
4627
|
+
path: _path + ".tags[" + _index118 + "]",
|
4597
4628
|
expected: "string",
|
4598
4629
|
value: elem
|
4599
4630
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4685,12 +4716,12 @@ class MigrateApplication {
|
|
4685
4716
|
path: _path + ".servers",
|
4686
4717
|
expected: "(Array<OpenApiV3.IServer> | undefined)",
|
4687
4718
|
value: input.servers
|
4688
|
-
})) && input.servers.map(((elem,
|
4689
|
-
path: _path + ".servers[" +
|
4719
|
+
})) && input.servers.map(((elem, _index119) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
4720
|
+
path: _path + ".servers[" + _index119 + "]",
|
4690
4721
|
expected: "OpenApiV3.IServer",
|
4691
4722
|
value: elem
|
4692
|
-
})) && _vo95(elem, _path + ".servers[" +
|
4693
|
-
path: _path + ".servers[" +
|
4723
|
+
})) && _vo95(elem, _path + ".servers[" + _index119 + "]", _exceptionable) || _report(_exceptionable, {
|
4724
|
+
path: _path + ".servers[" + _index119 + "]",
|
4694
4725
|
expected: "OpenApiV3.IServer",
|
4695
4726
|
value: elem
|
4696
4727
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4725,12 +4756,12 @@ class MigrateApplication {
|
|
4725
4756
|
path: _path + ".security",
|
4726
4757
|
expected: "(Array<Record<string, Array<string>>> | undefined)",
|
4727
4758
|
value: input.security
|
4728
|
-
})) && input.security.map(((elem,
|
4729
|
-
path: _path + ".security[" +
|
4759
|
+
})) && input.security.map(((elem, _index120) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
4760
|
+
path: _path + ".security[" + _index120 + "]",
|
4730
4761
|
expected: "Record<string, Array<string>>",
|
4731
4762
|
value: elem
|
4732
|
-
})) && _vo46(elem, _path + ".security[" +
|
4733
|
-
path: _path + ".security[" +
|
4763
|
+
})) && _vo46(elem, _path + ".security[" + _index120 + "]", _exceptionable) || _report(_exceptionable, {
|
4764
|
+
path: _path + ".security[" + _index120 + "]",
|
4734
4765
|
expected: "Record<string, Array<string>>",
|
4735
4766
|
value: elem
|
4736
4767
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4741,12 +4772,12 @@ class MigrateApplication {
|
|
4741
4772
|
path: _path + ".tags",
|
4742
4773
|
expected: "(Array<OpenApiV3.IDocument.ITag> | undefined)",
|
4743
4774
|
value: input.tags
|
4744
|
-
})) && input.tags.map(((elem,
|
4745
|
-
path: _path + ".tags[" +
|
4775
|
+
})) && input.tags.map(((elem, _index121) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
4776
|
+
path: _path + ".tags[" + _index121 + "]",
|
4746
4777
|
expected: "OpenApiV3.IDocument.ITag",
|
4747
4778
|
value: elem
|
4748
|
-
})) && _vo149(elem, _path + ".tags[" +
|
4749
|
-
path: _path + ".tags[" +
|
4779
|
+
})) && _vo149(elem, _path + ".tags[" + _index121 + "]", _exceptionable) || _report(_exceptionable, {
|
4780
|
+
path: _path + ".tags[" + _index121 + "]",
|
4750
4781
|
expected: "OpenApiV3.IDocument.ITag",
|
4751
4782
|
value: elem
|
4752
4783
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4792,8 +4823,8 @@ class MigrateApplication {
|
|
4792
4823
|
path: _path + '["enum"]',
|
4793
4824
|
expected: "(Array<string> | undefined)",
|
4794
4825
|
value: input["enum"]
|
4795
|
-
})) && input["enum"].map(((elem,
|
4796
|
-
path: _path + '["enum"][' +
|
4826
|
+
})) && input["enum"].map(((elem, _index122) => "string" === typeof elem || _report(_exceptionable, {
|
4827
|
+
path: _path + '["enum"][' + _index122 + "]",
|
4797
4828
|
expected: "string",
|
4798
4829
|
value: elem
|
4799
4830
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4938,8 +4969,8 @@ class MigrateApplication {
|
|
4938
4969
|
path: _path + '["enum"]',
|
4939
4970
|
expected: "(Array<boolean | null> | undefined)",
|
4940
4971
|
value: input["enum"]
|
4941
|
-
})) && input["enum"].map(((elem,
|
4942
|
-
path: _path + '["enum"][' +
|
4972
|
+
})) && input["enum"].map(((elem, _index123) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
|
4973
|
+
path: _path + '["enum"][' + _index123 + "]",
|
4943
4974
|
expected: "(boolean | null)",
|
4944
4975
|
value: elem
|
4945
4976
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -4987,8 +5018,8 @@ class MigrateApplication {
|
|
4987
5018
|
path: _path + '["enum"]',
|
4988
5019
|
expected: "(Array<number | null> | undefined)",
|
4989
5020
|
value: input["enum"]
|
4990
|
-
})) && input["enum"].map(((elem,
|
4991
|
-
path: _path + '["enum"][' +
|
5021
|
+
})) && input["enum"].map(((elem, _index124) => null === elem || "number" === typeof elem || _report(_exceptionable, {
|
5022
|
+
path: _path + '["enum"][' + _index124 + "]",
|
4992
5023
|
expected: "(null | number)",
|
4993
5024
|
value: elem
|
4994
5025
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -5068,8 +5099,8 @@ class MigrateApplication {
|
|
5068
5099
|
path: _path + '["enum"]',
|
5069
5100
|
expected: "(Array<number | null> | undefined)",
|
5070
5101
|
value: input["enum"]
|
5071
|
-
})) && input["enum"].map(((elem,
|
5072
|
-
path: _path + '["enum"][' +
|
5102
|
+
})) && input["enum"].map(((elem, _index125) => null === elem || "number" === typeof elem || _report(_exceptionable, {
|
5103
|
+
path: _path + '["enum"][' + _index125 + "]",
|
5073
5104
|
expected: "(null | number)",
|
5074
5105
|
value: elem
|
5075
5106
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -5137,8 +5168,8 @@ class MigrateApplication {
|
|
5137
5168
|
path: _path + '["enum"]',
|
5138
5169
|
expected: "(Array<string | null> | undefined)",
|
5139
5170
|
value: input["enum"]
|
5140
|
-
})) && input["enum"].map(((elem,
|
5141
|
-
path: _path + '["enum"][' +
|
5171
|
+
})) && input["enum"].map(((elem, _index126) => null === elem || "string" === typeof elem || _report(_exceptionable, {
|
5172
|
+
path: _path + '["enum"][' + _index126 + "]",
|
5142
5173
|
expected: "(null | string)",
|
5143
5174
|
value: elem
|
5144
5175
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -5267,8 +5298,8 @@ class MigrateApplication {
|
|
5267
5298
|
path: _path + ".required",
|
5268
5299
|
expected: "(Array<string> | undefined)",
|
5269
5300
|
value: input.required
|
5270
|
-
})) && input.required.map(((elem,
|
5271
|
-
path: _path + ".required[" +
|
5301
|
+
})) && input.required.map(((elem, _index127) => "string" === typeof elem || _report(_exceptionable, {
|
5302
|
+
path: _path + ".required[" + _index127 + "]",
|
5272
5303
|
expected: "string",
|
5273
5304
|
value: elem
|
5274
5305
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -5411,12 +5442,12 @@ class MigrateApplication {
|
|
5411
5442
|
path: _path + ".allOf",
|
5412
5443
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
5413
5444
|
value: input.allOf
|
5414
|
-
})) && input.allOf.map(((elem,
|
5415
|
-
path: _path + ".allOf[" +
|
5445
|
+
})) && input.allOf.map(((elem, _index128) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
5446
|
+
path: _path + ".allOf[" + _index128 + "]",
|
5416
5447
|
expected: "(OpenApiV3.IJsonSchema.IAllOf | OpenApiV3.IJsonSchema.IAnyOf | OpenApiV3.IJsonSchema.IArray | OpenApiV3.IJsonSchema.IBoolean | OpenApiV3.IJsonSchema.IInteger | OpenApiV3.IJsonSchema.INullOnly | OpenApiV3.IJsonSchema.INumber | OpenApiV3.IJsonSchema.IObject | OpenApiV3.IJsonSchema.IOneOf | OpenApiV3.IJsonSchema.IReference<string> | OpenApiV3.IJsonSchema.IString | OpenApiV3.IJsonSchema.IUnknown)",
|
5417
5448
|
value: elem
|
5418
|
-
})) && _vu5(elem, _path + ".allOf[" +
|
5419
|
-
path: _path + ".allOf[" +
|
5449
|
+
})) && _vu5(elem, _path + ".allOf[" + _index128 + "]", _exceptionable) || _report(_exceptionable, {
|
5450
|
+
path: _path + ".allOf[" + _index128 + "]",
|
5420
5451
|
expected: "(OpenApiV3.IJsonSchema.IAllOf | OpenApiV3.IJsonSchema.IAnyOf | OpenApiV3.IJsonSchema.IArray | OpenApiV3.IJsonSchema.IBoolean | OpenApiV3.IJsonSchema.IInteger | OpenApiV3.IJsonSchema.INullOnly | OpenApiV3.IJsonSchema.INumber | OpenApiV3.IJsonSchema.IObject | OpenApiV3.IJsonSchema.IOneOf | OpenApiV3.IJsonSchema.IReference<string> | OpenApiV3.IJsonSchema.IString | OpenApiV3.IJsonSchema.IUnknown)",
|
5421
5452
|
value: elem
|
5422
5453
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -5448,12 +5479,12 @@ class MigrateApplication {
|
|
5448
5479
|
path: _path + ".anyOf",
|
5449
5480
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
5450
5481
|
value: input.anyOf
|
5451
|
-
})) && input.anyOf.map(((elem,
|
5452
|
-
path: _path + ".anyOf[" +
|
5482
|
+
})) && input.anyOf.map(((elem, _index129) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
5483
|
+
path: _path + ".anyOf[" + _index129 + "]",
|
5453
5484
|
expected: "(OpenApiV3.IJsonSchema.IAllOf | OpenApiV3.IJsonSchema.IAnyOf | OpenApiV3.IJsonSchema.IArray | OpenApiV3.IJsonSchema.IBoolean | OpenApiV3.IJsonSchema.IInteger | OpenApiV3.IJsonSchema.INullOnly | OpenApiV3.IJsonSchema.INumber | OpenApiV3.IJsonSchema.IObject | OpenApiV3.IJsonSchema.IOneOf | OpenApiV3.IJsonSchema.IReference<string> | OpenApiV3.IJsonSchema.IString | OpenApiV3.IJsonSchema.IUnknown)",
|
5454
5485
|
value: elem
|
5455
|
-
})) && _vu5(elem, _path + ".anyOf[" +
|
5456
|
-
path: _path + ".anyOf[" +
|
5486
|
+
})) && _vu5(elem, _path + ".anyOf[" + _index129 + "]", _exceptionable) || _report(_exceptionable, {
|
5487
|
+
path: _path + ".anyOf[" + _index129 + "]",
|
5457
5488
|
expected: "(OpenApiV3.IJsonSchema.IAllOf | OpenApiV3.IJsonSchema.IAnyOf | OpenApiV3.IJsonSchema.IArray | OpenApiV3.IJsonSchema.IBoolean | OpenApiV3.IJsonSchema.IInteger | OpenApiV3.IJsonSchema.INullOnly | OpenApiV3.IJsonSchema.INumber | OpenApiV3.IJsonSchema.IObject | OpenApiV3.IJsonSchema.IOneOf | OpenApiV3.IJsonSchema.IReference<string> | OpenApiV3.IJsonSchema.IString | OpenApiV3.IJsonSchema.IUnknown)",
|
5458
5489
|
value: elem
|
5459
5490
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -5485,12 +5516,12 @@ class MigrateApplication {
|
|
5485
5516
|
path: _path + ".oneOf",
|
5486
5517
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
5487
5518
|
value: input.oneOf
|
5488
|
-
})) && input.oneOf.map(((elem,
|
5489
|
-
path: _path + ".oneOf[" +
|
5519
|
+
})) && input.oneOf.map(((elem, _index130) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
5520
|
+
path: _path + ".oneOf[" + _index130 + "]",
|
5490
5521
|
expected: "(OpenApiV3.IJsonSchema.IAllOf | OpenApiV3.IJsonSchema.IAnyOf | OpenApiV3.IJsonSchema.IArray | OpenApiV3.IJsonSchema.IBoolean | OpenApiV3.IJsonSchema.IInteger | OpenApiV3.IJsonSchema.INullOnly | OpenApiV3.IJsonSchema.INumber | OpenApiV3.IJsonSchema.IObject | OpenApiV3.IJsonSchema.IOneOf | OpenApiV3.IJsonSchema.IReference<string> | OpenApiV3.IJsonSchema.IString | OpenApiV3.IJsonSchema.IUnknown)",
|
5491
5522
|
value: elem
|
5492
|
-
})) && _vu5(elem, _path + ".oneOf[" +
|
5493
|
-
path: _path + ".oneOf[" +
|
5523
|
+
})) && _vu5(elem, _path + ".oneOf[" + _index130 + "]", _exceptionable) || _report(_exceptionable, {
|
5524
|
+
path: _path + ".oneOf[" + _index130 + "]",
|
5494
5525
|
expected: "(OpenApiV3.IJsonSchema.IAllOf | OpenApiV3.IJsonSchema.IAnyOf | OpenApiV3.IJsonSchema.IArray | OpenApiV3.IJsonSchema.IBoolean | OpenApiV3.IJsonSchema.IInteger | OpenApiV3.IJsonSchema.INullOnly | OpenApiV3.IJsonSchema.INumber | OpenApiV3.IJsonSchema.IObject | OpenApiV3.IJsonSchema.IOneOf | OpenApiV3.IJsonSchema.IReference<string> | OpenApiV3.IJsonSchema.IString | OpenApiV3.IJsonSchema.IUnknown)",
|
5495
5526
|
value: elem
|
5496
5527
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6018,12 +6049,12 @@ class MigrateApplication {
|
|
6018
6049
|
path: _path + ".parameters",
|
6019
6050
|
expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>> | undefined)",
|
6020
6051
|
value: input.parameters
|
6021
|
-
})) && input.parameters.map(((elem,
|
6022
|
-
path: _path + ".parameters[" +
|
6052
|
+
})) && input.parameters.map(((elem, _index131) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
6053
|
+
path: _path + ".parameters[" + _index131 + "]",
|
6023
6054
|
expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3.IOperation.IParameter)",
|
6024
6055
|
value: elem
|
6025
|
-
})) && _vu6(elem, _path + ".parameters[" +
|
6026
|
-
path: _path + ".parameters[" +
|
6056
|
+
})) && _vu6(elem, _path + ".parameters[" + _index131 + "]", _exceptionable) || _report(_exceptionable, {
|
6057
|
+
path: _path + ".parameters[" + _index131 + "]",
|
6027
6058
|
expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3.IOperation.IParameter)",
|
6028
6059
|
value: elem
|
6029
6060
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6034,12 +6065,12 @@ class MigrateApplication {
|
|
6034
6065
|
path: _path + ".servers",
|
6035
6066
|
expected: "(Array<OpenApiV3.IServer> | undefined)",
|
6036
6067
|
value: input.servers
|
6037
|
-
})) && input.servers.map(((elem,
|
6038
|
-
path: _path + ".servers[" +
|
6068
|
+
})) && input.servers.map(((elem, _index132) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
6069
|
+
path: _path + ".servers[" + _index132 + "]",
|
6039
6070
|
expected: "OpenApiV3.IServer",
|
6040
6071
|
value: elem
|
6041
|
-
})) && _vo95(elem, _path + ".servers[" +
|
6042
|
-
path: _path + ".servers[" +
|
6072
|
+
})) && _vo95(elem, _path + ".servers[" + _index132 + "]", _exceptionable) || _report(_exceptionable, {
|
6073
|
+
path: _path + ".servers[" + _index132 + "]",
|
6043
6074
|
expected: "OpenApiV3.IServer",
|
6044
6075
|
value: elem
|
6045
6076
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6152,12 +6183,12 @@ class MigrateApplication {
|
|
6152
6183
|
path: _path + ".parameters",
|
6153
6184
|
expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>> | undefined)",
|
6154
6185
|
value: input.parameters
|
6155
|
-
})) && input.parameters.map(((elem,
|
6156
|
-
path: _path + ".parameters[" +
|
6186
|
+
})) && input.parameters.map(((elem, _index133) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
6187
|
+
path: _path + ".parameters[" + _index133 + "]",
|
6157
6188
|
expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3.IOperation.IParameter)",
|
6158
6189
|
value: elem
|
6159
|
-
})) && _vu6(elem, _path + ".parameters[" +
|
6160
|
-
path: _path + ".parameters[" +
|
6190
|
+
})) && _vu6(elem, _path + ".parameters[" + _index133 + "]", _exceptionable) || _report(_exceptionable, {
|
6191
|
+
path: _path + ".parameters[" + _index133 + "]",
|
6161
6192
|
expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3.IOperation.IParameter)",
|
6162
6193
|
value: elem
|
6163
6194
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6184,12 +6215,12 @@ class MigrateApplication {
|
|
6184
6215
|
path: _path + ".servers",
|
6185
6216
|
expected: "(Array<OpenApiV3.IServer> | undefined)",
|
6186
6217
|
value: input.servers
|
6187
|
-
})) && input.servers.map(((elem,
|
6188
|
-
path: _path + ".servers[" +
|
6218
|
+
})) && input.servers.map(((elem, _index134) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
6219
|
+
path: _path + ".servers[" + _index134 + "]",
|
6189
6220
|
expected: "OpenApiV3.IServer",
|
6190
6221
|
value: elem
|
6191
|
-
})) && _vo95(elem, _path + ".servers[" +
|
6192
|
-
path: _path + ".servers[" +
|
6222
|
+
})) && _vo95(elem, _path + ".servers[" + _index134 + "]", _exceptionable) || _report(_exceptionable, {
|
6223
|
+
path: _path + ".servers[" + _index134 + "]",
|
6193
6224
|
expected: "OpenApiV3.IServer",
|
6194
6225
|
value: elem
|
6195
6226
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6208,12 +6239,12 @@ class MigrateApplication {
|
|
6208
6239
|
path: _path + ".security",
|
6209
6240
|
expected: "(Array<Record<string, Array<string>>> | undefined)",
|
6210
6241
|
value: input.security
|
6211
|
-
})) && input.security.map(((elem,
|
6212
|
-
path: _path + ".security[" +
|
6242
|
+
})) && input.security.map(((elem, _index135) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6243
|
+
path: _path + ".security[" + _index135 + "]",
|
6213
6244
|
expected: "Record<string, Array<string>>",
|
6214
6245
|
value: elem
|
6215
|
-
})) && _vo46(elem, _path + ".security[" +
|
6216
|
-
path: _path + ".security[" +
|
6246
|
+
})) && _vo46(elem, _path + ".security[" + _index135 + "]", _exceptionable) || _report(_exceptionable, {
|
6247
|
+
path: _path + ".security[" + _index135 + "]",
|
6217
6248
|
expected: "Record<string, Array<string>>",
|
6218
6249
|
value: elem
|
6219
6250
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6224,8 +6255,8 @@ class MigrateApplication {
|
|
6224
6255
|
path: _path + ".tags",
|
6225
6256
|
expected: "(Array<string> | undefined)",
|
6226
6257
|
value: input.tags
|
6227
|
-
})) && input.tags.map(((elem,
|
6228
|
-
path: _path + ".tags[" +
|
6258
|
+
})) && input.tags.map(((elem, _index136) => "string" === typeof elem || _report(_exceptionable, {
|
6259
|
+
path: _path + ".tags[" + _index136 + "]",
|
6229
6260
|
expected: "string",
|
6230
6261
|
value: elem
|
6231
6262
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6317,12 +6348,12 @@ class MigrateApplication {
|
|
6317
6348
|
path: _path + ".servers",
|
6318
6349
|
expected: "(Array<OpenApiV3_1.IServer> | undefined)",
|
6319
6350
|
value: input.servers
|
6320
|
-
})) && input.servers.map(((elem,
|
6321
|
-
path: _path + ".servers[" +
|
6351
|
+
})) && input.servers.map(((elem, _index137) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
6352
|
+
path: _path + ".servers[" + _index137 + "]",
|
6322
6353
|
expected: "OpenApiV3_1.IServer",
|
6323
6354
|
value: elem
|
6324
|
-
})) && _vo151(elem, _path + ".servers[" +
|
6325
|
-
path: _path + ".servers[" +
|
6355
|
+
})) && _vo151(elem, _path + ".servers[" + _index137 + "]", _exceptionable) || _report(_exceptionable, {
|
6356
|
+
path: _path + ".servers[" + _index137 + "]",
|
6326
6357
|
expected: "OpenApiV3_1.IServer",
|
6327
6358
|
value: elem
|
6328
6359
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6365,12 +6396,12 @@ class MigrateApplication {
|
|
6365
6396
|
path: _path + ".security",
|
6366
6397
|
expected: "(Array<Record<string, Array<string>>> | undefined)",
|
6367
6398
|
value: input.security
|
6368
|
-
})) && input.security.map(((elem,
|
6369
|
-
path: _path + ".security[" +
|
6399
|
+
})) && input.security.map(((elem, _index138) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6400
|
+
path: _path + ".security[" + _index138 + "]",
|
6370
6401
|
expected: "Record<string, Array<string>>",
|
6371
6402
|
value: elem
|
6372
|
-
})) && _vo46(elem, _path + ".security[" +
|
6373
|
-
path: _path + ".security[" +
|
6403
|
+
})) && _vo46(elem, _path + ".security[" + _index138 + "]", _exceptionable) || _report(_exceptionable, {
|
6404
|
+
path: _path + ".security[" + _index138 + "]",
|
6374
6405
|
expected: "Record<string, Array<string>>",
|
6375
6406
|
value: elem
|
6376
6407
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6381,12 +6412,12 @@ class MigrateApplication {
|
|
6381
6412
|
path: _path + ".tags",
|
6382
6413
|
expected: "(Array<OpenApiV3_1.IDocument.ITag> | undefined)",
|
6383
6414
|
value: input.tags
|
6384
|
-
})) && input.tags.map(((elem,
|
6385
|
-
path: _path + ".tags[" +
|
6415
|
+
})) && input.tags.map(((elem, _index139) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
6416
|
+
path: _path + ".tags[" + _index139 + "]",
|
6386
6417
|
expected: "OpenApiV3_1.IDocument.ITag",
|
6387
6418
|
value: elem
|
6388
|
-
})) && _vo209(elem, _path + ".tags[" +
|
6389
|
-
path: _path + ".tags[" +
|
6419
|
+
})) && _vo209(elem, _path + ".tags[" + _index139 + "]", _exceptionable) || _report(_exceptionable, {
|
6420
|
+
path: _path + ".tags[" + _index139 + "]",
|
6390
6421
|
expected: "OpenApiV3_1.IDocument.ITag",
|
6391
6422
|
value: elem
|
6392
6423
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6436,8 +6467,8 @@ class MigrateApplication {
|
|
6436
6467
|
path: _path + '["enum"]',
|
6437
6468
|
expected: "Array<> & MinItems<1>",
|
6438
6469
|
value: input["enum"]
|
6439
|
-
})) && input["enum"].map(((elem,
|
6440
|
-
path: _path + '["enum"][' +
|
6470
|
+
})) && input["enum"].map(((elem, _index140) => "string" === typeof elem || _report(_exceptionable, {
|
6471
|
+
path: _path + '["enum"][' + _index140 + "]",
|
6441
6472
|
expected: "string",
|
6442
6473
|
value: elem
|
6443
6474
|
}))).every((flag => flag))) || _report(_exceptionable, {
|
@@ -6594,8 +6625,8 @@ class MigrateApplication {
|
|
6594
6625
|
path: _path + ".type",
|
6595
6626
|
expected: 'Array<"string" | "number" | "boolean" | "object" | "null" | "integer" | "array">',
|
6596
6627
|
value: input.type
|
6597
|
-
})) && input.type.map(((elem,
|
6598
|
-
path: _path + ".type[" +
|
6628
|
+
})) && input.type.map(((elem, _index141) => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === elem || _report(_exceptionable, {
|
6629
|
+
path: _path + ".type[" + _index141 + "]",
|
6599
6630
|
expected: '("array" | "boolean" | "integer" | "null" | "number" | "object" | "string")',
|
6600
6631
|
value: elem
|
6601
6632
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6694,12 +6725,12 @@ class MigrateApplication {
|
|
6694
6725
|
path: _path + ".items",
|
6695
6726
|
expected: "(Array<OpenApiV3_1.IJsonSchema> | OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
6696
6727
|
value: input.items
|
6697
|
-
})) && (undefined === input.items || (Array.isArray(input.items) && input.items.map(((elem,
|
6698
|
-
path: _path + ".items[" +
|
6728
|
+
})) && (undefined === input.items || (Array.isArray(input.items) && input.items.map(((elem, _index142) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6729
|
+
path: _path + ".items[" + _index142 + "]",
|
6699
6730
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6700
6731
|
value: elem
|
6701
|
-
})) && _vu7(elem, _path + ".items[" +
|
6702
|
-
path: _path + ".items[" +
|
6732
|
+
})) && _vu7(elem, _path + ".items[" + _index142 + "]", _exceptionable) || _report(_exceptionable, {
|
6733
|
+
path: _path + ".items[" + _index142 + "]",
|
6703
6734
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6704
6735
|
value: elem
|
6705
6736
|
}))).every((flag => flag)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _vu7(input.items, _path + ".items", _exceptionable) || _report(_exceptionable, {
|
@@ -6734,12 +6765,12 @@ class MigrateApplication {
|
|
6734
6765
|
path: _path + ".prefixItems",
|
6735
6766
|
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
6736
6767
|
value: input.prefixItems
|
6737
|
-
})) && input.prefixItems.map(((elem,
|
6738
|
-
path: _path + ".prefixItems[" +
|
6768
|
+
})) && input.prefixItems.map(((elem, _index143) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6769
|
+
path: _path + ".prefixItems[" + _index143 + "]",
|
6739
6770
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6740
6771
|
value: elem
|
6741
|
-
})) && _vu7(elem, _path + ".prefixItems[" +
|
6742
|
-
path: _path + ".prefixItems[" +
|
6772
|
+
})) && _vu7(elem, _path + ".prefixItems[" + _index143 + "]", _exceptionable) || _report(_exceptionable, {
|
6773
|
+
path: _path + ".prefixItems[" + _index143 + "]",
|
6743
6774
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6744
6775
|
value: elem
|
6745
6776
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6782,8 +6813,8 @@ class MigrateApplication {
|
|
6782
6813
|
path: _path + ".required",
|
6783
6814
|
expected: "(Array<string> | undefined)",
|
6784
6815
|
value: input.required
|
6785
|
-
})) && input.required.map(((elem,
|
6786
|
-
path: _path + ".required[" +
|
6816
|
+
})) && input.required.map(((elem, _index144) => "string" === typeof elem || _report(_exceptionable, {
|
6817
|
+
path: _path + ".required[" + _index144 + "]",
|
6787
6818
|
expected: "string",
|
6788
6819
|
value: elem
|
6789
6820
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6802,12 +6833,12 @@ class MigrateApplication {
|
|
6802
6833
|
path: _path + ".oneOf",
|
6803
6834
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
6804
6835
|
value: input.oneOf
|
6805
|
-
})) && input.oneOf.map(((elem,
|
6806
|
-
path: _path + ".oneOf[" +
|
6836
|
+
})) && input.oneOf.map(((elem, _index145) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6837
|
+
path: _path + ".oneOf[" + _index145 + "]",
|
6807
6838
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6808
6839
|
value: elem
|
6809
|
-
})) && _vu7(elem, _path + ".oneOf[" +
|
6810
|
-
path: _path + ".oneOf[" +
|
6840
|
+
})) && _vu7(elem, _path + ".oneOf[" + _index145 + "]", _exceptionable) || _report(_exceptionable, {
|
6841
|
+
path: _path + ".oneOf[" + _index145 + "]",
|
6811
6842
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6812
6843
|
value: elem
|
6813
6844
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6826,12 +6857,12 @@ class MigrateApplication {
|
|
6826
6857
|
path: _path + ".anyOf",
|
6827
6858
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
6828
6859
|
value: input.anyOf
|
6829
|
-
})) && input.anyOf.map(((elem,
|
6830
|
-
path: _path + ".anyOf[" +
|
6860
|
+
})) && input.anyOf.map(((elem, _index146) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6861
|
+
path: _path + ".anyOf[" + _index146 + "]",
|
6831
6862
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6832
6863
|
value: elem
|
6833
|
-
})) && _vu7(elem, _path + ".anyOf[" +
|
6834
|
-
path: _path + ".anyOf[" +
|
6864
|
+
})) && _vu7(elem, _path + ".anyOf[" + _index146 + "]", _exceptionable) || _report(_exceptionable, {
|
6865
|
+
path: _path + ".anyOf[" + _index146 + "]",
|
6835
6866
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6836
6867
|
value: elem
|
6837
6868
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6842,12 +6873,12 @@ class MigrateApplication {
|
|
6842
6873
|
path: _path + ".allOf",
|
6843
6874
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
6844
6875
|
value: input.allOf
|
6845
|
-
})) && input.allOf.map(((elem,
|
6846
|
-
path: _path + ".allOf[" +
|
6876
|
+
})) && input.allOf.map(((elem, _index147) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6877
|
+
path: _path + ".allOf[" + _index147 + "]",
|
6847
6878
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6848
6879
|
value: elem
|
6849
|
-
})) && _vu7(elem, _path + ".allOf[" +
|
6850
|
-
path: _path + ".allOf[" +
|
6880
|
+
})) && _vu7(elem, _path + ".allOf[" + _index147 + "]", _exceptionable) || _report(_exceptionable, {
|
6881
|
+
path: _path + ".allOf[" + _index147 + "]",
|
6851
6882
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6852
6883
|
value: elem
|
6853
6884
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6892,8 +6923,8 @@ class MigrateApplication {
|
|
6892
6923
|
path: _path + '["enum"]',
|
6893
6924
|
expected: "(Array<boolean | null> | undefined)",
|
6894
6925
|
value: input["enum"]
|
6895
|
-
})) && input["enum"].map(((elem,
|
6896
|
-
path: _path + '["enum"][' +
|
6926
|
+
})) && input["enum"].map(((elem, _index148) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
|
6927
|
+
path: _path + '["enum"][' + _index148 + "]",
|
6897
6928
|
expected: "(boolean | null)",
|
6898
6929
|
value: elem
|
6899
6930
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -6941,8 +6972,8 @@ class MigrateApplication {
|
|
6941
6972
|
path: _path + '["enum"]',
|
6942
6973
|
expected: "(Array<number | null> | undefined)",
|
6943
6974
|
value: input["enum"]
|
6944
|
-
})) && input["enum"].map(((elem,
|
6945
|
-
path: _path + '["enum"][' +
|
6975
|
+
})) && input["enum"].map(((elem, _index149) => null === elem || "number" === typeof elem || _report(_exceptionable, {
|
6976
|
+
path: _path + '["enum"][' + _index149 + "]",
|
6946
6977
|
expected: "(null | number)",
|
6947
6978
|
value: elem
|
6948
6979
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7030,8 +7061,8 @@ class MigrateApplication {
|
|
7030
7061
|
path: _path + '["enum"]',
|
7031
7062
|
expected: "(Array<number | null> | undefined)",
|
7032
7063
|
value: input["enum"]
|
7033
|
-
})) && input["enum"].map(((elem,
|
7034
|
-
path: _path + '["enum"][' +
|
7064
|
+
})) && input["enum"].map(((elem, _index150) => null === elem || "number" === typeof elem || _report(_exceptionable, {
|
7065
|
+
path: _path + '["enum"][' + _index150 + "]",
|
7035
7066
|
expected: "(null | number)",
|
7036
7067
|
value: elem
|
7037
7068
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7103,8 +7134,8 @@ class MigrateApplication {
|
|
7103
7134
|
path: _path + '["enum"]',
|
7104
7135
|
expected: "(Array<string | null> | undefined)",
|
7105
7136
|
value: input["enum"]
|
7106
|
-
})) && input["enum"].map(((elem,
|
7107
|
-
path: _path + '["enum"][' +
|
7137
|
+
})) && input["enum"].map(((elem, _index151) => null === elem || "string" === typeof elem || _report(_exceptionable, {
|
7138
|
+
path: _path + '["enum"][' + _index151 + "]",
|
7108
7139
|
expected: "(null | string)",
|
7109
7140
|
value: elem
|
7110
7141
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7168,12 +7199,12 @@ class MigrateApplication {
|
|
7168
7199
|
path: _path + ".items",
|
7169
7200
|
expected: "(Array<OpenApiV3_1.IJsonSchema> | OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
7170
7201
|
value: input.items
|
7171
|
-
})) && (undefined === input.items || (Array.isArray(input.items) && input.items.map(((elem,
|
7172
|
-
path: _path + ".items[" +
|
7202
|
+
})) && (undefined === input.items || (Array.isArray(input.items) && input.items.map(((elem, _index152) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
7203
|
+
path: _path + ".items[" + _index152 + "]",
|
7173
7204
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7174
7205
|
value: elem
|
7175
|
-
})) && _vu7(elem, _path + ".items[" +
|
7176
|
-
path: _path + ".items[" +
|
7206
|
+
})) && _vu7(elem, _path + ".items[" + _index152 + "]", _exceptionable) || _report(_exceptionable, {
|
7207
|
+
path: _path + ".items[" + _index152 + "]",
|
7177
7208
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7178
7209
|
value: elem
|
7179
7210
|
}))).every((flag => flag)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _vu7(input.items, _path + ".items", _exceptionable) || _report(_exceptionable, {
|
@@ -7188,12 +7219,12 @@ class MigrateApplication {
|
|
7188
7219
|
path: _path + ".prefixItems",
|
7189
7220
|
expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
|
7190
7221
|
value: input.prefixItems
|
7191
|
-
})) && input.prefixItems.map(((elem,
|
7192
|
-
path: _path + ".prefixItems[" +
|
7222
|
+
})) && input.prefixItems.map(((elem, _index153) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
7223
|
+
path: _path + ".prefixItems[" + _index153 + "]",
|
7193
7224
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7194
7225
|
value: elem
|
7195
|
-
})) && _vu7(elem, _path + ".prefixItems[" +
|
7196
|
-
path: _path + ".prefixItems[" +
|
7226
|
+
})) && _vu7(elem, _path + ".prefixItems[" + _index153 + "]", _exceptionable) || _report(_exceptionable, {
|
7227
|
+
path: _path + ".prefixItems[" + _index153 + "]",
|
7197
7228
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7198
7229
|
value: elem
|
7199
7230
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7273,8 +7304,8 @@ class MigrateApplication {
|
|
7273
7304
|
path: _path + ".required",
|
7274
7305
|
expected: "(Array<string> | undefined)",
|
7275
7306
|
value: input.required
|
7276
|
-
})) && input.required.map(((elem,
|
7277
|
-
path: _path + ".required[" +
|
7307
|
+
})) && input.required.map(((elem, _index154) => "string" === typeof elem || _report(_exceptionable, {
|
7308
|
+
path: _path + ".required[" + _index154 + "]",
|
7278
7309
|
expected: "string",
|
7279
7310
|
value: elem
|
7280
7311
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7421,12 +7452,12 @@ class MigrateApplication {
|
|
7421
7452
|
path: _path + ".allOf",
|
7422
7453
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
7423
7454
|
value: input.allOf
|
7424
|
-
})) && input.allOf.map(((elem,
|
7425
|
-
path: _path + ".allOf[" +
|
7455
|
+
})) && input.allOf.map(((elem, _index155) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
7456
|
+
path: _path + ".allOf[" + _index155 + "]",
|
7426
7457
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7427
7458
|
value: elem
|
7428
|
-
})) && _vu7(elem, _path + ".allOf[" +
|
7429
|
-
path: _path + ".allOf[" +
|
7459
|
+
})) && _vu7(elem, _path + ".allOf[" + _index155 + "]", _exceptionable) || _report(_exceptionable, {
|
7460
|
+
path: _path + ".allOf[" + _index155 + "]",
|
7430
7461
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7431
7462
|
value: elem
|
7432
7463
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7458,12 +7489,12 @@ class MigrateApplication {
|
|
7458
7489
|
path: _path + ".anyOf",
|
7459
7490
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
7460
7491
|
value: input.anyOf
|
7461
|
-
})) && input.anyOf.map(((elem,
|
7462
|
-
path: _path + ".anyOf[" +
|
7492
|
+
})) && input.anyOf.map(((elem, _index156) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
7493
|
+
path: _path + ".anyOf[" + _index156 + "]",
|
7463
7494
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7464
7495
|
value: elem
|
7465
|
-
})) && _vu7(elem, _path + ".anyOf[" +
|
7466
|
-
path: _path + ".anyOf[" +
|
7496
|
+
})) && _vu7(elem, _path + ".anyOf[" + _index156 + "]", _exceptionable) || _report(_exceptionable, {
|
7497
|
+
path: _path + ".anyOf[" + _index156 + "]",
|
7467
7498
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7468
7499
|
value: elem
|
7469
7500
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7495,12 +7526,12 @@ class MigrateApplication {
|
|
7495
7526
|
path: _path + ".oneOf",
|
7496
7527
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
7497
7528
|
value: input.oneOf
|
7498
|
-
})) && input.oneOf.map(((elem,
|
7499
|
-
path: _path + ".oneOf[" +
|
7529
|
+
})) && input.oneOf.map(((elem, _index157) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
7530
|
+
path: _path + ".oneOf[" + _index157 + "]",
|
7500
7531
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7501
7532
|
value: elem
|
7502
|
-
})) && _vu7(elem, _path + ".oneOf[" +
|
7503
|
-
path: _path + ".oneOf[" +
|
7533
|
+
})) && _vu7(elem, _path + ".oneOf[" + _index157 + "]", _exceptionable) || _report(_exceptionable, {
|
7534
|
+
path: _path + ".oneOf[" + _index157 + "]",
|
7504
7535
|
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7505
7536
|
value: elem
|
7506
7537
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7566,12 +7597,12 @@ class MigrateApplication {
|
|
7566
7597
|
path: _path + ".parameters",
|
7567
7598
|
expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>>.o1 | undefined)",
|
7568
7599
|
value: input.parameters
|
7569
|
-
})) && input.parameters.map(((elem,
|
7570
|
-
path: _path + ".parameters[" +
|
7600
|
+
})) && input.parameters.map(((elem, _index158) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
7601
|
+
path: _path + ".parameters[" + _index158 + "]",
|
7571
7602
|
expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3_1.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3_1.IOperation.IParameter)",
|
7572
7603
|
value: elem
|
7573
|
-
})) && _vu8(elem, _path + ".parameters[" +
|
7574
|
-
path: _path + ".parameters[" +
|
7604
|
+
})) && _vu8(elem, _path + ".parameters[" + _index158 + "]", _exceptionable) || _report(_exceptionable, {
|
7605
|
+
path: _path + ".parameters[" + _index158 + "]",
|
7575
7606
|
expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3_1.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3_1.IOperation.IParameter)",
|
7576
7607
|
value: elem
|
7577
7608
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7582,12 +7613,12 @@ class MigrateApplication {
|
|
7582
7613
|
path: _path + ".servers",
|
7583
7614
|
expected: "(Array<OpenApiV3_1.IServer> | undefined)",
|
7584
7615
|
value: input.servers
|
7585
|
-
})) && input.servers.map(((elem,
|
7586
|
-
path: _path + ".servers[" +
|
7616
|
+
})) && input.servers.map(((elem, _index159) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
7617
|
+
path: _path + ".servers[" + _index159 + "]",
|
7587
7618
|
expected: "OpenApiV3_1.IServer",
|
7588
7619
|
value: elem
|
7589
|
-
})) && _vo151(elem, _path + ".servers[" +
|
7590
|
-
path: _path + ".servers[" +
|
7620
|
+
})) && _vo151(elem, _path + ".servers[" + _index159 + "]", _exceptionable) || _report(_exceptionable, {
|
7621
|
+
path: _path + ".servers[" + _index159 + "]",
|
7591
7622
|
expected: "OpenApiV3_1.IServer",
|
7592
7623
|
value: elem
|
7593
7624
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7809,12 +7840,12 @@ class MigrateApplication {
|
|
7809
7840
|
path: _path + ".parameters",
|
7810
7841
|
expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>>.o1 | undefined)",
|
7811
7842
|
value: input.parameters
|
7812
|
-
})) && input.parameters.map(((elem,
|
7813
|
-
path: _path + ".parameters[" +
|
7843
|
+
})) && input.parameters.map(((elem, _index160) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
7844
|
+
path: _path + ".parameters[" + _index160 + "]",
|
7814
7845
|
expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3_1.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3_1.IOperation.IParameter)",
|
7815
7846
|
value: elem
|
7816
|
-
})) && _vu8(elem, _path + ".parameters[" +
|
7817
|
-
path: _path + ".parameters[" +
|
7847
|
+
})) && _vu8(elem, _path + ".parameters[" + _index160 + "]", _exceptionable) || _report(_exceptionable, {
|
7848
|
+
path: _path + ".parameters[" + _index160 + "]",
|
7818
7849
|
expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3_1.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3_1.IOperation.IParameter)",
|
7819
7850
|
value: elem
|
7820
7851
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7841,12 +7872,12 @@ class MigrateApplication {
|
|
7841
7872
|
path: _path + ".servers",
|
7842
7873
|
expected: "(Array<OpenApiV3_1.IServer> | undefined)",
|
7843
7874
|
value: input.servers
|
7844
|
-
})) && input.servers.map(((elem,
|
7845
|
-
path: _path + ".servers[" +
|
7875
|
+
})) && input.servers.map(((elem, _index161) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
7876
|
+
path: _path + ".servers[" + _index161 + "]",
|
7846
7877
|
expected: "OpenApiV3_1.IServer",
|
7847
7878
|
value: elem
|
7848
|
-
})) && _vo151(elem, _path + ".servers[" +
|
7849
|
-
path: _path + ".servers[" +
|
7879
|
+
})) && _vo151(elem, _path + ".servers[" + _index161 + "]", _exceptionable) || _report(_exceptionable, {
|
7880
|
+
path: _path + ".servers[" + _index161 + "]",
|
7850
7881
|
expected: "OpenApiV3_1.IServer",
|
7851
7882
|
value: elem
|
7852
7883
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7865,12 +7896,12 @@ class MigrateApplication {
|
|
7865
7896
|
path: _path + ".security",
|
7866
7897
|
expected: "(Array<Record<string, Array<string>>> | undefined)",
|
7867
7898
|
value: input.security
|
7868
|
-
})) && input.security.map(((elem,
|
7869
|
-
path: _path + ".security[" +
|
7899
|
+
})) && input.security.map(((elem, _index162) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
7900
|
+
path: _path + ".security[" + _index162 + "]",
|
7870
7901
|
expected: "Record<string, Array<string>>",
|
7871
7902
|
value: elem
|
7872
|
-
})) && _vo46(elem, _path + ".security[" +
|
7873
|
-
path: _path + ".security[" +
|
7903
|
+
})) && _vo46(elem, _path + ".security[" + _index162 + "]", _exceptionable) || _report(_exceptionable, {
|
7904
|
+
path: _path + ".security[" + _index162 + "]",
|
7874
7905
|
expected: "Record<string, Array<string>>",
|
7875
7906
|
value: elem
|
7876
7907
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -7881,8 +7912,8 @@ class MigrateApplication {
|
|
7881
7912
|
path: _path + ".tags",
|
7882
7913
|
expected: "(Array<string> | undefined)",
|
7883
7914
|
value: input.tags
|
7884
|
-
})) && input.tags.map(((elem,
|
7885
|
-
path: _path + ".tags[" +
|
7915
|
+
})) && input.tags.map(((elem, _index163) => "string" === typeof elem || _report(_exceptionable, {
|
7916
|
+
path: _path + ".tags[" + _index163 + "]",
|
7886
7917
|
expected: "string",
|
7887
7918
|
value: elem
|
7888
7919
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
@@ -8383,7 +8414,7 @@ class MigrateApplication {
|
|
8383
8414
|
});
|
8384
8415
|
})();
|
8385
8416
|
const _vu7 = (input, _path, _exceptionable = true) => (() => {
|
8386
|
-
if (Array.isArray(input.type) && input.type.map(((elem,
|
8417
|
+
if (Array.isArray(input.type) && input.type.map(((elem, _index164) => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === elem)).every((flag => flag))) return _vo159(input, _path, _exceptionable); else if ("boolean" === input.type) return _vo161(input, _path, _exceptionable); else if ("number" === input.type) return _vo163(input, _path, _exceptionable); else if ("integer" === input.type) return _vo162(input, _path, _exceptionable); else if ("string" === input.type) return _vo164(input, _path, _exceptionable); else if ("array" === input.type) return _vo165(input, _path, _exceptionable); else if ("object" === input.type) return _vo166(input, _path, _exceptionable); else if ("null" === input.type) return _vo169(input, _path, _exceptionable); else return (() => {
|
8387
8418
|
if (undefined !== input["const"]) return _vo160(input, _path, _exceptionable); else if (undefined !== input.$ref) return _vo167(input, _path, _exceptionable); else if (undefined !== input.allOf) return _vo170(input, _path, _exceptionable); else if (undefined !== input.anyOf) return _vo171(input, _path, _exceptionable); else if (undefined !== input.oneOf) return _vo172(input, _path, _exceptionable); else return _vo168(input, _path, _exceptionable);
|
8388
8419
|
})();
|
8389
8420
|
})();
|
@@ -8509,7 +8540,7 @@ class MigrateApplication {
|
|
8509
8540
|
};
|
8510
8541
|
}
|
8511
8542
|
nest(config) {
|
8512
|
-
const program =
|
8543
|
+
const program = MigrateApplicationAnalyzer.analyze({
|
8513
8544
|
mode: "nest",
|
8514
8545
|
document: this.document,
|
8515
8546
|
simulate: config.simulate,
|
@@ -8523,7 +8554,7 @@ class MigrateApplication {
|
|
8523
8554
|
return this.finalize(config, output);
|
8524
8555
|
}
|
8525
8556
|
sdk(config) {
|
8526
|
-
const program =
|
8557
|
+
const program = MigrateApplicationAnalyzer.analyze({
|
8527
8558
|
mode: "sdk",
|
8528
8559
|
document: this.document,
|
8529
8560
|
simulate: config.simulate,
|
@@ -8570,14 +8601,14 @@ var MigrateFileArchiver;
|
|
8570
8601
|
|
8571
8602
|
var migrate = Object.freeze({
|
8572
8603
|
__proto__: null,
|
8573
|
-
get MigrateAnalyzer() {
|
8574
|
-
return MigrateAnalyzer;
|
8575
|
-
},
|
8576
8604
|
MigrateApplication,
|
8605
|
+
get MigrateApplicationAnalyzer() {
|
8606
|
+
return MigrateApplicationAnalyzer;
|
8607
|
+
},
|
8577
8608
|
get MigrateFileArchiver() {
|
8578
8609
|
return MigrateFileArchiver;
|
8579
8610
|
}
|
8580
8611
|
});
|
8581
8612
|
|
8582
|
-
export {
|
8613
|
+
export { MigrateApplication, MigrateApplicationAnalyzer, MigrateFileArchiver, migrate as default };
|
8583
8614
|
//# sourceMappingURL=index.mjs.map
|