@nestia/migrate 4.4.2 → 4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/lib/MigrateApplication.js +285 -269
  2. package/lib/MigrateApplication.js.map +1 -1
  3. package/lib/analyzers/{MigrateAnalyzer.d.ts → MigrateApplicationAnalyzer.d.ts} +1 -1
  4. package/lib/analyzers/MigrateApplicationAnalyzer.js +12 -0
  5. package/lib/analyzers/MigrateApplicationAnalyzer.js.map +1 -0
  6. package/lib/analyzers/MigrateControllerAnalyzer.d.ts +3 -1
  7. package/lib/analyzers/MigrateControllerAnalyzer.js +34 -24
  8. package/lib/analyzers/MigrateControllerAnalyzer.js.map +1 -1
  9. package/lib/bundles/NEST_TEMPLATE.js +2 -2
  10. package/lib/bundles/SDK_TEMPLATE.js +1 -1
  11. package/lib/index.mjs +335 -302
  12. package/lib/index.mjs.map +1 -1
  13. package/lib/module.d.ts +1 -1
  14. package/lib/module.js +1 -1
  15. package/lib/module.js.map +1 -1
  16. package/lib/programmers/MigrateNestControllerProgrammer.js +1 -1
  17. package/lib/programmers/MigrateNestControllerProgrammer.js.map +1 -1
  18. package/lib/programmers/MigrateNestMethodProgrammer.d.ts +2 -1
  19. package/lib/programmers/MigrateNestMethodProgrammer.js +14 -4
  20. package/lib/programmers/MigrateNestMethodProgrammer.js.map +1 -1
  21. package/lib/programmers/MigrateNestProgrammer.js +3 -1
  22. package/lib/programmers/MigrateNestProgrammer.js.map +1 -1
  23. package/package.json +4 -4
  24. package/src/MigrateApplication.ts +3 -3
  25. package/src/analyzers/{MigrateAnalyzer.ts → MigrateApplicationAnalyzer.ts} +1 -1
  26. package/src/analyzers/MigrateControllerAnalyzer.ts +41 -30
  27. package/src/bundles/NEST_TEMPLATE.ts +2 -2
  28. package/src/bundles/SDK_TEMPLATE.ts +1 -1
  29. package/src/module.ts +1 -1
  30. package/src/programmers/MigrateNestControllerProgrammer.ts +1 -1
  31. package/src/programmers/MigrateNestMethodProgrammer.ts +24 -2
  32. package/src/programmers/MigrateNestProgrammer.ts +3 -1
  33. package/lib/analyzers/MigrateAnalyzer.js +0 -12
  34. 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 MigrateAnalyzer;
27
+ var MigrateApplicationAnalyzer;
28
28
 
29
- (function(MigrateAnalyzer) {
30
- MigrateAnalyzer.analyze = props => {
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
- })(MigrateAnalyzer || (MigrateAnalyzer = {}));
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.4.2",\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.4.2",\n "@nestia/fetcher": "^4.4.2",\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.4.1",\n "uuid": "^9.0.0"\n },\n "stackblitz": {\n "startCommand": "npm run prepare && npm run build:test && npm run test"\n }\n}'
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.1",\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.1",\n "@nestia/fetcher": "^4.5.1",\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.4.2",\n "tgrid": "^1.1.0",\n "typia": "^7.4.1"\n }\n}'
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.1",\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.4.2",\n "tgrid": "^1.1.0",\n "typia": "^7.4.1"\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}'
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.1",\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,33 +843,46 @@ var MigrateE2eProgrammer;
843
843
  var MigrateControllerAnalyzer;
844
844
 
845
845
  (function(MigrateControllerAnalyzer) {
846
- MigrateControllerAnalyzer.analyze = routes => {
847
- const endpoints = new Map;
848
- for (const r of routes) {
849
- const location = r.emendedPath.split("/").filter((s => s[0] !== ":")).join("/");
850
- MapUtil.take(endpoints)(location)((() => [])).push(r);
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: "src/controllers/" + location,
859
- routes
860
- };
861
- }));
862
- for (const c of total) if (c.name === "Controller") c.name = StringUtil.escapeDuplicate([ ...total.map((c => c.name)) ])("AppController");
863
- return total;
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) {
870
- MigrateNestMethodProgrammer.write = components => importer => route => {
883
+ MigrateNestMethodProgrammer.write = components => importer => controller => route => {
871
884
  const output = route.success ? MigrateSchemaProgrammer.write(components)(importer)(route.success.schema) : TypeFactory.keyword("void");
872
- const method = ts.factory.createMethodDeclaration([ ...writeMethodDecorators(components)(importer)(route), ts.factory.createToken(ts.SyntaxKind.PublicKeyword), ts.factory.createToken(ts.SyntaxKind.AsyncKeyword) ], undefined, route.accessor.at(-1), undefined, undefined, writeParameters(components)(importer)(route), ts.factory.createTypeReferenceNode("Promise", [ output ]), ts.factory.createBlock([ ...[ ...route.parameters.map((p => p.key)), ...route.headers ? [ "headers" ] : [], ...route.query ? [ "query" ] : [], ...route.body ? [ "body" ] : [] ].map((str => ts.factory.createExpressionStatement(ts.factory.createIdentifier(str)))), ts.factory.createReturnStatement(ts.factory.createCallExpression(IdentifierFactory.access(ts.factory.createIdentifier(importer.external({
885
+ const method = ts.factory.createMethodDeclaration([ ...writeMethodDecorators(components)(importer)(controller)(route), ts.factory.createToken(ts.SyntaxKind.PublicKeyword), ts.factory.createToken(ts.SyntaxKind.AsyncKeyword) ], undefined, route.accessor.at(-1), undefined, undefined, writeParameters(components)(importer)(route), ts.factory.createTypeReferenceNode("Promise", [ output ]), ts.factory.createBlock([ ...[ ...route.parameters.map((p => p.key)), ...route.headers ? [ "headers" ] : [], ...route.query ? [ "query" ] : [], ...route.body ? [ "body" ] : [] ].map((str => ts.factory.createExpressionStatement(ts.factory.createIdentifier(str)))), ts.factory.createReturnStatement(ts.factory.createCallExpression(IdentifierFactory.access(ts.factory.createIdentifier(importer.external({
873
886
  type: "default",
874
887
  library: "typia",
875
888
  name: "typia"
@@ -877,7 +890,7 @@ var MigrateNestMethodProgrammer;
877
890
  return FilePrinter.description(method, writeDescription(route));
878
891
  };
879
892
  const writeDescription = method => [ method.comment(), "@nestia Generated by Nestia - https://github.com/samchon/nestia" ].join("\n");
880
- const writeMethodDecorators = components => importer => route => {
893
+ const writeMethodDecorators = components => importer => controller => route => {
881
894
  const external = lib => instance => ts.factory.createIdentifier(importer.external({
882
895
  type: "instance",
883
896
  library: lib,
@@ -885,7 +898,9 @@ var MigrateNestMethodProgrammer;
885
898
  }));
886
899
  const decorators = [];
887
900
  if (route.success) decorators.push(...writeExampleDecorators("Response")(importer)(route.success.media()));
888
- const router = instance => ts.factory.createDecorator(ts.factory.createCallExpression(IdentifierFactory.access(external("@nestia/core")(instance), StringUtil.capitalize(route.method)), [], [ ts.factory.createStringLiteral(route.path) ]));
901
+ if (route.operation()["x-samchon-human"] === true) decorators.push(ts.factory.createDecorator(ts.factory.createCallExpression(external("@nestia/core")("HumanRoute"), undefined, undefined)));
902
+ const localPath = route.emendedPath.slice(controller.path.length).split("/").filter((str => !!str.length)).join("/");
903
+ const router = instance => ts.factory.createDecorator(ts.factory.createCallExpression(IdentifierFactory.access(external("@nestia/core")(instance), StringUtil.capitalize(route.method)), [], localPath.length ? [ ts.factory.createStringLiteral(localPath) ] : undefined));
889
904
  if (route.success?.["x-nestia-encrypted"]) decorators.push(router("EncryptedRoute")); else if (route.success?.type === "text/plain") decorators.push(ts.factory.createDecorator(ts.factory.createCallExpression(external("@nestjs/common")(StringUtil.capitalize(route.method)), [], [ ts.factory.createStringLiteral(route.path) ]))); else if (route.success?.type === "application/x-www-form-urlencoded") decorators.push(router("TypedQuery")); else if (route.method === "head") decorators.push(ts.factory.createDecorator(ts.factory.createCallExpression(external("@nestjs/common")("Head"), [], [ ts.factory.createStringLiteral(route.path) ]))); else if (route.success === null || route.success?.type === "application/json") decorators.push(router("TypedRoute"));
890
905
  for (const [key, value] of Object.entries(route.exceptions ?? {})) decorators.push(ts.factory.createDecorator(ts.factory.createCallExpression(external("@nestia/core")("TypedException"), [ MigrateSchemaProgrammer.write(components)(importer)(value.schema) ], [ isNaN(Number(key)) ? ts.factory.createStringLiteral(key) : ExpressionFactory.number(Number(key)), ...value.response().description?.length ? [ ts.factory.createStringLiteral(value.response().description) ] : [] ])));
891
906
  return decorators;
@@ -954,7 +969,7 @@ var MigrateNestControllerProgrammer;
954
969
  type: "instance",
955
970
  library: "@nestjs/common",
956
971
  name: "Controller"
957
- })), [], [ ts.factory.createStringLiteral(controller.path) ])), ts.factory.createToken(ts.SyntaxKind.ExportKeyword) ], controller.name, [], [], controller.routes.map(MigrateNestMethodProgrammer.write(components)(importer)));
972
+ })), [], [ ts.factory.createStringLiteral(controller.path) ])), ts.factory.createToken(ts.SyntaxKind.ExportKeyword) ], controller.name, [], [], controller.routes.map(MigrateNestMethodProgrammer.write(components)(importer)(controller)));
958
973
  return [ ...importer.toStatements((ref => `${"../".repeat(StringUtil.splitWithNormalization(controller.location).length - 1)}api/structures/${ref}`)), ...importer.empty() ? [] : [ FilePrinter.newLine() ], $class ];
959
974
  };
960
975
  })(MigrateNestControllerProgrammer || (MigrateNestControllerProgrammer = {}));
@@ -971,7 +986,9 @@ var MigrateNestProgrammer;
971
986
 
972
987
  (function(MigrateNestProgrammer) {
973
988
  MigrateNestProgrammer.write = program => {
974
- const controllers = MigrateControllerAnalyzer.analyze(program.routes);
989
+ const controllers = MigrateControllerAnalyzer.analyze({
990
+ routes: program.routes
991
+ });
975
992
  return [ {
976
993
  location: "src",
977
994
  file: "MyModule.ts",
@@ -1076,7 +1093,7 @@ class MigrateApplication {
1076
1093
  return "object" === typeof value && null !== value && false === Array.isArray(value) && _io35(value);
1077
1094
  }));
1078
1095
  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"]);
1096
+ 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
1097
  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
1098
  const _io38 = input => Object.keys(input).every((key => {
1082
1099
  const value = input[key];
@@ -1233,7 +1250,7 @@ class MigrateApplication {
1233
1250
  if (undefined === value) return true;
1234
1251
  return "object" === typeof value && null !== value && _iu14(value);
1235
1252
  }));
1236
- const _io124 = input => (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io120(input.examples)) && (undefined === input.required || "boolean" === typeof input.required) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu5(input.schema)) && (undefined === input.name || "string" === typeof input.name);
1253
+ const _io124 = input => (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io120(input.examples)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu5(input.schema));
1237
1254
  const _io125 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
1238
1255
  const _io126 = input => Object.keys(input).every((key => {
1239
1256
  const value = input[key];
@@ -1355,7 +1372,7 @@ class MigrateApplication {
1355
1372
  if (undefined === value) return true;
1356
1373
  return "object" === typeof value && null !== value && _iu21(value);
1357
1374
  }));
1358
- const _io190 = input => (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io177(input.examples)) && (undefined === input.required || "boolean" === typeof input.required) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.name || "string" === typeof input.name);
1375
+ const _io190 = input => (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io177(input.examples)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema));
1359
1376
  const _io191 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
1360
1377
  const _io192 = input => Object.keys(input).every((key => {
1361
1378
  const value = input[key];
@@ -1498,12 +1515,12 @@ class MigrateApplication {
1498
1515
  path: _path + ".servers",
1499
1516
  expected: "(Array<OpenApi.IServer> | undefined)",
1500
1517
  value: input.servers
1501
- })) && input.servers.map(((elem, _index82) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1502
- path: _path + ".servers[" + _index82 + "]",
1518
+ })) && input.servers.map(((elem, _index83) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1519
+ path: _path + ".servers[" + _index83 + "]",
1503
1520
  expected: "OpenApi.IServer",
1504
1521
  value: elem
1505
- })) && _vo1(elem, _path + ".servers[" + _index82 + "]", _exceptionable) || _report(_exceptionable, {
1506
- path: _path + ".servers[" + _index82 + "]",
1522
+ })) && _vo1(elem, _path + ".servers[" + _index83 + "]", _exceptionable) || _report(_exceptionable, {
1523
+ path: _path + ".servers[" + _index83 + "]",
1507
1524
  expected: "OpenApi.IServer",
1508
1525
  value: elem
1509
1526
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -1546,12 +1563,12 @@ class MigrateApplication {
1546
1563
  path: _path + ".security",
1547
1564
  expected: "(Array<Record<string, Array<string>>> | undefined)",
1548
1565
  value: input.security
1549
- })) && input.security.map(((elem, _index83) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
1550
- path: _path + ".security[" + _index83 + "]",
1566
+ })) && input.security.map(((elem, _index84) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
1567
+ path: _path + ".security[" + _index84 + "]",
1551
1568
  expected: "Record<string, Array<string>>",
1552
1569
  value: elem
1553
- })) && _vo46(elem, _path + ".security[" + _index83 + "]", _exceptionable) || _report(_exceptionable, {
1554
- path: _path + ".security[" + _index83 + "]",
1570
+ })) && _vo46(elem, _path + ".security[" + _index84 + "]", _exceptionable) || _report(_exceptionable, {
1571
+ path: _path + ".security[" + _index84 + "]",
1555
1572
  expected: "Record<string, Array<string>>",
1556
1573
  value: elem
1557
1574
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -1562,12 +1579,12 @@ class MigrateApplication {
1562
1579
  path: _path + ".tags",
1563
1580
  expected: "(Array<OpenApi.IDocument.ITag> | undefined)",
1564
1581
  value: input.tags
1565
- })) && input.tags.map(((elem, _index84) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1566
- path: _path + ".tags[" + _index84 + "]",
1582
+ })) && input.tags.map(((elem, _index85) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
1583
+ path: _path + ".tags[" + _index85 + "]",
1567
1584
  expected: "OpenApi.IDocument.ITag",
1568
1585
  value: elem
1569
- })) && _vo47(elem, _path + ".tags[" + _index84 + "]", _exceptionable) || _report(_exceptionable, {
1570
- path: _path + ".tags[" + _index84 + "]",
1586
+ })) && _vo47(elem, _path + ".tags[" + _index85 + "]", _exceptionable) || _report(_exceptionable, {
1587
+ path: _path + ".tags[" + _index85 + "]",
1571
1588
  expected: "OpenApi.IDocument.ITag",
1572
1589
  value: elem
1573
1590
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -1617,8 +1634,8 @@ class MigrateApplication {
1617
1634
  path: _path + '["enum"]',
1618
1635
  expected: "(Array<string> | undefined)",
1619
1636
  value: input["enum"]
1620
- })) && input["enum"].map(((elem, _index85) => "string" === typeof elem || _report(_exceptionable, {
1621
- path: _path + '["enum"][' + _index85 + "]",
1637
+ })) && input["enum"].map(((elem, _index86) => "string" === typeof elem || _report(_exceptionable, {
1638
+ path: _path + '["enum"][' + _index86 + "]",
1622
1639
  expected: "string",
1623
1640
  value: elem
1624
1641
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2022,12 +2039,12 @@ class MigrateApplication {
2022
2039
  path: _path + ".prefixItems",
2023
2040
  expected: "Array<OpenApi.IJsonSchema>",
2024
2041
  value: input.prefixItems
2025
- })) && input.prefixItems.map(((elem, _index86) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
2026
- path: _path + ".prefixItems[" + _index86 + "]",
2042
+ })) && input.prefixItems.map(((elem, _index87) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
2043
+ path: _path + ".prefixItems[" + _index87 + "]",
2027
2044
  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
2045
  value: elem
2029
- })) && _vu0(elem, _path + ".prefixItems[" + _index86 + "]", _exceptionable) || _report(_exceptionable, {
2030
- path: _path + ".prefixItems[" + _index86 + "]",
2046
+ })) && _vu0(elem, _path + ".prefixItems[" + _index87 + "]", _exceptionable) || _report(_exceptionable, {
2047
+ path: _path + ".prefixItems[" + _index87 + "]",
2031
2048
  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
2049
  value: elem
2033
2050
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2115,8 +2132,8 @@ class MigrateApplication {
2115
2132
  path: _path + ".required",
2116
2133
  expected: "(Array<string> | undefined)",
2117
2134
  value: input.required
2118
- })) && input.required.map(((elem, _index87) => "string" === typeof elem || _report(_exceptionable, {
2119
- path: _path + ".required[" + _index87 + "]",
2135
+ })) && input.required.map(((elem, _index88) => "string" === typeof elem || _report(_exceptionable, {
2136
+ path: _path + ".required[" + _index88 + "]",
2120
2137
  expected: "string",
2121
2138
  value: elem
2122
2139
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2177,12 +2194,12 @@ class MigrateApplication {
2177
2194
  path: _path + ".oneOf",
2178
2195
  expected: "Array<IConstant | IBoolean | IInteger | INumber | IString | IArray | ITuple | IObject | IReference<string> | INull | IUnknown>",
2179
2196
  value: input.oneOf
2180
- })) && input.oneOf.map(((elem, _index88) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
2181
- path: _path + ".oneOf[" + _index88 + "]",
2197
+ })) && input.oneOf.map(((elem, _index89) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
2198
+ path: _path + ".oneOf[" + _index89 + "]",
2182
2199
  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
2200
  value: elem
2184
- })) && _vu1(elem, _path + ".oneOf[" + _index88 + "]", _exceptionable) || _report(_exceptionable, {
2185
- path: _path + ".oneOf[" + _index88 + "]",
2201
+ })) && _vu1(elem, _path + ".oneOf[" + _index89 + "]", _exceptionable) || _report(_exceptionable, {
2202
+ path: _path + ".oneOf[" + _index89 + "]",
2186
2203
  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
2204
  value: elem
2188
2205
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2493,12 +2510,12 @@ class MigrateApplication {
2493
2510
  path: _path + ".servers",
2494
2511
  expected: "(Array<OpenApi.IServer> | undefined)",
2495
2512
  value: input.servers
2496
- })) && input.servers.map(((elem, _index89) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2497
- path: _path + ".servers[" + _index89 + "]",
2513
+ })) && input.servers.map(((elem, _index90) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2514
+ path: _path + ".servers[" + _index90 + "]",
2498
2515
  expected: "OpenApi.IServer",
2499
2516
  value: elem
2500
- })) && _vo1(elem, _path + ".servers[" + _index89 + "]", _exceptionable) || _report(_exceptionable, {
2501
- path: _path + ".servers[" + _index89 + "]",
2517
+ })) && _vo1(elem, _path + ".servers[" + _index90 + "]", _exceptionable) || _report(_exceptionable, {
2518
+ path: _path + ".servers[" + _index90 + "]",
2502
2519
  expected: "OpenApi.IServer",
2503
2520
  value: elem
2504
2521
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2586,12 +2603,12 @@ class MigrateApplication {
2586
2603
  path: _path + ".parameters",
2587
2604
  expected: "(Array<OpenApi.IOperation.IParameter> | undefined)",
2588
2605
  value: input.parameters
2589
- })) && input.parameters.map(((elem, _index90) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2590
- path: _path + ".parameters[" + _index90 + "]",
2606
+ })) && input.parameters.map(((elem, _index91) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2607
+ path: _path + ".parameters[" + _index91 + "]",
2591
2608
  expected: "OpenApi.IOperation.IParameter",
2592
2609
  value: elem
2593
- })) && _vo37(elem, _path + ".parameters[" + _index90 + "]", _exceptionable) || _report(_exceptionable, {
2594
- path: _path + ".parameters[" + _index90 + "]",
2610
+ })) && _vo37(elem, _path + ".parameters[" + _index91 + "]", _exceptionable) || _report(_exceptionable, {
2611
+ path: _path + ".parameters[" + _index91 + "]",
2595
2612
  expected: "OpenApi.IOperation.IParameter",
2596
2613
  value: elem
2597
2614
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2618,12 +2635,12 @@ class MigrateApplication {
2618
2635
  path: _path + ".servers",
2619
2636
  expected: "(Array<OpenApi.IServer> | undefined)",
2620
2637
  value: input.servers
2621
- })) && input.servers.map(((elem, _index91) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2622
- path: _path + ".servers[" + _index91 + "]",
2638
+ })) && input.servers.map(((elem, _index92) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
2639
+ path: _path + ".servers[" + _index92 + "]",
2623
2640
  expected: "OpenApi.IServer",
2624
2641
  value: elem
2625
- })) && _vo1(elem, _path + ".servers[" + _index91 + "]", _exceptionable) || _report(_exceptionable, {
2626
- path: _path + ".servers[" + _index91 + "]",
2642
+ })) && _vo1(elem, _path + ".servers[" + _index92 + "]", _exceptionable) || _report(_exceptionable, {
2643
+ path: _path + ".servers[" + _index92 + "]",
2627
2644
  expected: "OpenApi.IServer",
2628
2645
  value: elem
2629
2646
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2642,12 +2659,12 @@ class MigrateApplication {
2642
2659
  path: _path + ".security",
2643
2660
  expected: "(Array<Record<string, Array<string>>> | undefined)",
2644
2661
  value: input.security
2645
- })) && input.security.map(((elem, _index92) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
2646
- path: _path + ".security[" + _index92 + "]",
2662
+ })) && input.security.map(((elem, _index93) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
2663
+ path: _path + ".security[" + _index93 + "]",
2647
2664
  expected: "Record<string, Array<string>>",
2648
2665
  value: elem
2649
- })) && _vo46(elem, _path + ".security[" + _index92 + "]", _exceptionable) || _report(_exceptionable, {
2650
- path: _path + ".security[" + _index92 + "]",
2666
+ })) && _vo46(elem, _path + ".security[" + _index93 + "]", _exceptionable) || _report(_exceptionable, {
2667
+ path: _path + ".security[" + _index93 + "]",
2651
2668
  expected: "Record<string, Array<string>>",
2652
2669
  value: elem
2653
2670
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2658,8 +2675,8 @@ class MigrateApplication {
2658
2675
  path: _path + ".tags",
2659
2676
  expected: "(Array<string> | undefined)",
2660
2677
  value: input.tags
2661
- })) && input.tags.map(((elem, _index93) => "string" === typeof elem || _report(_exceptionable, {
2662
- path: _path + ".tags[" + _index93 + "]",
2678
+ })) && input.tags.map(((elem, _index94) => "string" === typeof elem || _report(_exceptionable, {
2679
+ path: _path + ".tags[" + _index94 + "]",
2663
2680
  expected: "string",
2664
2681
  value: elem
2665
2682
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2674,6 +2691,22 @@ class MigrateApplication {
2674
2691
  path: _path + '["x-samchon-human"]',
2675
2692
  expected: "(boolean | undefined)",
2676
2693
  value: input["x-samchon-human"]
2694
+ }), undefined === input["x-samchon-accessor"] || (Array.isArray(input["x-samchon-accessor"]) || _report(_exceptionable, {
2695
+ path: _path + '["x-samchon-accessor"]',
2696
+ expected: "(Array<string> | undefined)",
2697
+ value: input["x-samchon-accessor"]
2698
+ })) && input["x-samchon-accessor"].map(((elem, _index95) => "string" === typeof elem || _report(_exceptionable, {
2699
+ path: _path + '["x-samchon-accessor"][' + _index95 + "]",
2700
+ expected: "string",
2701
+ value: elem
2702
+ }))).every((flag => flag)) || _report(_exceptionable, {
2703
+ path: _path + '["x-samchon-accessor"]',
2704
+ expected: "(Array<string> | undefined)",
2705
+ value: input["x-samchon-accessor"]
2706
+ }), undefined === input["x-samchon-controller"] || "string" === typeof input["x-samchon-controller"] || _report(_exceptionable, {
2707
+ path: _path + '["x-samchon-controller"]',
2708
+ expected: "(string | undefined)",
2709
+ value: input["x-samchon-controller"]
2677
2710
  }) ].every((flag => flag));
2678
2711
  const _vo37 = (input, _path, _exceptionable = true) => [ undefined === input.name || "string" === typeof input.name || _report(_exceptionable, {
2679
2712
  path: _path + ".name",
@@ -2888,8 +2921,8 @@ class MigrateApplication {
2888
2921
  path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
2889
2922
  expected: "Array<string>",
2890
2923
  value
2891
- })) && value.map(((elem, _index94) => "string" === typeof elem || _report(_exceptionable, {
2892
- path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index94 + "]",
2924
+ })) && value.map(((elem, _index96) => "string" === typeof elem || _report(_exceptionable, {
2925
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key) + "[" + _index96 + "]",
2893
2926
  expected: "string",
2894
2927
  value: elem
2895
2928
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2939,8 +2972,8 @@ class MigrateApplication {
2939
2972
  path: _path + ".consumes",
2940
2973
  expected: "(Array<string> | undefined)",
2941
2974
  value: input.consumes
2942
- })) && input.consumes.map(((elem, _index95) => "string" === typeof elem || _report(_exceptionable, {
2943
- path: _path + ".consumes[" + _index95 + "]",
2975
+ })) && input.consumes.map(((elem, _index97) => "string" === typeof elem || _report(_exceptionable, {
2976
+ path: _path + ".consumes[" + _index97 + "]",
2944
2977
  expected: "string",
2945
2978
  value: elem
2946
2979
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2951,8 +2984,8 @@ class MigrateApplication {
2951
2984
  path: _path + ".produces",
2952
2985
  expected: "(Array<string> | undefined)",
2953
2986
  value: input.produces
2954
- })) && input.produces.map(((elem, _index96) => "string" === typeof elem || _report(_exceptionable, {
2955
- path: _path + ".produces[" + _index96 + "]",
2987
+ })) && input.produces.map(((elem, _index98) => "string" === typeof elem || _report(_exceptionable, {
2988
+ path: _path + ".produces[" + _index98 + "]",
2956
2989
  expected: "string",
2957
2990
  value: elem
2958
2991
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -2995,12 +3028,12 @@ class MigrateApplication {
2995
3028
  path: _path + ".security",
2996
3029
  expected: "(Array<Record<string, Array<string>>> | undefined)",
2997
3030
  value: input.security
2998
- })) && input.security.map(((elem, _index97) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
2999
- path: _path + ".security[" + _index97 + "]",
3031
+ })) && input.security.map(((elem, _index99) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
3032
+ path: _path + ".security[" + _index99 + "]",
3000
3033
  expected: "Record<string, Array<string>>",
3001
3034
  value: elem
3002
- })) && _vo46(elem, _path + ".security[" + _index97 + "]", _exceptionable) || _report(_exceptionable, {
3003
- path: _path + ".security[" + _index97 + "]",
3035
+ })) && _vo46(elem, _path + ".security[" + _index99 + "]", _exceptionable) || _report(_exceptionable, {
3036
+ path: _path + ".security[" + _index99 + "]",
3004
3037
  expected: "Record<string, Array<string>>",
3005
3038
  value: elem
3006
3039
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3019,12 +3052,12 @@ class MigrateApplication {
3019
3052
  path: _path + ".tags",
3020
3053
  expected: "(Array<SwaggerV2.IDocument.ITag> | undefined)",
3021
3054
  value: input.tags
3022
- })) && input.tags.map(((elem, _index98) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
3023
- path: _path + ".tags[" + _index98 + "]",
3055
+ })) && input.tags.map(((elem, _index100) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
3056
+ path: _path + ".tags[" + _index100 + "]",
3024
3057
  expected: "SwaggerV2.IDocument.ITag",
3025
3058
  value: elem
3026
- })) && _vo93(elem, _path + ".tags[" + _index98 + "]", _exceptionable) || _report(_exceptionable, {
3027
- path: _path + ".tags[" + _index98 + "]",
3059
+ })) && _vo93(elem, _path + ".tags[" + _index100 + "]", _exceptionable) || _report(_exceptionable, {
3060
+ path: _path + ".tags[" + _index100 + "]",
3028
3061
  expected: "SwaggerV2.IDocument.ITag",
3029
3062
  value: elem
3030
3063
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3108,8 +3141,8 @@ class MigrateApplication {
3108
3141
  path: _path + '["enum"]',
3109
3142
  expected: "(Array<boolean | null> | undefined)",
3110
3143
  value: input["enum"]
3111
- })) && input["enum"].map(((elem, _index99) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
3112
- path: _path + '["enum"][' + _index99 + "]",
3144
+ })) && input["enum"].map(((elem, _index101) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
3145
+ path: _path + '["enum"][' + _index101 + "]",
3113
3146
  expected: "(boolean | null)",
3114
3147
  value: elem
3115
3148
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3153,8 +3186,8 @@ class MigrateApplication {
3153
3186
  path: _path + '["enum"]',
3154
3187
  expected: "(Array<number | null> | undefined)",
3155
3188
  value: input["enum"]
3156
- })) && input["enum"].map(((elem, _index100) => null === elem || "number" === typeof elem || _report(_exceptionable, {
3157
- path: _path + '["enum"][' + _index100 + "]",
3189
+ })) && input["enum"].map(((elem, _index102) => null === elem || "number" === typeof elem || _report(_exceptionable, {
3190
+ path: _path + '["enum"][' + _index102 + "]",
3158
3191
  expected: "(null | number)",
3159
3192
  value: elem
3160
3193
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3230,8 +3263,8 @@ class MigrateApplication {
3230
3263
  path: _path + '["enum"]',
3231
3264
  expected: "(Array<number | null> | undefined)",
3232
3265
  value: input["enum"]
3233
- })) && input["enum"].map(((elem, _index101) => null === elem || "number" === typeof elem || _report(_exceptionable, {
3234
- path: _path + '["enum"][' + _index101 + "]",
3266
+ })) && input["enum"].map(((elem, _index103) => null === elem || "number" === typeof elem || _report(_exceptionable, {
3267
+ path: _path + '["enum"][' + _index103 + "]",
3235
3268
  expected: "(null | number)",
3236
3269
  value: elem
3237
3270
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3295,8 +3328,8 @@ class MigrateApplication {
3295
3328
  path: _path + '["enum"]',
3296
3329
  expected: "(Array<string | null> | undefined)",
3297
3330
  value: input["enum"]
3298
- })) && input["enum"].map(((elem, _index102) => null === elem || "string" === typeof elem || _report(_exceptionable, {
3299
- path: _path + '["enum"][' + _index102 + "]",
3331
+ })) && input["enum"].map(((elem, _index104) => null === elem || "string" === typeof elem || _report(_exceptionable, {
3332
+ path: _path + '["enum"][' + _index104 + "]",
3300
3333
  expected: "(null | string)",
3301
3334
  value: elem
3302
3335
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3417,8 +3450,8 @@ class MigrateApplication {
3417
3450
  path: _path + ".required",
3418
3451
  expected: "(Array<string> | undefined)",
3419
3452
  value: input.required
3420
- })) && input.required.map(((elem, _index103) => "string" === typeof elem || _report(_exceptionable, {
3421
- path: _path + ".required[" + _index103 + "]",
3453
+ })) && input.required.map(((elem, _index105) => "string" === typeof elem || _report(_exceptionable, {
3454
+ path: _path + ".required[" + _index105 + "]",
3422
3455
  expected: "string",
3423
3456
  value: elem
3424
3457
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3545,12 +3578,12 @@ class MigrateApplication {
3545
3578
  path: _path + '["x-anyOf"]',
3546
3579
  expected: "Array<SwaggerV2.IJsonSchema>",
3547
3580
  value: input["x-anyOf"]
3548
- })) && input["x-anyOf"].map(((elem, _index104) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
3549
- path: _path + '["x-anyOf"][' + _index104 + "]",
3581
+ })) && input["x-anyOf"].map(((elem, _index106) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
3582
+ path: _path + '["x-anyOf"][' + _index106 + "]",
3550
3583
  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
3584
  value: elem
3552
- })) && _vu2(elem, _path + '["x-anyOf"][' + _index104 + "]", _exceptionable) || _report(_exceptionable, {
3553
- path: _path + '["x-anyOf"][' + _index104 + "]",
3585
+ })) && _vu2(elem, _path + '["x-anyOf"][' + _index106 + "]", _exceptionable) || _report(_exceptionable, {
3586
+ path: _path + '["x-anyOf"][' + _index106 + "]",
3554
3587
  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
3588
  value: elem
3556
3589
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3578,12 +3611,12 @@ class MigrateApplication {
3578
3611
  path: _path + '["x-oneOf"]',
3579
3612
  expected: "Array<SwaggerV2.IJsonSchema>",
3580
3613
  value: input["x-oneOf"]
3581
- })) && input["x-oneOf"].map(((elem, _index105) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
3582
- path: _path + '["x-oneOf"][' + _index105 + "]",
3614
+ })) && input["x-oneOf"].map(((elem, _index107) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
3615
+ path: _path + '["x-oneOf"][' + _index107 + "]",
3583
3616
  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
3617
  value: elem
3585
- })) && _vu2(elem, _path + '["x-oneOf"][' + _index105 + "]", _exceptionable) || _report(_exceptionable, {
3586
- path: _path + '["x-oneOf"][' + _index105 + "]",
3618
+ })) && _vu2(elem, _path + '["x-oneOf"][' + _index107 + "]", _exceptionable) || _report(_exceptionable, {
3619
+ path: _path + '["x-oneOf"][' + _index107 + "]",
3587
3620
  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
3621
  value: elem
3589
3622
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3628,8 +3661,8 @@ class MigrateApplication {
3628
3661
  path: _path + '["enum"]',
3629
3662
  expected: "(Array<boolean | null> | undefined)",
3630
3663
  value: input["enum"]
3631
- })) && input["enum"].map(((elem, _index106) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
3632
- path: _path + '["enum"][' + _index106 + "]",
3664
+ })) && input["enum"].map(((elem, _index108) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
3665
+ path: _path + '["enum"][' + _index108 + "]",
3633
3666
  expected: "(boolean | null)",
3634
3667
  value: elem
3635
3668
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3681,8 +3714,8 @@ class MigrateApplication {
3681
3714
  path: _path + '["enum"]',
3682
3715
  expected: "(Array<number | null> | undefined)",
3683
3716
  value: input["enum"]
3684
- })) && input["enum"].map(((elem, _index107) => null === elem || "number" === typeof elem || _report(_exceptionable, {
3685
- path: _path + '["enum"][' + _index107 + "]",
3717
+ })) && input["enum"].map(((elem, _index109) => null === elem || "number" === typeof elem || _report(_exceptionable, {
3718
+ path: _path + '["enum"][' + _index109 + "]",
3686
3719
  expected: "(null | number)",
3687
3720
  value: elem
3688
3721
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3766,8 +3799,8 @@ class MigrateApplication {
3766
3799
  path: _path + '["enum"]',
3767
3800
  expected: "(Array<number | null> | undefined)",
3768
3801
  value: input["enum"]
3769
- })) && input["enum"].map(((elem, _index108) => null === elem || "number" === typeof elem || _report(_exceptionable, {
3770
- path: _path + '["enum"][' + _index108 + "]",
3802
+ })) && input["enum"].map(((elem, _index110) => null === elem || "number" === typeof elem || _report(_exceptionable, {
3803
+ path: _path + '["enum"][' + _index110 + "]",
3771
3804
  expected: "(null | number)",
3772
3805
  value: elem
3773
3806
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3839,8 +3872,8 @@ class MigrateApplication {
3839
3872
  path: _path + '["enum"]',
3840
3873
  expected: "(Array<string | null> | undefined)",
3841
3874
  value: input["enum"]
3842
- })) && input["enum"].map(((elem, _index109) => null === elem || "string" === typeof elem || _report(_exceptionable, {
3843
- path: _path + '["enum"][' + _index109 + "]",
3875
+ })) && input["enum"].map(((elem, _index111) => null === elem || "string" === typeof elem || _report(_exceptionable, {
3876
+ path: _path + '["enum"][' + _index111 + "]",
3844
3877
  expected: "(null | string)",
3845
3878
  value: elem
3846
3879
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -3977,8 +4010,8 @@ class MigrateApplication {
3977
4010
  path: _path + ".required",
3978
4011
  expected: "(Array<string> | undefined)",
3979
4012
  value: input.required
3980
- })) && input.required.map(((elem, _index110) => "string" === typeof elem || _report(_exceptionable, {
3981
- path: _path + ".required[" + _index110 + "]",
4013
+ })) && input.required.map(((elem, _index112) => "string" === typeof elem || _report(_exceptionable, {
4014
+ path: _path + ".required[" + _index112 + "]",
3982
4015
  expected: "string",
3983
4016
  value: elem
3984
4017
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4137,12 +4170,12 @@ class MigrateApplication {
4137
4170
  path: _path + '["x-anyOf"]',
4138
4171
  expected: "Array<SwaggerV2.IJsonSchema>",
4139
4172
  value: input["x-anyOf"]
4140
- })) && input["x-anyOf"].map(((elem, _index111) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
4141
- path: _path + '["x-anyOf"][' + _index111 + "]",
4173
+ })) && input["x-anyOf"].map(((elem, _index113) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
4174
+ path: _path + '["x-anyOf"][' + _index113 + "]",
4142
4175
  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
4176
  value: elem
4144
- })) && _vu2(elem, _path + '["x-anyOf"][' + _index111 + "]", _exceptionable) || _report(_exceptionable, {
4145
- path: _path + '["x-anyOf"][' + _index111 + "]",
4177
+ })) && _vu2(elem, _path + '["x-anyOf"][' + _index113 + "]", _exceptionable) || _report(_exceptionable, {
4178
+ path: _path + '["x-anyOf"][' + _index113 + "]",
4146
4179
  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
4180
  value: elem
4148
4181
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4178,12 +4211,12 @@ class MigrateApplication {
4178
4211
  path: _path + '["x-oneOf"]',
4179
4212
  expected: "Array<SwaggerV2.IJsonSchema>",
4180
4213
  value: input["x-oneOf"]
4181
- })) && input["x-oneOf"].map(((elem, _index112) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
4182
- path: _path + '["x-oneOf"][' + _index112 + "]",
4214
+ })) && input["x-oneOf"].map(((elem, _index114) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
4215
+ path: _path + '["x-oneOf"][' + _index114 + "]",
4183
4216
  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
4217
  value: elem
4185
- })) && _vu2(elem, _path + '["x-oneOf"][' + _index112 + "]", _exceptionable) || _report(_exceptionable, {
4186
- path: _path + '["x-oneOf"][' + _index112 + "]",
4218
+ })) && _vu2(elem, _path + '["x-oneOf"][' + _index114 + "]", _exceptionable) || _report(_exceptionable, {
4219
+ path: _path + '["x-oneOf"][' + _index114 + "]",
4187
4220
  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
4221
  value: elem
4189
4222
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4438,12 +4471,12 @@ class MigrateApplication {
4438
4471
  path: _path + ".parameters",
4439
4472
  expected: "(Array<IParameter | IReference<`#/parameters/${string}`>> | undefined)",
4440
4473
  value: input.parameters
4441
- })) && input.parameters.map(((elem, _index113) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
4442
- path: _path + ".parameters[" + _index113 + "]",
4474
+ })) && input.parameters.map(((elem, _index115) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
4475
+ path: _path + ".parameters[" + _index115 + "]",
4443
4476
  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
4477
  value: elem
4445
- })) && _vu3(elem, _path + ".parameters[" + _index113 + "]", _exceptionable) || _report(_exceptionable, {
4446
- path: _path + ".parameters[" + _index113 + "]",
4478
+ })) && _vu3(elem, _path + ".parameters[" + _index115 + "]", _exceptionable) || _report(_exceptionable, {
4479
+ path: _path + ".parameters[" + _index115 + "]",
4447
4480
  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
4481
  value: elem
4449
4482
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4544,12 +4577,12 @@ class MigrateApplication {
4544
4577
  path: _path + ".parameters",
4545
4578
  expected: "(Array<IParameter | IReference<`#/definitions/parameters/${string}`>> | undefined)",
4546
4579
  value: input.parameters
4547
- })) && input.parameters.map(((elem, _index114) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
4548
- path: _path + ".parameters[" + _index114 + "]",
4580
+ })) && input.parameters.map(((elem, _index116) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
4581
+ path: _path + ".parameters[" + _index116 + "]",
4549
4582
  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
4583
  value: elem
4551
- })) && _vu4(elem, _path + ".parameters[" + _index114 + "]", _exceptionable) || _report(_exceptionable, {
4552
- path: _path + ".parameters[" + _index114 + "]",
4584
+ })) && _vu4(elem, _path + ".parameters[" + _index116 + "]", _exceptionable) || _report(_exceptionable, {
4585
+ path: _path + ".parameters[" + _index116 + "]",
4553
4586
  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
4587
  value: elem
4555
4588
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4576,12 +4609,12 @@ class MigrateApplication {
4576
4609
  path: _path + ".security",
4577
4610
  expected: "(Array<Record<string, Array<string>>> | undefined)",
4578
4611
  value: input.security
4579
- })) && input.security.map(((elem, _index115) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
4580
- path: _path + ".security[" + _index115 + "]",
4612
+ })) && input.security.map(((elem, _index117) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
4613
+ path: _path + ".security[" + _index117 + "]",
4581
4614
  expected: "Record<string, Array<string>>",
4582
4615
  value: elem
4583
- })) && _vo46(elem, _path + ".security[" + _index115 + "]", _exceptionable) || _report(_exceptionable, {
4584
- path: _path + ".security[" + _index115 + "]",
4616
+ })) && _vo46(elem, _path + ".security[" + _index117 + "]", _exceptionable) || _report(_exceptionable, {
4617
+ path: _path + ".security[" + _index117 + "]",
4585
4618
  expected: "Record<string, Array<string>>",
4586
4619
  value: elem
4587
4620
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4592,8 +4625,8 @@ class MigrateApplication {
4592
4625
  path: _path + ".tags",
4593
4626
  expected: "(Array<string> | undefined)",
4594
4627
  value: input.tags
4595
- })) && input.tags.map(((elem, _index116) => "string" === typeof elem || _report(_exceptionable, {
4596
- path: _path + ".tags[" + _index116 + "]",
4628
+ })) && input.tags.map(((elem, _index118) => "string" === typeof elem || _report(_exceptionable, {
4629
+ path: _path + ".tags[" + _index118 + "]",
4597
4630
  expected: "string",
4598
4631
  value: elem
4599
4632
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4685,12 +4718,12 @@ class MigrateApplication {
4685
4718
  path: _path + ".servers",
4686
4719
  expected: "(Array<OpenApiV3.IServer> | undefined)",
4687
4720
  value: input.servers
4688
- })) && input.servers.map(((elem, _index117) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
4689
- path: _path + ".servers[" + _index117 + "]",
4721
+ })) && input.servers.map(((elem, _index119) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
4722
+ path: _path + ".servers[" + _index119 + "]",
4690
4723
  expected: "OpenApiV3.IServer",
4691
4724
  value: elem
4692
- })) && _vo95(elem, _path + ".servers[" + _index117 + "]", _exceptionable) || _report(_exceptionable, {
4693
- path: _path + ".servers[" + _index117 + "]",
4725
+ })) && _vo95(elem, _path + ".servers[" + _index119 + "]", _exceptionable) || _report(_exceptionable, {
4726
+ path: _path + ".servers[" + _index119 + "]",
4694
4727
  expected: "OpenApiV3.IServer",
4695
4728
  value: elem
4696
4729
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4725,12 +4758,12 @@ class MigrateApplication {
4725
4758
  path: _path + ".security",
4726
4759
  expected: "(Array<Record<string, Array<string>>> | undefined)",
4727
4760
  value: input.security
4728
- })) && input.security.map(((elem, _index118) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
4729
- path: _path + ".security[" + _index118 + "]",
4761
+ })) && input.security.map(((elem, _index120) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
4762
+ path: _path + ".security[" + _index120 + "]",
4730
4763
  expected: "Record<string, Array<string>>",
4731
4764
  value: elem
4732
- })) && _vo46(elem, _path + ".security[" + _index118 + "]", _exceptionable) || _report(_exceptionable, {
4733
- path: _path + ".security[" + _index118 + "]",
4765
+ })) && _vo46(elem, _path + ".security[" + _index120 + "]", _exceptionable) || _report(_exceptionable, {
4766
+ path: _path + ".security[" + _index120 + "]",
4734
4767
  expected: "Record<string, Array<string>>",
4735
4768
  value: elem
4736
4769
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4741,12 +4774,12 @@ class MigrateApplication {
4741
4774
  path: _path + ".tags",
4742
4775
  expected: "(Array<OpenApiV3.IDocument.ITag> | undefined)",
4743
4776
  value: input.tags
4744
- })) && input.tags.map(((elem, _index119) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
4745
- path: _path + ".tags[" + _index119 + "]",
4777
+ })) && input.tags.map(((elem, _index121) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
4778
+ path: _path + ".tags[" + _index121 + "]",
4746
4779
  expected: "OpenApiV3.IDocument.ITag",
4747
4780
  value: elem
4748
- })) && _vo149(elem, _path + ".tags[" + _index119 + "]", _exceptionable) || _report(_exceptionable, {
4749
- path: _path + ".tags[" + _index119 + "]",
4781
+ })) && _vo149(elem, _path + ".tags[" + _index121 + "]", _exceptionable) || _report(_exceptionable, {
4782
+ path: _path + ".tags[" + _index121 + "]",
4750
4783
  expected: "OpenApiV3.IDocument.ITag",
4751
4784
  value: elem
4752
4785
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4792,8 +4825,8 @@ class MigrateApplication {
4792
4825
  path: _path + '["enum"]',
4793
4826
  expected: "(Array<string> | undefined)",
4794
4827
  value: input["enum"]
4795
- })) && input["enum"].map(((elem, _index120) => "string" === typeof elem || _report(_exceptionable, {
4796
- path: _path + '["enum"][' + _index120 + "]",
4828
+ })) && input["enum"].map(((elem, _index122) => "string" === typeof elem || _report(_exceptionable, {
4829
+ path: _path + '["enum"][' + _index122 + "]",
4797
4830
  expected: "string",
4798
4831
  value: elem
4799
4832
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4938,8 +4971,8 @@ class MigrateApplication {
4938
4971
  path: _path + '["enum"]',
4939
4972
  expected: "(Array<boolean | null> | undefined)",
4940
4973
  value: input["enum"]
4941
- })) && input["enum"].map(((elem, _index121) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
4942
- path: _path + '["enum"][' + _index121 + "]",
4974
+ })) && input["enum"].map(((elem, _index123) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
4975
+ path: _path + '["enum"][' + _index123 + "]",
4943
4976
  expected: "(boolean | null)",
4944
4977
  value: elem
4945
4978
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -4987,8 +5020,8 @@ class MigrateApplication {
4987
5020
  path: _path + '["enum"]',
4988
5021
  expected: "(Array<number | null> | undefined)",
4989
5022
  value: input["enum"]
4990
- })) && input["enum"].map(((elem, _index122) => null === elem || "number" === typeof elem || _report(_exceptionable, {
4991
- path: _path + '["enum"][' + _index122 + "]",
5023
+ })) && input["enum"].map(((elem, _index124) => null === elem || "number" === typeof elem || _report(_exceptionable, {
5024
+ path: _path + '["enum"][' + _index124 + "]",
4992
5025
  expected: "(null | number)",
4993
5026
  value: elem
4994
5027
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -5068,8 +5101,8 @@ class MigrateApplication {
5068
5101
  path: _path + '["enum"]',
5069
5102
  expected: "(Array<number | null> | undefined)",
5070
5103
  value: input["enum"]
5071
- })) && input["enum"].map(((elem, _index123) => null === elem || "number" === typeof elem || _report(_exceptionable, {
5072
- path: _path + '["enum"][' + _index123 + "]",
5104
+ })) && input["enum"].map(((elem, _index125) => null === elem || "number" === typeof elem || _report(_exceptionable, {
5105
+ path: _path + '["enum"][' + _index125 + "]",
5073
5106
  expected: "(null | number)",
5074
5107
  value: elem
5075
5108
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -5137,8 +5170,8 @@ class MigrateApplication {
5137
5170
  path: _path + '["enum"]',
5138
5171
  expected: "(Array<string | null> | undefined)",
5139
5172
  value: input["enum"]
5140
- })) && input["enum"].map(((elem, _index124) => null === elem || "string" === typeof elem || _report(_exceptionable, {
5141
- path: _path + '["enum"][' + _index124 + "]",
5173
+ })) && input["enum"].map(((elem, _index126) => null === elem || "string" === typeof elem || _report(_exceptionable, {
5174
+ path: _path + '["enum"][' + _index126 + "]",
5142
5175
  expected: "(null | string)",
5143
5176
  value: elem
5144
5177
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -5267,8 +5300,8 @@ class MigrateApplication {
5267
5300
  path: _path + ".required",
5268
5301
  expected: "(Array<string> | undefined)",
5269
5302
  value: input.required
5270
- })) && input.required.map(((elem, _index125) => "string" === typeof elem || _report(_exceptionable, {
5271
- path: _path + ".required[" + _index125 + "]",
5303
+ })) && input.required.map(((elem, _index127) => "string" === typeof elem || _report(_exceptionable, {
5304
+ path: _path + ".required[" + _index127 + "]",
5272
5305
  expected: "string",
5273
5306
  value: elem
5274
5307
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -5411,12 +5444,12 @@ class MigrateApplication {
5411
5444
  path: _path + ".allOf",
5412
5445
  expected: "Array<OpenApiV3.IJsonSchema>",
5413
5446
  value: input.allOf
5414
- })) && input.allOf.map(((elem, _index126) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
5415
- path: _path + ".allOf[" + _index126 + "]",
5447
+ })) && input.allOf.map(((elem, _index128) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
5448
+ path: _path + ".allOf[" + _index128 + "]",
5416
5449
  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
5450
  value: elem
5418
- })) && _vu5(elem, _path + ".allOf[" + _index126 + "]", _exceptionable) || _report(_exceptionable, {
5419
- path: _path + ".allOf[" + _index126 + "]",
5451
+ })) && _vu5(elem, _path + ".allOf[" + _index128 + "]", _exceptionable) || _report(_exceptionable, {
5452
+ path: _path + ".allOf[" + _index128 + "]",
5420
5453
  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
5454
  value: elem
5422
5455
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -5448,12 +5481,12 @@ class MigrateApplication {
5448
5481
  path: _path + ".anyOf",
5449
5482
  expected: "Array<OpenApiV3.IJsonSchema>",
5450
5483
  value: input.anyOf
5451
- })) && input.anyOf.map(((elem, _index127) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
5452
- path: _path + ".anyOf[" + _index127 + "]",
5484
+ })) && input.anyOf.map(((elem, _index129) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
5485
+ path: _path + ".anyOf[" + _index129 + "]",
5453
5486
  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
5487
  value: elem
5455
- })) && _vu5(elem, _path + ".anyOf[" + _index127 + "]", _exceptionable) || _report(_exceptionable, {
5456
- path: _path + ".anyOf[" + _index127 + "]",
5488
+ })) && _vu5(elem, _path + ".anyOf[" + _index129 + "]", _exceptionable) || _report(_exceptionable, {
5489
+ path: _path + ".anyOf[" + _index129 + "]",
5457
5490
  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
5491
  value: elem
5459
5492
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -5485,12 +5518,12 @@ class MigrateApplication {
5485
5518
  path: _path + ".oneOf",
5486
5519
  expected: "Array<OpenApiV3.IJsonSchema>",
5487
5520
  value: input.oneOf
5488
- })) && input.oneOf.map(((elem, _index128) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
5489
- path: _path + ".oneOf[" + _index128 + "]",
5521
+ })) && input.oneOf.map(((elem, _index130) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
5522
+ path: _path + ".oneOf[" + _index130 + "]",
5490
5523
  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
5524
  value: elem
5492
- })) && _vu5(elem, _path + ".oneOf[" + _index128 + "]", _exceptionable) || _report(_exceptionable, {
5493
- path: _path + ".oneOf[" + _index128 + "]",
5525
+ })) && _vu5(elem, _path + ".oneOf[" + _index130 + "]", _exceptionable) || _report(_exceptionable, {
5526
+ path: _path + ".oneOf[" + _index130 + "]",
5494
5527
  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
5528
  value: elem
5496
5529
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -5683,6 +5716,10 @@ class MigrateApplication {
5683
5716
  path: _path + ".required",
5684
5717
  expected: "(boolean | undefined)",
5685
5718
  value: input.required
5719
+ }), undefined === input.name || "string" === typeof input.name || _report(_exceptionable, {
5720
+ path: _path + ".name",
5721
+ expected: "(string | undefined)",
5722
+ value: input.name
5686
5723
  }), ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || _report(_exceptionable, {
5687
5724
  path: _path + ".schema",
5688
5725
  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)",
@@ -5691,10 +5728,6 @@ class MigrateApplication {
5691
5728
  path: _path + ".schema",
5692
5729
  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)",
5693
5730
  value: input.schema
5694
- }), undefined === input.name || "string" === typeof input.name || _report(_exceptionable, {
5695
- path: _path + ".name",
5696
- expected: "(string | undefined)",
5697
- value: input.name
5698
5731
  }) ].every((flag => flag));
5699
5732
  const _vo125 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) || _report(_exceptionable, {
5700
5733
  path: _path + ".$ref",
@@ -6018,12 +6051,12 @@ class MigrateApplication {
6018
6051
  path: _path + ".parameters",
6019
6052
  expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>> | undefined)",
6020
6053
  value: input.parameters
6021
- })) && input.parameters.map(((elem, _index129) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6022
- path: _path + ".parameters[" + _index129 + "]",
6054
+ })) && input.parameters.map(((elem, _index131) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6055
+ path: _path + ".parameters[" + _index131 + "]",
6023
6056
  expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3.IOperation.IParameter)",
6024
6057
  value: elem
6025
- })) && _vu6(elem, _path + ".parameters[" + _index129 + "]", _exceptionable) || _report(_exceptionable, {
6026
- path: _path + ".parameters[" + _index129 + "]",
6058
+ })) && _vu6(elem, _path + ".parameters[" + _index131 + "]", _exceptionable) || _report(_exceptionable, {
6059
+ path: _path + ".parameters[" + _index131 + "]",
6027
6060
  expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3.IOperation.IParameter)",
6028
6061
  value: elem
6029
6062
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6034,12 +6067,12 @@ class MigrateApplication {
6034
6067
  path: _path + ".servers",
6035
6068
  expected: "(Array<OpenApiV3.IServer> | undefined)",
6036
6069
  value: input.servers
6037
- })) && input.servers.map(((elem, _index130) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6038
- path: _path + ".servers[" + _index130 + "]",
6070
+ })) && input.servers.map(((elem, _index132) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6071
+ path: _path + ".servers[" + _index132 + "]",
6039
6072
  expected: "OpenApiV3.IServer",
6040
6073
  value: elem
6041
- })) && _vo95(elem, _path + ".servers[" + _index130 + "]", _exceptionable) || _report(_exceptionable, {
6042
- path: _path + ".servers[" + _index130 + "]",
6074
+ })) && _vo95(elem, _path + ".servers[" + _index132 + "]", _exceptionable) || _report(_exceptionable, {
6075
+ path: _path + ".servers[" + _index132 + "]",
6043
6076
  expected: "OpenApiV3.IServer",
6044
6077
  value: elem
6045
6078
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6152,12 +6185,12 @@ class MigrateApplication {
6152
6185
  path: _path + ".parameters",
6153
6186
  expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>> | undefined)",
6154
6187
  value: input.parameters
6155
- })) && input.parameters.map(((elem, _index131) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6156
- path: _path + ".parameters[" + _index131 + "]",
6188
+ })) && input.parameters.map(((elem, _index133) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6189
+ path: _path + ".parameters[" + _index133 + "]",
6157
6190
  expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3.IOperation.IParameter)",
6158
6191
  value: elem
6159
- })) && _vu6(elem, _path + ".parameters[" + _index131 + "]", _exceptionable) || _report(_exceptionable, {
6160
- path: _path + ".parameters[" + _index131 + "]",
6192
+ })) && _vu6(elem, _path + ".parameters[" + _index133 + "]", _exceptionable) || _report(_exceptionable, {
6193
+ path: _path + ".parameters[" + _index133 + "]",
6161
6194
  expected: "(OpenApiV3.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3.IOperation.IParameter)",
6162
6195
  value: elem
6163
6196
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6184,12 +6217,12 @@ class MigrateApplication {
6184
6217
  path: _path + ".servers",
6185
6218
  expected: "(Array<OpenApiV3.IServer> | undefined)",
6186
6219
  value: input.servers
6187
- })) && input.servers.map(((elem, _index132) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6188
- path: _path + ".servers[" + _index132 + "]",
6220
+ })) && input.servers.map(((elem, _index134) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6221
+ path: _path + ".servers[" + _index134 + "]",
6189
6222
  expected: "OpenApiV3.IServer",
6190
6223
  value: elem
6191
- })) && _vo95(elem, _path + ".servers[" + _index132 + "]", _exceptionable) || _report(_exceptionable, {
6192
- path: _path + ".servers[" + _index132 + "]",
6224
+ })) && _vo95(elem, _path + ".servers[" + _index134 + "]", _exceptionable) || _report(_exceptionable, {
6225
+ path: _path + ".servers[" + _index134 + "]",
6193
6226
  expected: "OpenApiV3.IServer",
6194
6227
  value: elem
6195
6228
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6208,12 +6241,12 @@ class MigrateApplication {
6208
6241
  path: _path + ".security",
6209
6242
  expected: "(Array<Record<string, Array<string>>> | undefined)",
6210
6243
  value: input.security
6211
- })) && input.security.map(((elem, _index133) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6212
- path: _path + ".security[" + _index133 + "]",
6244
+ })) && input.security.map(((elem, _index135) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6245
+ path: _path + ".security[" + _index135 + "]",
6213
6246
  expected: "Record<string, Array<string>>",
6214
6247
  value: elem
6215
- })) && _vo46(elem, _path + ".security[" + _index133 + "]", _exceptionable) || _report(_exceptionable, {
6216
- path: _path + ".security[" + _index133 + "]",
6248
+ })) && _vo46(elem, _path + ".security[" + _index135 + "]", _exceptionable) || _report(_exceptionable, {
6249
+ path: _path + ".security[" + _index135 + "]",
6217
6250
  expected: "Record<string, Array<string>>",
6218
6251
  value: elem
6219
6252
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6224,8 +6257,8 @@ class MigrateApplication {
6224
6257
  path: _path + ".tags",
6225
6258
  expected: "(Array<string> | undefined)",
6226
6259
  value: input.tags
6227
- })) && input.tags.map(((elem, _index134) => "string" === typeof elem || _report(_exceptionable, {
6228
- path: _path + ".tags[" + _index134 + "]",
6260
+ })) && input.tags.map(((elem, _index136) => "string" === typeof elem || _report(_exceptionable, {
6261
+ path: _path + ".tags[" + _index136 + "]",
6229
6262
  expected: "string",
6230
6263
  value: elem
6231
6264
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6317,12 +6350,12 @@ class MigrateApplication {
6317
6350
  path: _path + ".servers",
6318
6351
  expected: "(Array<OpenApiV3_1.IServer> | undefined)",
6319
6352
  value: input.servers
6320
- })) && input.servers.map(((elem, _index135) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6321
- path: _path + ".servers[" + _index135 + "]",
6353
+ })) && input.servers.map(((elem, _index137) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6354
+ path: _path + ".servers[" + _index137 + "]",
6322
6355
  expected: "OpenApiV3_1.IServer",
6323
6356
  value: elem
6324
- })) && _vo151(elem, _path + ".servers[" + _index135 + "]", _exceptionable) || _report(_exceptionable, {
6325
- path: _path + ".servers[" + _index135 + "]",
6357
+ })) && _vo151(elem, _path + ".servers[" + _index137 + "]", _exceptionable) || _report(_exceptionable, {
6358
+ path: _path + ".servers[" + _index137 + "]",
6326
6359
  expected: "OpenApiV3_1.IServer",
6327
6360
  value: elem
6328
6361
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6365,12 +6398,12 @@ class MigrateApplication {
6365
6398
  path: _path + ".security",
6366
6399
  expected: "(Array<Record<string, Array<string>>> | undefined)",
6367
6400
  value: input.security
6368
- })) && input.security.map(((elem, _index136) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6369
- path: _path + ".security[" + _index136 + "]",
6401
+ })) && input.security.map(((elem, _index138) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6402
+ path: _path + ".security[" + _index138 + "]",
6370
6403
  expected: "Record<string, Array<string>>",
6371
6404
  value: elem
6372
- })) && _vo46(elem, _path + ".security[" + _index136 + "]", _exceptionable) || _report(_exceptionable, {
6373
- path: _path + ".security[" + _index136 + "]",
6405
+ })) && _vo46(elem, _path + ".security[" + _index138 + "]", _exceptionable) || _report(_exceptionable, {
6406
+ path: _path + ".security[" + _index138 + "]",
6374
6407
  expected: "Record<string, Array<string>>",
6375
6408
  value: elem
6376
6409
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6381,12 +6414,12 @@ class MigrateApplication {
6381
6414
  path: _path + ".tags",
6382
6415
  expected: "(Array<OpenApiV3_1.IDocument.ITag> | undefined)",
6383
6416
  value: input.tags
6384
- })) && input.tags.map(((elem, _index137) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6385
- path: _path + ".tags[" + _index137 + "]",
6417
+ })) && input.tags.map(((elem, _index139) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
6418
+ path: _path + ".tags[" + _index139 + "]",
6386
6419
  expected: "OpenApiV3_1.IDocument.ITag",
6387
6420
  value: elem
6388
- })) && _vo209(elem, _path + ".tags[" + _index137 + "]", _exceptionable) || _report(_exceptionable, {
6389
- path: _path + ".tags[" + _index137 + "]",
6421
+ })) && _vo209(elem, _path + ".tags[" + _index139 + "]", _exceptionable) || _report(_exceptionable, {
6422
+ path: _path + ".tags[" + _index139 + "]",
6390
6423
  expected: "OpenApiV3_1.IDocument.ITag",
6391
6424
  value: elem
6392
6425
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6436,8 +6469,8 @@ class MigrateApplication {
6436
6469
  path: _path + '["enum"]',
6437
6470
  expected: "Array<> & MinItems<1>",
6438
6471
  value: input["enum"]
6439
- })) && input["enum"].map(((elem, _index138) => "string" === typeof elem || _report(_exceptionable, {
6440
- path: _path + '["enum"][' + _index138 + "]",
6472
+ })) && input["enum"].map(((elem, _index140) => "string" === typeof elem || _report(_exceptionable, {
6473
+ path: _path + '["enum"][' + _index140 + "]",
6441
6474
  expected: "string",
6442
6475
  value: elem
6443
6476
  }))).every((flag => flag))) || _report(_exceptionable, {
@@ -6594,8 +6627,8 @@ class MigrateApplication {
6594
6627
  path: _path + ".type",
6595
6628
  expected: 'Array<"string" | "number" | "boolean" | "object" | "null" | "integer" | "array">',
6596
6629
  value: input.type
6597
- })) && input.type.map(((elem, _index139) => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === elem || _report(_exceptionable, {
6598
- path: _path + ".type[" + _index139 + "]",
6630
+ })) && input.type.map(((elem, _index141) => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === elem || _report(_exceptionable, {
6631
+ path: _path + ".type[" + _index141 + "]",
6599
6632
  expected: '("array" | "boolean" | "integer" | "null" | "number" | "object" | "string")',
6600
6633
  value: elem
6601
6634
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6694,12 +6727,12 @@ class MigrateApplication {
6694
6727
  path: _path + ".items",
6695
6728
  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
6729
  value: input.items
6697
- })) && (undefined === input.items || (Array.isArray(input.items) && input.items.map(((elem, _index140) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6698
- path: _path + ".items[" + _index140 + "]",
6730
+ })) && (undefined === input.items || (Array.isArray(input.items) && input.items.map(((elem, _index142) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6731
+ path: _path + ".items[" + _index142 + "]",
6699
6732
  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
6733
  value: elem
6701
- })) && _vu7(elem, _path + ".items[" + _index140 + "]", _exceptionable) || _report(_exceptionable, {
6702
- path: _path + ".items[" + _index140 + "]",
6734
+ })) && _vu7(elem, _path + ".items[" + _index142 + "]", _exceptionable) || _report(_exceptionable, {
6735
+ path: _path + ".items[" + _index142 + "]",
6703
6736
  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
6737
  value: elem
6705
6738
  }))).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 +6767,12 @@ class MigrateApplication {
6734
6767
  path: _path + ".prefixItems",
6735
6768
  expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
6736
6769
  value: input.prefixItems
6737
- })) && input.prefixItems.map(((elem, _index141) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6738
- path: _path + ".prefixItems[" + _index141 + "]",
6770
+ })) && input.prefixItems.map(((elem, _index143) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6771
+ path: _path + ".prefixItems[" + _index143 + "]",
6739
6772
  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
6773
  value: elem
6741
- })) && _vu7(elem, _path + ".prefixItems[" + _index141 + "]", _exceptionable) || _report(_exceptionable, {
6742
- path: _path + ".prefixItems[" + _index141 + "]",
6774
+ })) && _vu7(elem, _path + ".prefixItems[" + _index143 + "]", _exceptionable) || _report(_exceptionable, {
6775
+ path: _path + ".prefixItems[" + _index143 + "]",
6743
6776
  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
6777
  value: elem
6745
6778
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6782,8 +6815,8 @@ class MigrateApplication {
6782
6815
  path: _path + ".required",
6783
6816
  expected: "(Array<string> | undefined)",
6784
6817
  value: input.required
6785
- })) && input.required.map(((elem, _index142) => "string" === typeof elem || _report(_exceptionable, {
6786
- path: _path + ".required[" + _index142 + "]",
6818
+ })) && input.required.map(((elem, _index144) => "string" === typeof elem || _report(_exceptionable, {
6819
+ path: _path + ".required[" + _index144 + "]",
6787
6820
  expected: "string",
6788
6821
  value: elem
6789
6822
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6802,12 +6835,12 @@ class MigrateApplication {
6802
6835
  path: _path + ".oneOf",
6803
6836
  expected: "Array<OpenApiV3_1.IJsonSchema>",
6804
6837
  value: input.oneOf
6805
- })) && input.oneOf.map(((elem, _index143) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6806
- path: _path + ".oneOf[" + _index143 + "]",
6838
+ })) && input.oneOf.map(((elem, _index145) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6839
+ path: _path + ".oneOf[" + _index145 + "]",
6807
6840
  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
6841
  value: elem
6809
- })) && _vu7(elem, _path + ".oneOf[" + _index143 + "]", _exceptionable) || _report(_exceptionable, {
6810
- path: _path + ".oneOf[" + _index143 + "]",
6842
+ })) && _vu7(elem, _path + ".oneOf[" + _index145 + "]", _exceptionable) || _report(_exceptionable, {
6843
+ path: _path + ".oneOf[" + _index145 + "]",
6811
6844
  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
6845
  value: elem
6813
6846
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6826,12 +6859,12 @@ class MigrateApplication {
6826
6859
  path: _path + ".anyOf",
6827
6860
  expected: "Array<OpenApiV3_1.IJsonSchema>",
6828
6861
  value: input.anyOf
6829
- })) && input.anyOf.map(((elem, _index144) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6830
- path: _path + ".anyOf[" + _index144 + "]",
6862
+ })) && input.anyOf.map(((elem, _index146) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6863
+ path: _path + ".anyOf[" + _index146 + "]",
6831
6864
  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
6865
  value: elem
6833
- })) && _vu7(elem, _path + ".anyOf[" + _index144 + "]", _exceptionable) || _report(_exceptionable, {
6834
- path: _path + ".anyOf[" + _index144 + "]",
6866
+ })) && _vu7(elem, _path + ".anyOf[" + _index146 + "]", _exceptionable) || _report(_exceptionable, {
6867
+ path: _path + ".anyOf[" + _index146 + "]",
6835
6868
  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
6869
  value: elem
6837
6870
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6842,12 +6875,12 @@ class MigrateApplication {
6842
6875
  path: _path + ".allOf",
6843
6876
  expected: "Array<OpenApiV3_1.IJsonSchema>",
6844
6877
  value: input.allOf
6845
- })) && input.allOf.map(((elem, _index145) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6846
- path: _path + ".allOf[" + _index145 + "]",
6878
+ })) && input.allOf.map(((elem, _index147) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
6879
+ path: _path + ".allOf[" + _index147 + "]",
6847
6880
  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
6881
  value: elem
6849
- })) && _vu7(elem, _path + ".allOf[" + _index145 + "]", _exceptionable) || _report(_exceptionable, {
6850
- path: _path + ".allOf[" + _index145 + "]",
6882
+ })) && _vu7(elem, _path + ".allOf[" + _index147 + "]", _exceptionable) || _report(_exceptionable, {
6883
+ path: _path + ".allOf[" + _index147 + "]",
6851
6884
  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
6885
  value: elem
6853
6886
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6892,8 +6925,8 @@ class MigrateApplication {
6892
6925
  path: _path + '["enum"]',
6893
6926
  expected: "(Array<boolean | null> | undefined)",
6894
6927
  value: input["enum"]
6895
- })) && input["enum"].map(((elem, _index146) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
6896
- path: _path + '["enum"][' + _index146 + "]",
6928
+ })) && input["enum"].map(((elem, _index148) => null === elem || "boolean" === typeof elem || _report(_exceptionable, {
6929
+ path: _path + '["enum"][' + _index148 + "]",
6897
6930
  expected: "(boolean | null)",
6898
6931
  value: elem
6899
6932
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -6941,8 +6974,8 @@ class MigrateApplication {
6941
6974
  path: _path + '["enum"]',
6942
6975
  expected: "(Array<number | null> | undefined)",
6943
6976
  value: input["enum"]
6944
- })) && input["enum"].map(((elem, _index147) => null === elem || "number" === typeof elem || _report(_exceptionable, {
6945
- path: _path + '["enum"][' + _index147 + "]",
6977
+ })) && input["enum"].map(((elem, _index149) => null === elem || "number" === typeof elem || _report(_exceptionable, {
6978
+ path: _path + '["enum"][' + _index149 + "]",
6946
6979
  expected: "(null | number)",
6947
6980
  value: elem
6948
6981
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7030,8 +7063,8 @@ class MigrateApplication {
7030
7063
  path: _path + '["enum"]',
7031
7064
  expected: "(Array<number | null> | undefined)",
7032
7065
  value: input["enum"]
7033
- })) && input["enum"].map(((elem, _index148) => null === elem || "number" === typeof elem || _report(_exceptionable, {
7034
- path: _path + '["enum"][' + _index148 + "]",
7066
+ })) && input["enum"].map(((elem, _index150) => null === elem || "number" === typeof elem || _report(_exceptionable, {
7067
+ path: _path + '["enum"][' + _index150 + "]",
7035
7068
  expected: "(null | number)",
7036
7069
  value: elem
7037
7070
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7103,8 +7136,8 @@ class MigrateApplication {
7103
7136
  path: _path + '["enum"]',
7104
7137
  expected: "(Array<string | null> | undefined)",
7105
7138
  value: input["enum"]
7106
- })) && input["enum"].map(((elem, _index149) => null === elem || "string" === typeof elem || _report(_exceptionable, {
7107
- path: _path + '["enum"][' + _index149 + "]",
7139
+ })) && input["enum"].map(((elem, _index151) => null === elem || "string" === typeof elem || _report(_exceptionable, {
7140
+ path: _path + '["enum"][' + _index151 + "]",
7108
7141
  expected: "(null | string)",
7109
7142
  value: elem
7110
7143
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7168,12 +7201,12 @@ class MigrateApplication {
7168
7201
  path: _path + ".items",
7169
7202
  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
7203
  value: input.items
7171
- })) && (undefined === input.items || (Array.isArray(input.items) && input.items.map(((elem, _index150) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7172
- path: _path + ".items[" + _index150 + "]",
7204
+ })) && (undefined === input.items || (Array.isArray(input.items) && input.items.map(((elem, _index152) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7205
+ path: _path + ".items[" + _index152 + "]",
7173
7206
  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
7207
  value: elem
7175
- })) && _vu7(elem, _path + ".items[" + _index150 + "]", _exceptionable) || _report(_exceptionable, {
7176
- path: _path + ".items[" + _index150 + "]",
7208
+ })) && _vu7(elem, _path + ".items[" + _index152 + "]", _exceptionable) || _report(_exceptionable, {
7209
+ path: _path + ".items[" + _index152 + "]",
7177
7210
  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
7211
  value: elem
7179
7212
  }))).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 +7221,12 @@ class MigrateApplication {
7188
7221
  path: _path + ".prefixItems",
7189
7222
  expected: "(Array<OpenApiV3_1.IJsonSchema> | undefined)",
7190
7223
  value: input.prefixItems
7191
- })) && input.prefixItems.map(((elem, _index151) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7192
- path: _path + ".prefixItems[" + _index151 + "]",
7224
+ })) && input.prefixItems.map(((elem, _index153) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7225
+ path: _path + ".prefixItems[" + _index153 + "]",
7193
7226
  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
7227
  value: elem
7195
- })) && _vu7(elem, _path + ".prefixItems[" + _index151 + "]", _exceptionable) || _report(_exceptionable, {
7196
- path: _path + ".prefixItems[" + _index151 + "]",
7228
+ })) && _vu7(elem, _path + ".prefixItems[" + _index153 + "]", _exceptionable) || _report(_exceptionable, {
7229
+ path: _path + ".prefixItems[" + _index153 + "]",
7197
7230
  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
7231
  value: elem
7199
7232
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7273,8 +7306,8 @@ class MigrateApplication {
7273
7306
  path: _path + ".required",
7274
7307
  expected: "(Array<string> | undefined)",
7275
7308
  value: input.required
7276
- })) && input.required.map(((elem, _index152) => "string" === typeof elem || _report(_exceptionable, {
7277
- path: _path + ".required[" + _index152 + "]",
7309
+ })) && input.required.map(((elem, _index154) => "string" === typeof elem || _report(_exceptionable, {
7310
+ path: _path + ".required[" + _index154 + "]",
7278
7311
  expected: "string",
7279
7312
  value: elem
7280
7313
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7421,12 +7454,12 @@ class MigrateApplication {
7421
7454
  path: _path + ".allOf",
7422
7455
  expected: "Array<OpenApiV3_1.IJsonSchema>",
7423
7456
  value: input.allOf
7424
- })) && input.allOf.map(((elem, _index153) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7425
- path: _path + ".allOf[" + _index153 + "]",
7457
+ })) && input.allOf.map(((elem, _index155) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7458
+ path: _path + ".allOf[" + _index155 + "]",
7426
7459
  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
7460
  value: elem
7428
- })) && _vu7(elem, _path + ".allOf[" + _index153 + "]", _exceptionable) || _report(_exceptionable, {
7429
- path: _path + ".allOf[" + _index153 + "]",
7461
+ })) && _vu7(elem, _path + ".allOf[" + _index155 + "]", _exceptionable) || _report(_exceptionable, {
7462
+ path: _path + ".allOf[" + _index155 + "]",
7430
7463
  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
7464
  value: elem
7432
7465
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7458,12 +7491,12 @@ class MigrateApplication {
7458
7491
  path: _path + ".anyOf",
7459
7492
  expected: "Array<OpenApiV3_1.IJsonSchema>",
7460
7493
  value: input.anyOf
7461
- })) && input.anyOf.map(((elem, _index154) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7462
- path: _path + ".anyOf[" + _index154 + "]",
7494
+ })) && input.anyOf.map(((elem, _index156) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7495
+ path: _path + ".anyOf[" + _index156 + "]",
7463
7496
  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
7497
  value: elem
7465
- })) && _vu7(elem, _path + ".anyOf[" + _index154 + "]", _exceptionable) || _report(_exceptionable, {
7466
- path: _path + ".anyOf[" + _index154 + "]",
7498
+ })) && _vu7(elem, _path + ".anyOf[" + _index156 + "]", _exceptionable) || _report(_exceptionable, {
7499
+ path: _path + ".anyOf[" + _index156 + "]",
7467
7500
  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
7501
  value: elem
7469
7502
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7495,12 +7528,12 @@ class MigrateApplication {
7495
7528
  path: _path + ".oneOf",
7496
7529
  expected: "Array<OpenApiV3_1.IJsonSchema>",
7497
7530
  value: input.oneOf
7498
- })) && input.oneOf.map(((elem, _index155) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7499
- path: _path + ".oneOf[" + _index155 + "]",
7531
+ })) && input.oneOf.map(((elem, _index157) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7532
+ path: _path + ".oneOf[" + _index157 + "]",
7500
7533
  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
7534
  value: elem
7502
- })) && _vu7(elem, _path + ".oneOf[" + _index155 + "]", _exceptionable) || _report(_exceptionable, {
7503
- path: _path + ".oneOf[" + _index155 + "]",
7535
+ })) && _vu7(elem, _path + ".oneOf[" + _index157 + "]", _exceptionable) || _report(_exceptionable, {
7536
+ path: _path + ".oneOf[" + _index157 + "]",
7504
7537
  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
7538
  value: elem
7506
7539
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7566,12 +7599,12 @@ class MigrateApplication {
7566
7599
  path: _path + ".parameters",
7567
7600
  expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>>.o1 | undefined)",
7568
7601
  value: input.parameters
7569
- })) && input.parameters.map(((elem, _index156) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
7570
- path: _path + ".parameters[" + _index156 + "]",
7602
+ })) && input.parameters.map(((elem, _index158) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
7603
+ path: _path + ".parameters[" + _index158 + "]",
7571
7604
  expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3_1.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3_1.IOperation.IParameter)",
7572
7605
  value: elem
7573
- })) && _vu8(elem, _path + ".parameters[" + _index156 + "]", _exceptionable) || _report(_exceptionable, {
7574
- path: _path + ".parameters[" + _index156 + "]",
7606
+ })) && _vu8(elem, _path + ".parameters[" + _index158 + "]", _exceptionable) || _report(_exceptionable, {
7607
+ path: _path + ".parameters[" + _index158 + "]",
7575
7608
  expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3_1.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3_1.IOperation.IParameter)",
7576
7609
  value: elem
7577
7610
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7582,12 +7615,12 @@ class MigrateApplication {
7582
7615
  path: _path + ".servers",
7583
7616
  expected: "(Array<OpenApiV3_1.IServer> | undefined)",
7584
7617
  value: input.servers
7585
- })) && input.servers.map(((elem, _index157) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
7586
- path: _path + ".servers[" + _index157 + "]",
7618
+ })) && input.servers.map(((elem, _index159) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
7619
+ path: _path + ".servers[" + _index159 + "]",
7587
7620
  expected: "OpenApiV3_1.IServer",
7588
7621
  value: elem
7589
- })) && _vo151(elem, _path + ".servers[" + _index157 + "]", _exceptionable) || _report(_exceptionable, {
7590
- path: _path + ".servers[" + _index157 + "]",
7622
+ })) && _vo151(elem, _path + ".servers[" + _index159 + "]", _exceptionable) || _report(_exceptionable, {
7623
+ path: _path + ".servers[" + _index159 + "]",
7591
7624
  expected: "OpenApiV3_1.IServer",
7592
7625
  value: elem
7593
7626
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7809,12 +7842,12 @@ class MigrateApplication {
7809
7842
  path: _path + ".parameters",
7810
7843
  expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>>.o1 | undefined)",
7811
7844
  value: input.parameters
7812
- })) && input.parameters.map(((elem, _index158) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
7813
- path: _path + ".parameters[" + _index158 + "]",
7845
+ })) && input.parameters.map(((elem, _index160) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
7846
+ path: _path + ".parameters[" + _index160 + "]",
7814
7847
  expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3_1.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3_1.IOperation.IParameter)",
7815
7848
  value: elem
7816
- })) && _vu8(elem, _path + ".parameters[" + _index158 + "]", _exceptionable) || _report(_exceptionable, {
7817
- path: _path + ".parameters[" + _index158 + "]",
7849
+ })) && _vu8(elem, _path + ".parameters[" + _index160 + "]", _exceptionable) || _report(_exceptionable, {
7850
+ path: _path + ".parameters[" + _index160 + "]",
7818
7851
  expected: "(OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`> | OpenApiV3_1.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3_1.IOperation.IParameter)",
7819
7852
  value: elem
7820
7853
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7841,12 +7874,12 @@ class MigrateApplication {
7841
7874
  path: _path + ".servers",
7842
7875
  expected: "(Array<OpenApiV3_1.IServer> | undefined)",
7843
7876
  value: input.servers
7844
- })) && input.servers.map(((elem, _index159) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
7845
- path: _path + ".servers[" + _index159 + "]",
7877
+ })) && input.servers.map(((elem, _index161) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
7878
+ path: _path + ".servers[" + _index161 + "]",
7846
7879
  expected: "OpenApiV3_1.IServer",
7847
7880
  value: elem
7848
- })) && _vo151(elem, _path + ".servers[" + _index159 + "]", _exceptionable) || _report(_exceptionable, {
7849
- path: _path + ".servers[" + _index159 + "]",
7881
+ })) && _vo151(elem, _path + ".servers[" + _index161 + "]", _exceptionable) || _report(_exceptionable, {
7882
+ path: _path + ".servers[" + _index161 + "]",
7850
7883
  expected: "OpenApiV3_1.IServer",
7851
7884
  value: elem
7852
7885
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7865,12 +7898,12 @@ class MigrateApplication {
7865
7898
  path: _path + ".security",
7866
7899
  expected: "(Array<Record<string, Array<string>>> | undefined)",
7867
7900
  value: input.security
7868
- })) && input.security.map(((elem, _index160) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7869
- path: _path + ".security[" + _index160 + "]",
7901
+ })) && input.security.map(((elem, _index162) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
7902
+ path: _path + ".security[" + _index162 + "]",
7870
7903
  expected: "Record<string, Array<string>>",
7871
7904
  value: elem
7872
- })) && _vo46(elem, _path + ".security[" + _index160 + "]", _exceptionable) || _report(_exceptionable, {
7873
- path: _path + ".security[" + _index160 + "]",
7905
+ })) && _vo46(elem, _path + ".security[" + _index162 + "]", _exceptionable) || _report(_exceptionable, {
7906
+ path: _path + ".security[" + _index162 + "]",
7874
7907
  expected: "Record<string, Array<string>>",
7875
7908
  value: elem
7876
7909
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -7881,8 +7914,8 @@ class MigrateApplication {
7881
7914
  path: _path + ".tags",
7882
7915
  expected: "(Array<string> | undefined)",
7883
7916
  value: input.tags
7884
- })) && input.tags.map(((elem, _index161) => "string" === typeof elem || _report(_exceptionable, {
7885
- path: _path + ".tags[" + _index161 + "]",
7917
+ })) && input.tags.map(((elem, _index163) => "string" === typeof elem || _report(_exceptionable, {
7918
+ path: _path + ".tags[" + _index163 + "]",
7886
7919
  expected: "string",
7887
7920
  value: elem
7888
7921
  }))).every((flag => flag)) || _report(_exceptionable, {
@@ -8029,6 +8062,10 @@ class MigrateApplication {
8029
8062
  path: _path + ".required",
8030
8063
  expected: "(boolean | undefined)",
8031
8064
  value: input.required
8065
+ }), undefined === input.name || "string" === typeof input.name || _report(_exceptionable, {
8066
+ path: _path + ".name",
8067
+ expected: "(string | undefined)",
8068
+ value: input.name
8032
8069
  }), ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || _report(_exceptionable, {
8033
8070
  path: _path + ".schema",
8034
8071
  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)",
@@ -8037,10 +8074,6 @@ class MigrateApplication {
8037
8074
  path: _path + ".schema",
8038
8075
  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)",
8039
8076
  value: input.schema
8040
- }), undefined === input.name || "string" === typeof input.name || _report(_exceptionable, {
8041
- path: _path + ".name",
8042
- expected: "(string | undefined)",
8043
- value: input.name
8044
8077
  }) ].every((flag => flag));
8045
8078
  const _vo191 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) || _report(_exceptionable, {
8046
8079
  path: _path + ".$ref",
@@ -8383,7 +8416,7 @@ class MigrateApplication {
8383
8416
  });
8384
8417
  })();
8385
8418
  const _vu7 = (input, _path, _exceptionable = true) => (() => {
8386
- if (Array.isArray(input.type) && input.type.map(((elem, _index162) => "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 (() => {
8419
+ 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
8420
  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
8421
  })();
8389
8422
  })();
@@ -8509,7 +8542,7 @@ class MigrateApplication {
8509
8542
  };
8510
8543
  }
8511
8544
  nest(config) {
8512
- const program = MigrateAnalyzer.analyze({
8545
+ const program = MigrateApplicationAnalyzer.analyze({
8513
8546
  mode: "nest",
8514
8547
  document: this.document,
8515
8548
  simulate: config.simulate,
@@ -8523,7 +8556,7 @@ class MigrateApplication {
8523
8556
  return this.finalize(config, output);
8524
8557
  }
8525
8558
  sdk(config) {
8526
- const program = MigrateAnalyzer.analyze({
8559
+ const program = MigrateApplicationAnalyzer.analyze({
8527
8560
  mode: "sdk",
8528
8561
  document: this.document,
8529
8562
  simulate: config.simulate,
@@ -8570,14 +8603,14 @@ var MigrateFileArchiver;
8570
8603
 
8571
8604
  var migrate = Object.freeze({
8572
8605
  __proto__: null,
8573
- get MigrateAnalyzer() {
8574
- return MigrateAnalyzer;
8575
- },
8576
8606
  MigrateApplication,
8607
+ get MigrateApplicationAnalyzer() {
8608
+ return MigrateApplicationAnalyzer;
8609
+ },
8577
8610
  get MigrateFileArchiver() {
8578
8611
  return MigrateFileArchiver;
8579
8612
  }
8580
8613
  });
8581
8614
 
8582
- export { MigrateAnalyzer, MigrateApplication, MigrateFileArchiver, migrate as default };
8615
+ export { MigrateApplication, MigrateApplicationAnalyzer, MigrateFileArchiver, migrate as default };
8583
8616
  //# sourceMappingURL=index.mjs.map