@nestia/migrate 4.6.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -17
- package/lib/MigrateApplication.js +746 -718
- package/lib/MigrateApplication.js.map +1 -1
- package/lib/bundles/NEST_TEMPLATE.js +28 -8
- package/lib/bundles/NEST_TEMPLATE.js.map +1 -1
- package/lib/bundles/SDK_TEMPLATE.js +1 -1
- package/lib/index.mjs +767 -725
- package/lib/index.mjs.map +1 -1
- package/lib/programmers/MigrateApiNamespaceProgrammer.js +6 -6
- package/lib/programmers/MigrateApiNamespaceProgrammer.js.map +1 -1
- package/lib/programmers/{MigrateApiSimulatationProgrammer.d.ts → MigrateApiSimulationProgrammer.d.ts} +1 -1
- package/lib/programmers/{MigrateApiSimulatationProgrammer.js → MigrateApiSimulationProgrammer.js} +7 -7
- package/lib/programmers/MigrateApiSimulationProgrammer.js.map +1 -0
- package/package.json +5 -5
- package/src/MigrateApplication.ts +3 -3
- package/src/bundles/NEST_TEMPLATE.ts +28 -8
- package/src/bundles/SDK_TEMPLATE.ts +1 -1
- package/src/executable/bundle.js +1 -1
- package/src/programmers/MigrateApiNamespaceProgrammer.ts +7 -7
- package/src/programmers/{MigrateApiSimulatationProgrammer.ts → MigrateApiSimulationProgrammer.ts} +1 -1
- package/lib/programmers/MigrateApiSimulatationProgrammer.js.map +0 -1
package/lib/index.mjs
CHANGED
@@ -48,7 +48,11 @@ const NEST_TEMPLATE = [ {
|
|
48
48
|
}, {
|
49
49
|
location: ".github/workflows",
|
50
50
|
file: "build.yml",
|
51
|
-
content: "name: build\non:\n pull_request:\n paths:\n - 'src/**'\n - 'test/**'\n - 'package.json'\njobs:\n Ubuntu:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with:\n node-version: 20.x\n - uses: pnpm/action-setup@v4\n with:\n version: 8\n \n - name: Install Backend-Server\n run: pnpm install\n\n - name: Build Swagger\n run: npm run build:swagger\n\n - name: Build SDK\n run: npm run build:sdk\n\n - name: Compile Backend-Server\n run: npm run build\n\n - name: Run Test Program\n run: npm run test
|
51
|
+
content: "name: build\non:\n pull_request:\n paths:\n - 'src/**'\n - 'test/**'\n - 'package.json'\njobs:\n Ubuntu:\n runs-on: ubuntu-latest\n steps:\n - uses: actions/checkout@v4\n - uses: actions/setup-node@v4\n with:\n node-version: 20.x\n - uses: pnpm/action-setup@v4\n with:\n version: 8\n \n - name: Install Backend-Server\n run: pnpm install\n\n - name: Build Swagger\n run: npm run build:swagger\n\n - name: Build SDK\n run: npm run build:sdk\n\n - name: Compile Backend-Server\n run: npm run build\n\n - name: Run Test Program\n run: npm run test -- --simultaneous 16\n\n - name: EsLint\n run: npm run eslint\n"
|
52
|
+
}, {
|
53
|
+
location: ".github/workflows",
|
54
|
+
file: "typos.yml",
|
55
|
+
content: "name: typos\non:\n pull_request:\n\njobs:\n typos:\n runs-on: ubuntu-latest\n steps:\n - name: Checkout Actions Repository\n uses: actions/checkout@v4\n\n - uses: crate-ci/typos@master\n with:\n config: ./typos.toml\n"
|
52
56
|
}, {
|
53
57
|
location: "",
|
54
58
|
file: ".gitignore",
|
@@ -72,11 +76,15 @@ const NEST_TEMPLATE = [ {
|
|
72
76
|
}, {
|
73
77
|
location: "",
|
74
78
|
file: "README.md",
|
75
|
-
content: '# Nestia Template\n## Outline\n[](https://github.com/samchon/nestia-start/actions?query=workflow%3Abuild)\n\nA template repository for backend projects using [nestia](https://github.com/samchon/nestia).\n\nYou can create a new project from this boilerplate by running below command:\n\n```bash\nnpx nestia start <directory>\n```\n\nFor reference, this is a minimal boilerplate project concentrating only on [nestia](https://github.com/samchon/nestia) SDK generation. \n\nIf you wanna much detailed boilerplate project, visit [`@samchon/backend`](https://github.com/samchon/backend).\n\n\n\n\n## Directories and Files\nThis template project has categorized directories like below.\n\nAs you can see from the below, all of the Backend source files are placed into the [src](src/) directory. When you build the TypeScript source files, compiled files would be placed into the `lib` directory following the [tsconfig.json](tsconfig.json) configuration. Otherwise you build client [SDK](#32-sdk) library for npm publishing and their compiled files would be placed into the [packages](packages) directory.\n\n - [packages/api/](packages/api): SDK module built by `npm run build:api`\n - [src/](src): Backend source directory\n - [src/api/](src/api/): Client SDK that would be published to the `@ORGANIZATION/PROJECT-api`\n - [**src/api/functional/**](src/api/functional/): API functions generated by the [`nestia`](https://github.com/samchon/nestia)\n - [**src/api/structures/**](src/api/structures/): DTO structures\n - [src/controllers/](src/controllers/): Controller classes of the Main Program\n - [**test/**](test): Test Automation Program\n - [nestia.config.ts](nestia.config.ts): Configuration file of [`nestia`](https://github.com/samchon/nestia)\n - [package.json](package.json): NPM configuration\n - [tsconfig.json](tsconfig.json): TypeScript configuration for the main program\n - [tsconfig.api.json](tsconfig.api.json): TypeScript configuration for the SDK generation\n\n\n\n\n## NPM Run Commands\nList of the run commands defined in the [package.json](package.json) are like below:\n\n - Test\n - **`test`**: Run test automation program\n - `benchmark`: Run performance benchmark program\n - Build\n - `build`: Build everything\n - `build:main`: Build main program (`src` directory)\n - `build:test` Build test automation program (`test` directory)\n - `build:sdk`: Build SDK into main program only\n - `build:swagger`: Build Swagger Documents\n - **`dev`**: Incremental build for development (test program)\n - Deploy\n - `package:api`: Build and deploy the SDK library to the NPM\n - `start`: Start
|
79
|
+
content: '# Nestia Template\n## Outline\n[](https://github.com/samchon/nestia-start/actions?query=workflow%3Abuild)\n\nA template repository for backend projects using [nestia](https://github.com/samchon/nestia).\n\nYou can create a new project from this boilerplate by running below command:\n\n```bash\nnpx nestia start <directory>\n```\n\nFor reference, this is a minimal boilerplate project concentrating only on [nestia](https://github.com/samchon/nestia) SDK generation. \n\nIf you wanna much detailed boilerplate project, visit [`@samchon/backend`](https://github.com/samchon/backend).\n\n\n\n\n## Directories and Files\nThis template project has categorized directories like below.\n\nAs you can see from the below, all of the Backend source files are placed into the [src](src/) directory. When you build the TypeScript source files, compiled files would be placed into the `lib` directory following the [tsconfig.json](tsconfig.json) configuration. Otherwise you build client [SDK](#32-sdk) library for npm publishing and their compiled files would be placed into the [packages](packages) directory.\n\n - [packages/api/](packages/api): SDK module built by `npm run build:api`\n - [src/](src): Backend source directory\n - [src/api/](src/api/): Client SDK that would be published to the `@ORGANIZATION/PROJECT-api`\n - [**src/api/functional/**](src/api/functional/): API functions generated by the [`nestia`](https://github.com/samchon/nestia)\n - [**src/api/structures/**](src/api/structures/): DTO structures\n - [src/controllers/](src/controllers/): Controller classes of the Main Program\n - [**test/**](test): Test Automation Program\n - [nestia.config.ts](nestia.config.ts): Configuration file of [`nestia`](https://github.com/samchon/nestia)\n - [package.json](package.json): NPM configuration\n - [tsconfig.json](tsconfig.json): TypeScript configuration for the main program\n - [tsconfig.api.json](tsconfig.api.json): TypeScript configuration for the SDK generation\n\n\n\n\n## NPM Run Commands\nList of the run commands defined in the [package.json](package.json) are like below:\n\n - Test\n - **`test`**: Run test automation program\n - `benchmark`: Run performance benchmark program\n - Build\n - `build`: Build everything\n - `build:main`: Build main program (`src` directory)\n - `build:test` Build test automation program (`test` directory)\n - `build:sdk`: Build SDK into main program only\n - `build:swagger`: Build Swagger Documents\n - **`dev`**: Incremental build for development (test program)\n - Deploy\n - `package:api`: Build and deploy the SDK library to the NPM\n - `start`: Start the backend server\n - `start:dev`: Start the backend server with incremental build and reload\n - Webpack\n - `webpack`: Run webpack bundler\n - `webpack:start`: Start the backend server built by webpack\n - `webpack:test`: Run test program to the webpack built\n\n\n\n\n## Specialization\nTransform this template project to be yours.\n\nWhen you\'ve created a new backend project through this template project, you can specialize it to be suitable for you by changing some words. Replace below words through IDE specific function like `Edit > Replace in Files` (*Ctrl + Shift + H*), who\'ve been supported by the VSCode.\n\n| Before | After\n|-----------------|----------------------------------------\n| ORGANIZATION | Your account or corporation name\n| PROJECT | Your own project name\n| AUTHOR | Author name\n| https://github.com/samchon/nestia-start | Your repository URL\n\n\n\n\n## Test Driven Development\nWith [nestia](https://github.com/samchon/nestia) helps to accomplish TDD (Test Driven Development). \n\nJust define DTOs and API controllers\' methods (only declarations) first. After the definitions, and build SDK (Software Development Kit) through [nestia](https://github.com/samchon/nestia) (`npm run build:sdk`). After buildling those SDK, develop test automation program using the SDK, following use-case scenarios in the framework of client side.\n\nDuring the test automation program development, you can find that which API is miss-designed or which requirement analysis is not exact. Development of the main program must be the last step after such validation process during TDD.\n\n> Visit the [samchon/backend](https://github.com/samchon/backend), then you may find much detailed story about this TDD.\n>\n> 1. Definitions\n> 2. SDK\n> 3. Test Automation Program\n> 4. Main Program\n\n```typescript\nimport {\n ArrayUtil,\n GaffComparator,\n RandomGenerator,\n TestValidator,\n} from "@nestia/e2e";\n\nimport api from "@ORGANIZATION/PROJECT-api/lib/index";\nimport { IBbsArticle } from "@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle";\nimport { IPage } from "@ORGANIZATION/PROJECT-api/lib/structures/common/IPage";\n\nexport async function test_api_bbs_article_index_sort(\n connection: api.IConnection,\n): Promise<void> {\n // GENERATE 100 ARTICLES\n const section: string = "general";\n await ArrayUtil.asyncRepeat(100)(() =>\n api.functional.bbs.articles.create(connection, section, {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(5)(),\n body: RandomGenerator.content(8)()(),\n format: "txt",\n files: [],\n password: RandomGenerator.alphabets(8),\n }),\n );\n\n // PREPARE VALIDATOR\n const validator = TestValidator.sort("BbsArticleProvider.index()")(async (\n sort: IPage.Sort<IBbsArticle.IRequest.SortableColumns>,\n ) => {\n const page: IPage<IBbsArticle.ISummary> =\n await api.functional.bbs.articles.index(connection, section, {\n limit: 100,\n sort,\n });\n return page.data;\n });\n\n // DO VALIDATE\n const components = [\n validator("created_at")(GaffComparator.dates((x) => x.created_at)),\n validator("updated_at")(GaffComparator.dates((x) => x.updated_at)),\n validator("title")(GaffComparator.strings((x) => x.title)),\n validator("writer")(GaffComparator.strings((x) => x.writer)),\n validator(\n "writer",\n "title",\n )(GaffComparator.strings((x) => [x.writer, x.title])),\n ];\n for (const comp of components) {\n await comp("+", false);\n await comp("-", false);\n }\n}\n```\n\nFor reference, if you run `npm run benchmark` command, your test functions defined in the [test/features/api](test/features/api) directory would be utilized for performance benchmarking. If you want to see the performance bench result earlier, visit below link please:\n\n - [docs/benchmarks/AMD Ryzen 9 7940HS w Radeon 780M Graphics.md](https://github.com/samchon/nestia-start/blob/master/docs/benchmarks/AMD%20Ryzen%209%207940HS%20w%20Radeon%20780M%20Graphics.md)'
|
76
80
|
}, {
|
77
81
|
location: "docs/benchmarks",
|
78
82
|
file: "AMD Ryzen 9 7940HS w Radeon 780M Graphics.md",
|
79
83
|
content: '# Benchmark Report\n> Generated by [`@nestia/benchmark`](https://github.com/samchon/nestia)\n\n - Specifications\n - CPU: AMD Ryzen 9 7940HS w/ Radeon 780M Graphics \n - RAM: 31 GB\n - NodeJS Version: v20.10.0\n - Backend Server: 1 core / 1 thread\n - Arguments\n - Count: 40,000\n - Threads: 4\n - Simultaneous: 32\n - Time\n - Start: 2024-10-29T19:14:35.941Z\n - Complete: 2024-10-29T19:16:11.418Z\n - Elapsed: 95,477 ms\n\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\n----|----|----|----|----|----|----\nTotal | 41,586 | 41,586 | 69.24 | 73.05 | 5 | 546\n\n> Unit: milliseconds\n\n## Memory Consumptions\n```mermaid\nxychart-beta\n x-axis "Time (second)"\n y-axis "Memory (MB)"\n line "Resident Set Size" [122, 156, 159, 142, 154, 165, 184, 185, 187, 189, 200, 205, 209, 217, 221, 225, 229, 224, 230, 235, 242, 250, 256, 262, 267, 272, 234, 237, 249, 259, 266, 273, 285, 292, 291, 216, 225, 235, 243, 200, 208, 214, 186, 186, 171, 177, 187, 199, 185, 192, 205, 171, 180, 158, 170, 179, 163, 163, 176, 188, 193, 202, 213, 219, 230, 239, 256, 265, 283, 301, 240, 249, 257, 267, 284, 282, 290, 202, 213, 166, 178, 188, 200, 203, 208, 180, 191, 199, 175]\n line "Heap Total" [85, 116, 120, 103, 114, 124, 146, 146, 147, 148, 158, 166, 170, 176, 180, 184, 187, 185, 190, 195, 203, 211, 217, 222, 225, 229, 194, 197, 209, 218, 225, 232, 241, 249, 247, 176, 185, 194, 202, 160, 168, 173, 146, 146, 130, 136, 146, 158, 145, 151, 165, 129, 139, 116, 128, 137, 120, 123, 136, 148, 152, 161, 172, 179, 189, 198, 215, 223, 241, 257, 200, 209, 216, 227, 244, 242, 249, 163, 174, 127, 136, 147, 159, 162, 166, 138, 150, 158, 132]\n line "Heap Used + External" [69, 94, 62, 82, 88, 107, 71, 83, 93, 107, 136, 72, 76, 85, 92, 106, 139, 48, 68, 69, 86, 95, 108, 116, 140, 175, 67, 74, 88, 112, 125, 136, 142, 169, 180, 91, 104, 105, 121, 60, 71, 91, 64, 74, 86, 110, 121, 135, 76, 82, 103, 70, 93, 66, 91, 107, 76, 75, 95, 101, 115, 127, 136, 154, 165, 168, 196, 193, 214, 232, 84, 94, 101, 118, 145, 147, 149, 86, 96, 72, 90, 112, 126, 133, 132, 78, 87, 107, 88]\n line "Heap Used Only" [66, 89, 59, 78, 83, 100, 68, 79, 88, 101, 129, 68, 72, 80, 86, 100, 131, 45, 64, 65, 81, 90, 103, 110, 133, 168, 64, 71, 84, 108, 120, 130, 136, 162, 173, 88, 100, 101, 117, 58, 68, 87, 61, 71, 83, 107, 118, 130, 73, 79, 99, 67, 89, 63, 88, 103, 74, 72, 91, 98, 111, 123, 132, 149, 160, 163, 190, 187, 208, 225, 81, 90, 97, 114, 140, 143, 145, 83, 93, 70, 87, 108, 122, 130, 128, 76, 84, 104, 85]\n```\n\n> - 🟦 Resident Set Size\n> - 🟢 Heap Total\n> - 🔴 Heap Used + External\n> - 🟡 Heap Used Only\n\n## Endpoints\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\n----|----|----|----|----|----|----\nPATCH /bbs/articles/:section | 6,439 | 6,439 | 108.37 | 76.56 | 6 | 546\nPUT /bbs/articles/:section/:id | 380 | 380 | 78.52 | 69.03 | 6 | 296\nGET /bbs/articles/:section/:id | 917 | 917 | 77.65 | 69.84 | 6 | 463\nDELETE /bbs/articles/:section/:id | 201 | 201 | 73.89 | 63.55 | 7 | 307\nPOST /bbs/articles/:section | 33,649 | 33,649 | 61.39 | 70.04 | 5 | 546\n\n> Unit: milliseconds\n\n## Failures\nMethod | Path | Count | Failures\n-------|------|-------|----------'
|
84
|
+
}, {
|
85
|
+
location: "",
|
86
|
+
file: "nest-cli.json",
|
87
|
+
content: '{\n "$schema": "https://json.schemastore.org/nest-cli",\n "collection": "@nestjs/schematics",\n "sourceRoot": "src",\n "entryFile": "executable/server",\n "compilerOptions": {\n "deleteOutDir": true\n }\n}\n'
|
80
88
|
}, {
|
81
89
|
location: "",
|
82
90
|
file: "nestia.config.ts",
|
@@ -84,7 +92,7 @@ const NEST_TEMPLATE = [ {
|
|
84
92
|
}, {
|
85
93
|
location: "",
|
86
94
|
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.
|
95
|
+
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:dev": "nest start --watch",\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.8.2",\n "@nestia/sdk": "^5.0.0",\n "@nestjs/cli": "^11.0.5",\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.4.0",\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.3",\n "typescript-transform-paths": "^3.5.3",\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": "^5.0.0",\n "@nestia/fetcher": "^5.0.0",\n "@nestjs/common": "^11.0.10",\n "@nestjs/core": "^11.0.10",\n "@nestjs/platform-express": "^11.0.10",\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.6.4",\n "uuid": "^9.0.0"\n },\n "stackblitz": {\n "startCommand": "npm run prepare && npm run build:test && npm run test"\n }\n}'
|
88
96
|
}, {
|
89
97
|
location: "packages/api",
|
90
98
|
file: ".gitignore",
|
@@ -100,7 +108,7 @@ const NEST_TEMPLATE = [ {
|
|
100
108
|
}, {
|
101
109
|
location: "packages/api",
|
102
110
|
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": "^
|
111
|
+
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": "^5.0.0",\n "tgrid": "^1.1.0",\n "typia": "^7.6.4"\n }\n}'
|
104
112
|
}, {
|
105
113
|
location: "packages/api",
|
106
114
|
file: "rollup.config.js",
|
@@ -120,7 +128,7 @@ const NEST_TEMPLATE = [ {
|
|
120
128
|
}, {
|
121
129
|
location: "src",
|
122
130
|
file: "MyConfiguration.ts",
|
123
|
-
content: 'import fs from "fs";\nimport path from "path";\n\nimport { MyGlobal } from "./MyGlobal";\n\nexport namespace MyConfiguration {\n export const API_PORT = () => Number(MyGlobal.env.PROJECT_API_PORT);\n\n export const ROOT = (() => {\n const
|
131
|
+
content: 'import fs from "fs";\nimport path from "path";\n\nimport { MyGlobal } from "./MyGlobal";\n\nexport namespace MyConfiguration {\n export const API_PORT = () => Number(MyGlobal.env.PROJECT_API_PORT);\n\n export const ROOT = (() => {\n const split: string[] = __dirname.split(path.sep);\n return split.at(-1) === "src" && split.at(-2) === "bin"\n ? path.resolve(__dirname + "/../..")\n : fs.existsSync(__dirname + "/.env")\n ? __dirname\n : path.resolve(__dirname + "/..");\n })();\n}\n'
|
124
132
|
}, {
|
125
133
|
location: "src",
|
126
134
|
file: "MyGlobal.ts",
|
@@ -177,6 +185,10 @@ const NEST_TEMPLATE = [ {
|
|
177
185
|
location: "src/utils",
|
178
186
|
file: "MapUtil.ts",
|
179
187
|
content: "export namespace MapUtil {\n export function take<Key, T>(\n dict: Map<Key, T>,\n key: Key,\n generator: () => T,\n ): T {\n const oldbie: T | undefined = dict.get(key);\n if (oldbie) return oldbie;\n\n const value: T = generator();\n dict.set(key, value);\n return value;\n }\n}\n"
|
188
|
+
}, {
|
189
|
+
location: "test",
|
190
|
+
file: "TestAutomation.ts",
|
191
|
+
content: 'import { DynamicExecutor } from "@nestia/e2e";\nimport chalk from "chalk";\nimport { sleep_for } from "tstl";\n\nimport { MyConfiguration } from "../src/MyConfiguration";\nimport api from "../src/api";\nimport { ArgumentParser } from "./helpers/ArgumentParser";\n\nexport namespace TestAutomation {\n export interface IProps<T> {\n open(options: IOptions): Promise<T>;\n close(backend: T): Promise<void>;\n }\n\n export interface IOptions {\n simultaneous: number;\n include?: string[];\n exclude?: string[];\n }\n\n export const execute = async <T>(props: IProps<T>): Promise<void> => {\n // OPEN BACKEND\n const options: IOptions = await getOptions();\n const backend: T = await props.open(options);\n\n // DO TEST\n const connection: api.IConnection = {\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\n };\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\n prefix: "test",\n location: __dirname + "/features",\n parameters: () => [\n {\n host: connection.host,\n encryption: connection.encryption,\n },\n ],\n filter: (func) =>\n (!options.include?.length ||\n (options.include ?? []).some((str) => func.includes(str))) &&\n (!options.exclude?.length ||\n (options.exclude ?? []).every((str) => !func.includes(str))),\n onComplete: (exec) => {\n const trace = (str: string) =>\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\n if (exec.error === null) {\n const elapsed: number =\n new Date(exec.completed_at).getTime() -\n new Date(exec.started_at).getTime();\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\n } else trace(chalk.red(exec.error.name));\n },\n simultaneous: options.simultaneous,\n });\n\n // TERMINATE - WAIT FOR BACKGROUND EVENTS\n await sleep_for(2500);\n await props.close(backend);\n\n const failures: DynamicExecutor.IExecution[] = report.executions.filter(\n (exec) => exec.error !== null,\n );\n if (failures.length === 0) {\n console.log("Success");\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\n } else {\n for (const f of failures) console.log(f.error);\n process.exit(-1);\n }\n\n console.log(\n [\n `All: #${report.executions.length}`,\n `Success: #${report.executions.length - failures.length}`,\n `Failed: #${failures.length}`,\n ].join("\\n"),\n );\n };\n}\n\nconst getOptions = () =>\n ArgumentParser.parse<TestAutomation.IOptions>(\n async (command, prompt, action) => {\n command.option(\n "--simultaneous <number>",\n "number of simultaneous requests",\n );\n command.option("--include <string...>", "include feature files");\n command.option("--exclude <string...>", "exclude feature files");\n\n return action(async (options) => {\n options.simultaneous = Number(\n options.simultaneous ??\n (await prompt.number("simultaneous")(\n "Number of simultaneous requests to make",\n )),\n );\n return options as TestAutomation.IOptions;\n });\n },\n );\n'
|
180
192
|
}, {
|
181
193
|
location: "test/benchmark",
|
182
194
|
file: "index.ts",
|
@@ -192,7 +204,7 @@ const NEST_TEMPLATE = [ {
|
|
192
204
|
}, {
|
193
205
|
location: "test",
|
194
206
|
file: "index.ts",
|
195
|
-
content: 'import {
|
207
|
+
content: 'import { MyBackend } from "../src/MyBackend";\nimport { MyGlobal } from "../src/MyGlobal";\nimport { TestAutomation } from "./TestAutomation";\n\nconst main = async (): Promise<void> => {\n MyGlobal.testing = true;\n await TestAutomation.execute({\n open: async () => {\n const backend: MyBackend = new MyBackend();\n await backend.open();\n return backend;\n },\n close: (backend) => backend.close(),\n });\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n'
|
196
208
|
}, {
|
197
209
|
location: "test",
|
198
210
|
file: "tsconfig.json",
|
@@ -200,11 +212,15 @@ const NEST_TEMPLATE = [ {
|
|
200
212
|
}, {
|
201
213
|
location: "test",
|
202
214
|
file: "webpack.ts",
|
203
|
-
content: 'import
|
215
|
+
content: 'import cp from "child_process";\nimport { sleep_for } from "tstl";\n\nimport { MyConfiguration } from "../src/MyConfiguration";\nimport { MyGlobal } from "../src/MyGlobal";\nimport { TestAutomation } from "./TestAutomation";\n\nconst wait = async (): Promise<void> => {\n while (true)\n try {\n await fetch(`http://localhost:${MyConfiguration.API_PORT()}/dsafdsafsd`);\n return;\n } catch (exp) {\n await sleep_for(100);\n }\n};\n\nconst main = async (): Promise<void> => {\n MyGlobal.testing = true;\n await TestAutomation.execute({\n open: async () => {\n const backend: cp.ChildProcess = cp.fork(\n `${MyConfiguration.ROOT}/dist/server.js`,\n {\n cwd: `${MyConfiguration.ROOT}/dist`,\n },\n );\n await wait();\n return backend;\n },\n close: async (backend) => {\n backend.kill();\n },\n });\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n'
|
204
216
|
}, {
|
205
217
|
location: "",
|
206
218
|
file: "tsconfig.json",
|
207
|
-
content: '{\n "compilerOptions": {\n /* Visit https://aka.ms/tsconfig to read more about this file */\n\n /* Projects */\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\n\n /* Language and Environment */\n "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\n // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */\n // "jsx": "preserve", /* Specify what JSX code is generated. */\n "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\n "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\n\n /* Modules */\n "module": "commonjs", /* Specify what module code is generated. */\n // "rootDir": "./", /* Specify the root folder within your source files. */\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\n "paths": {\n "@ORGANIZATION/PROJECT-api/lib/*": ["./src/api/*"],\n "@ORGANIZATION/PROJECT-api": ["./src/api"],\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\n // "resolveJsonModule": true, /* Enable importing .json files. */\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'<reference>\'s from expanding the number of files TypeScript should add to a project. */\n\n /* JavaScript Support */\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\n\n /* Emit */\n // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */\n // "declarationMap": true, /* Create sourcemaps for d.ts files. */\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */\n // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\n "outDir": "./lib", /* Specify an output folder for all emitted files. */\n // "removeComments": true, /* Disable emitting comments. */\n // "noEmit": true, /* Disable emitting files from a compilation. */\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\n // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */\n // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\n "newLine": "lf", /* Set the newline character for emitting files. */\n "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\n\n /* Interop Constraints */\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */\n // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */\n\n /* Type Checking */\n "strict": true, /* Enable all strict type-checking options. */\n // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\n "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\n "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\n "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\n "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\n\n /* Completeness */\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\n "plugins": [\n { "transform": "typescript-transform-paths" },\n { "transform": "typia/lib/transform" },\n { "transform": "@nestia/core/lib/transform" },\n ]\n },\n "include": [\n "src"\n ],\n "exclude": [\n "node_modules",\n "packages",\n ]\n}\n'
|
219
|
+
content: '{\n "compilerOptions": {\n /* Visit https://aka.ms/tsconfig to read more about this file */\n\n /* Projects */\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\n\n /* Language and Environment */\n "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\n // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */\n // "jsx": "preserve", /* Specify what JSX code is generated. */\n "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\n "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\n\n /* Modules */\n "module": "commonjs", /* Specify what module code is generated. */\n // "rootDir": "./", /* Specify the root folder within your source files. */\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\n "paths": {\n "@ORGANIZATION/PROJECT-api/lib/*": ["./src/api/*"],\n "@ORGANIZATION/PROJECT-api": ["./src/api"],\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\n // "resolveJsonModule": true, /* Enable importing .json files. */\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'<reference>\'s from expanding the number of files TypeScript should add to a project. */\n\n /* JavaScript Support */\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\n\n /* Emit */\n // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */\n // "declarationMap": true, /* Create sourcemaps for d.ts files. */\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */\n // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\n "outDir": "./lib", /* Specify an output folder for all emitted files. */\n // "removeComments": true, /* Disable emitting comments. */\n // "noEmit": true, /* Disable emitting files from a compilation. */\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\n // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */\n // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\n "newLine": "lf", /* Set the newline character for emitting files. */\n "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\n\n /* Interop Constraints */\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */\n // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */\n\n /* Type Checking */\n "strict": true, /* Enable all strict type-checking options. */\n // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\n "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\n "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\n "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\n "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\n\n /* Completeness */\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\n "plugins": [\n { "transform": "typescript-transform-paths" },\n { "transform": "typia/lib/transform" },\n { \n "transform": "@nestia/core/lib/transform",\n /**\n * Validate request body.\n * \n * - "assert": Use typia.assert() function\n * - "is": Use typia.is() function\n * - "validate": Use typia.validate() function\n * - "assertEquals": Use typia.assertEquals() function\n * - "equals": Use typia.equals() function\n * - "validateEquals": Use typia.validateEquals() function\n */\n "validate": "validate",\n /**\n * Validate JSON typed response body.\n * \n * - "assert": Use typia.assertStringify() function\n * - "is": Use typia.isStringify() function\n * - "validate": Use typia.validateStringify() function\n * - "validate.log": typia.validateStringify(), but do not throw and just log it\n * - "stringify": Use typia.stringify() function, but dangerous\n * - null: Just use JSON.stringify() function, without boosting\n */\n "stringify": "assert",\n },\n ]\n },\n "include": [\n "src"\n ],\n "exclude": [\n "node_modules",\n "packages",\n ]\n}\n'
|
220
|
+
}, {
|
221
|
+
location: "",
|
222
|
+
file: "typos.toml",
|
223
|
+
content: '[default]\nlocale = \'en-us\'\nextend-ignore-re = [\n "(?Rm)^.*(\x3c!--|#|//)\\\\s*spellchecker:disable-line(--\x3e|\\n)?$",\n "(?s)(\x3c!--|#|//)\\\\s*spellchecker:off\\\\s*(--\x3e|\\n).*?(\x3c!--|#|//)\\\\s*spellchecker:on",\n]\n\n[default.extend-words]\nJeongho = "Jeongho"\nNam = "Nam"\ntypia = "typia"\n\n[files]\nextend-exclude = ["*.json"]'
|
208
224
|
}, {
|
209
225
|
location: "",
|
210
226
|
file: "webpack.config.js",
|
@@ -238,7 +254,7 @@ const SDK_TEMPLATE = [ {
|
|
238
254
|
}, {
|
239
255
|
location: "",
|
240
256
|
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": "^
|
257
|
+
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": "^5.0.0",\n "tgrid": "^1.1.0",\n "typia": "^7.6.4"\n },\n "devDependencies": {\n "@nestia/e2e": "^0.8.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/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.3",\n "typescript-transform-paths": "^3.5.3"\n }\n}'
|
242
258
|
}, {
|
243
259
|
location: "",
|
244
260
|
file: "prettier.config.js",
|
@@ -492,10 +508,10 @@ var MigrateApiFunctionProgrammer;
|
|
492
508
|
};
|
493
509
|
})(MigrateApiFunctionProgrammer || (MigrateApiFunctionProgrammer = {}));
|
494
510
|
|
495
|
-
var
|
511
|
+
var MigrateApiSimulationProgrammer;
|
496
512
|
|
497
|
-
(function(
|
498
|
-
|
513
|
+
(function(MigrateApiSimulationProgrammer) {
|
514
|
+
MigrateApiSimulationProgrammer.random = components => importer => route => {
|
499
515
|
const output = route.success ? MigrateSchemaProgrammer.write(components)(importer)(route.success.schema) : TypeFactory.keyword("void");
|
500
516
|
return constant$1("random")(ts.factory.createArrowFunction(undefined, undefined, [ ts.factory.createParameterDeclaration(undefined, undefined, "g", ts.factory.createToken(ts.SyntaxKind.QuestionToken), ts.factory.createTypeReferenceNode(ts.factory.createIdentifier("Partial"), [ ts.factory.createTypeReferenceNode(`${importer.external({
|
501
517
|
type: "default",
|
@@ -507,7 +523,7 @@ var MigrateApiSimulatationProgrammer;
|
|
507
523
|
name: "typia"
|
508
524
|
})), "random"), [ output ], [ ts.factory.createIdentifier("g") ])));
|
509
525
|
};
|
510
|
-
|
526
|
+
MigrateApiSimulationProgrammer.simulate = components => importer => route => {
|
511
527
|
const caller = () => ts.factory.createCallExpression(ts.factory.createIdentifier("random"), undefined, [ ts.factory.createConditionalExpression(ts.factory.createLogicalAnd(ts.factory.createStrictEquality(ts.factory.createStringLiteral("object"), ts.factory.createTypeOfExpression(ts.factory.createIdentifier("connection.simulate"))), ts.factory.createStrictInequality(ts.factory.createNull(), ts.factory.createIdentifier("connection.simulate"))), undefined, ts.factory.createIdentifier("connection.simulate"), undefined, ts.factory.createIdentifier("undefined")) ]);
|
512
528
|
return constant$1("simulate")(ts.factory.createArrowFunction(undefined, undefined, MigrateApiFunctionProgrammer.writeParameterDeclarations(components)(importer)(route), ts.factory.createTypeReferenceNode(route.success ? "Output" : "void"), undefined, ts.factory.createBlock([ ...assert(components)(importer)(route), ts.factory.createReturnStatement(caller()) ], true)));
|
513
529
|
};
|
@@ -554,7 +570,7 @@ var MigrateApiSimulatationProgrammer;
|
|
554
570
|
library: "@nestia/fetcher",
|
555
571
|
name: "HttpError"
|
556
572
|
})) ], [ ts.factory.createIdentifier("exp") ])), ts.factory.createThrowStatement(ts.factory.createIdentifier("exp"))), ts.factory.createReturnStatement(ts.factory.createAsExpression(ts.factory.createObjectLiteralExpression([ ts.factory.createPropertyAssignment("success", ts.factory.createFalse()), ts.factory.createPropertyAssignment("status", ts.factory.createIdentifier("exp.status")), ts.factory.createPropertyAssignment("headers", ts.factory.createIdentifier("exp.headers")), ts.factory.createPropertyAssignment("data", ts.factory.createIdentifier("exp.toJSON().message")) ], true), TypeFactory.keyword("any"))) ], true)), undefined);
|
557
|
-
})(
|
573
|
+
})(MigrateApiSimulationProgrammer || (MigrateApiSimulationProgrammer = {}));
|
558
574
|
|
559
575
|
const constant$1 = name => expression => ts.factory.createVariableStatement([ ts.factory.createModifier(ts.SyntaxKind.ExportKeyword) ], ts.factory.createVariableDeclarationList([ ts.factory.createVariableDeclaration(ts.factory.createIdentifier(name), undefined, undefined, expression) ], ts.NodeFlags.Const));
|
560
576
|
|
@@ -563,7 +579,7 @@ var MigrateApiNamespaceProgrammer;
|
|
563
579
|
(function(MigrateApiNamespaceProgrammer) {
|
564
580
|
MigrateApiNamespaceProgrammer.write = config => components => importer => route => {
|
565
581
|
const types = writeTypes(components)(importer)(route);
|
566
|
-
return ts.factory.createModuleDeclaration([ ts.factory.createToken(ts.SyntaxKind.ExportKeyword) ], ts.factory.createIdentifier(route.accessor.at(-1)), ts.factory.createModuleBlock([ ...types, ...types.length ? [ FilePrinter.newLine() ] : [], writeMetadata(components)(importer)(route), FilePrinter.newLine(), writePath(components)(importer)(route), ...config.simulate ? [
|
582
|
+
return ts.factory.createModuleDeclaration([ ts.factory.createToken(ts.SyntaxKind.ExportKeyword) ], ts.factory.createIdentifier(route.accessor.at(-1)), ts.factory.createModuleBlock([ ...types, ...types.length ? [ FilePrinter.newLine() ] : [], writeMetadata(components)(importer)(route), FilePrinter.newLine(), writePath(components)(importer)(route), ...config.simulate ? [ MigrateApiSimulationProgrammer.random(components)(importer)(route), MigrateApiSimulationProgrammer.simulate(components)(importer)(route) ] : [] ]), ts.NodeFlags.Namespace);
|
567
583
|
};
|
568
584
|
MigrateApiNamespaceProgrammer.writePathCallExpression = route => ts.factory.createCallExpression(ts.factory.createIdentifier(`${route.accessor.at(-1)}.path`), undefined, [ ...route.parameters.map((p => ts.factory.createIdentifier(p.key))), ...route.query ? [ ts.factory.createIdentifier(route.query.key) ] : [] ]);
|
569
585
|
const writeTypes = components => importer => route => {
|
@@ -590,9 +606,9 @@ var MigrateApiNamespaceProgrammer;
|
|
590
606
|
const out = body => constant("path")(ts.factory.createArrowFunction([], [], [ ...route.parameters.map((p => IdentifierFactory.parameter(p.key, MigrateSchemaProgrammer.write(components)(importer)(p.schema)))), ...route.query ? [ IdentifierFactory.parameter(route.query.key, ts.factory.createTypeReferenceNode(`${route.accessor.at(-1)}.Query`)) ] : [] ], undefined, undefined, body));
|
591
607
|
const template = () => {
|
592
608
|
const path = getPath(route);
|
593
|
-
const
|
594
|
-
if (
|
595
|
-
return ts.factory.createTemplateExpression(ts.factory.createTemplateHead(
|
609
|
+
const split = path.split(":");
|
610
|
+
if (split.length === 1) return ts.factory.createStringLiteral(path);
|
611
|
+
return ts.factory.createTemplateExpression(ts.factory.createTemplateHead(split[0]), split.slice(1).map(((s, i, arr) => {
|
596
612
|
const name = s.split("/")[0];
|
597
613
|
return ts.factory.createTemplateSpan(ts.factory.createCallExpression(ts.factory.createIdentifier("encodeURIComponent"), undefined, [ ts.factory.createBinaryExpression(ts.factory.createIdentifier(route.parameters.find((p => p.name === name)).key), ts.factory.createToken(ts.SyntaxKind.QuestionQuestionToken), ts.factory.createStringLiteral("null")) ]), (i !== arr.length - 1 ? ts.factory.createTemplateMiddle : ts.factory.createTemplateTail)(s.substring(name.length)));
|
598
614
|
})));
|
@@ -1061,7 +1077,7 @@ class MigrateApplication {
|
|
1061
1077
|
const _io13 = input => (undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1062
1078
|
const _io14 = input => (undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && "string" === input.type && (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));
|
1063
1079
|
const _io15 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu0(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type && (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));
|
1064
|
-
const _io16 = input => Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem))) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu0(input.additionalItems))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) &&
|
1080
|
+
const _io16 = input => "array" === input.type && (Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu0(elem)))) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu0(input.additionalItems))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && (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));
|
1065
1081
|
const _io17 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io8(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu0(input.additionalProperties))) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1066
1082
|
const _io18 = input => "string" === typeof input.$ref && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1067
1083
|
const _io19 = input => Array.isArray(input.oneOf) && input.oneOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu1(elem))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io22(input.discriminator)) && (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));
|
@@ -1135,33 +1151,33 @@ class MigrateApplication {
|
|
1135
1151
|
if (undefined === value) return true;
|
1136
1152
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu2(value);
|
1137
1153
|
}));
|
1138
|
-
const _io53 = input => (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) &&
|
1139
|
-
const _io54 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) &&
|
1140
|
-
const _io55 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) &&
|
1141
|
-
const _io56 = input => (null === input["default"] || undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "string" === typeof elem))) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) &&
|
1142
|
-
const _io57 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) &&
|
1143
|
-
const _io58 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io52(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
1144
|
-
const _io59 = input => "string" === typeof input.$ref && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true
|
1145
|
-
const _io60 = input => null !==
|
1146
|
-
const _io61 = input => "
|
1147
|
-
const _io62 = input =>
|
1148
|
-
const _io63 = input =>
|
1154
|
+
const _io53 = input => (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "boolean" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples));
|
1155
|
+
const _io54 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "integer" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples));
|
1156
|
+
const _io55 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "number" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples));
|
1157
|
+
const _io56 = input => (null === input["default"] || undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "string" === typeof elem))) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "string" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples));
|
1158
|
+
const _io57 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "array" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples));
|
1159
|
+
const _io58 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io52(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "object" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples));
|
1160
|
+
const _io59 = input => "string" === typeof input.$ref && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1161
|
+
const _io60 = input => Array.isArray(input["x-anyOf"]) && input["x-anyOf"].every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem))) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1162
|
+
const _io61 = input => Array.isArray(input["x-oneOf"]) && input["x-oneOf"].every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem))) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1163
|
+
const _io62 = input => "null" === input.type && (null === input["default"] || undefined === input["default"]) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1164
|
+
const _io63 = input => null !== input.type && undefined === input.type && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1149
1165
|
const _io64 = input => Object.keys(input).every((key => {
|
1150
1166
|
const value = input[key];
|
1151
1167
|
if (undefined === value) return true;
|
1152
1168
|
return "object" === typeof value && null !== value && _iu10(value);
|
1153
1169
|
}));
|
1154
|
-
const _io65 = input => (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) &&
|
1155
|
-
const _io66 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) &&
|
1156
|
-
const _io67 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) &&
|
1157
|
-
const _io68 = input => (null === input["default"] || undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "string" === typeof elem))) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) &&
|
1158
|
-
const _io69 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) &&
|
1159
|
-
const _io70 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io52(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) &&
|
1160
|
-
const _io71 = input => "string" === typeof input.$ref && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true &&
|
1161
|
-
const _io72 = input => null !==
|
1162
|
-
const _io73 = input => "
|
1163
|
-
const _io74 = input =>
|
1164
|
-
const _io75 = input =>
|
1170
|
+
const _io65 = input => (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "boolean" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples)) && "string" === typeof input.name && "string" === typeof input["in"];
|
1171
|
+
const _io66 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "integer" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples)) && "string" === typeof input.name && "string" === typeof input["in"];
|
1172
|
+
const _io67 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "number" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples)) && "string" === typeof input.name && "string" === typeof input["in"];
|
1173
|
+
const _io68 = input => (null === input["default"] || undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "string" === typeof elem))) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "string" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples)) && "string" === typeof input.name && "string" === typeof input["in"];
|
1174
|
+
const _io69 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu2(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "array" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples)) && "string" === typeof input.name && "string" === typeof input["in"];
|
1175
|
+
const _io70 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io52(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu2(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "object" === input.type && (undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"]) && (undefined === input.examples || Array.isArray(input.examples)) && "string" === typeof input.name && "string" === typeof input["in"];
|
1176
|
+
const _io71 = input => "string" === typeof input.$ref && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "string" === typeof input.name && "string" === typeof input["in"];
|
1177
|
+
const _io72 = input => Array.isArray(input["x-anyOf"]) && input["x-anyOf"].every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem))) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "string" === typeof input.name && "string" === typeof input["in"];
|
1178
|
+
const _io73 = input => Array.isArray(input["x-oneOf"]) && input["x-oneOf"].every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu2(elem))) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "string" === typeof input.name && "string" === typeof input["in"];
|
1179
|
+
const _io74 = input => "null" === input.type && (null === input["default"] || undefined === input["default"]) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "string" === typeof input.name && "string" === typeof input["in"];
|
1180
|
+
const _io75 = input => null !== input.type && undefined === input.type && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "string" === typeof input.name && "string" === typeof input["in"];
|
1165
1181
|
const _io76 = input => "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu2(input.schema) && "string" === typeof input.name && "string" === typeof input["in"] && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required);
|
1166
1182
|
const _io77 = input => Object.keys(input).every((key => {
|
1167
1183
|
const value = input[key];
|
@@ -1186,15 +1202,15 @@ class MigrateApplication {
|
|
1186
1202
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io87(value);
|
1187
1203
|
}));
|
1188
1204
|
const _io87 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu3(elem)))) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io89(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io89(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io89(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io89(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io89(input.patch)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io89(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io89(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io89(input.trace));
|
1189
|
-
const _io88 = input => "string" === typeof input.$ref && RegExp(/^#\/parameters\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true
|
1205
|
+
const _io88 = input => "string" === typeof input.$ref && RegExp(/^#\/parameters\/(.*)/).test(input.$ref) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1190
1206
|
const _io89 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu4(elem)))) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io91(input.responses)) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io46(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
1191
|
-
const _io90 = input => "string" === typeof input.$ref && RegExp(/^#\/definitions\/parameters\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true
|
1207
|
+
const _io90 = input => "string" === typeof input.$ref && RegExp(/^#\/definitions\/parameters\/(.*)/).test(input.$ref) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1192
1208
|
const _io91 = input => Object.keys(input).every((key => {
|
1193
1209
|
const value = input[key];
|
1194
1210
|
if (undefined === value) return true;
|
1195
1211
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu12(value);
|
1196
1212
|
}));
|
1197
|
-
const _io92 = input => "string" === typeof input.$ref && RegExp(/^#\/definitions\/responses\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true
|
1213
|
+
const _io92 = input => "string" === typeof input.$ref && RegExp(/^#\/definitions\/responses\/(.*)/).test(input.$ref) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1198
1214
|
const _io93 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
1199
1215
|
const _io94 = input => null !== input.openapi && undefined !== input.openapi && ("3.0" === input.openapi || "string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io95(elem)))) && (undefined === input.info || "object" === typeof input.info && null !== input.info && _io98(input.info)) && (undefined === input.components || "object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && _io101(input.components)) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && _io142(input.paths)) && (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 => "object" === typeof elem && null !== elem && _io149(elem))));
|
1200
1216
|
const _io95 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && _io96(input.variables));
|
@@ -1213,19 +1229,19 @@ class MigrateApplication {
|
|
1213
1229
|
if (undefined === value) return true;
|
1214
1230
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
1215
1231
|
}));
|
1216
|
-
const _io103 = input => (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) && "boolean" === input.type && (undefined === input.
|
1217
|
-
const _io104 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input.
|
1218
|
-
const _io105 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && (undefined === input.
|
1219
|
-
const _io106 = input => (null === input["default"] || undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "string" === typeof elem))) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && "string" === input.type && (undefined === input.
|
1220
|
-
const _io107 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu5(input.items) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type && (undefined === input.
|
1221
|
-
const _io108 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io102(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.
|
1232
|
+
const _io103 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) && "boolean" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1233
|
+
const _io104 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1234
|
+
const _io105 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1235
|
+
const _io106 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "string" === typeof elem))) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && "string" === input.type && (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));
|
1236
|
+
const _io107 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu5(input.items)) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type && (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));
|
1237
|
+
const _io108 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io102(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu5(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1222
1238
|
const _io109 = input => "string" === typeof input.$ref && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1223
|
-
const _io110 = input =>
|
1224
|
-
const _io111 = input => "
|
1225
|
-
const _io112 = input => Array.isArray(input.
|
1226
|
-
const _io113 = input =>
|
1227
|
-
const _io114 = input =>
|
1228
|
-
const _io115 = input => "string" === typeof input.
|
1239
|
+
const _io110 = input => Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1240
|
+
const _io111 = input => Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1241
|
+
const _io112 = input => Array.isArray(input.oneOf) && input.oneOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io113(input.discriminator)) && (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));
|
1242
|
+
const _io113 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io23(input.mapping));
|
1243
|
+
const _io114 = input => (null === input["default"] || undefined === input["default"]) && "null" === input.type && (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));
|
1244
|
+
const _io115 = input => null !== input.type && undefined === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1229
1245
|
const _io116 = input => Object.keys(input).every((key => {
|
1230
1246
|
const value = input[key];
|
1231
1247
|
if (undefined === value) return true;
|
@@ -1304,7 +1320,7 @@ class MigrateApplication {
|
|
1304
1320
|
}));
|
1305
1321
|
const _io148 = 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));
|
1306
1322
|
const _io149 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
1307
|
-
const _io150 = input => "string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io151(elem)))) && (undefined === input.info || "object" === typeof input.info && null !== input.info && _io154(input.info)) && (undefined === input.components || "object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && _io157(input.components)) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) &&
|
1323
|
+
const _io150 = input => "string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io151(elem)))) && (undefined === input.info || "object" === typeof input.info && null !== input.info && _io154(input.info)) && (undefined === input.components || "object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && _io157(input.components)) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && _io175(input.paths)) && (undefined === input.webhooks || "object" === typeof input.webhooks && null !== input.webhooks && false === Array.isArray(input.webhooks) && _io208(input.webhooks)) && (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 => "object" === typeof elem && null !== elem && _io210(elem))));
|
1308
1324
|
const _io151 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && _io152(input.variables));
|
1309
1325
|
const _io152 = input => Object.keys(input).every((key => {
|
1310
1326
|
const value = input[key];
|
@@ -1315,111 +1331,112 @@ class MigrateApplication {
|
|
1315
1331
|
const _io154 = input => "string" === typeof input.title && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && _io155(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && _io156(input.license)) && "string" === typeof input.version;
|
1316
1332
|
const _io155 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email);
|
1317
1333
|
const _io156 = input => "string" === typeof input.name && (undefined === input.identifier || "string" === typeof input.identifier) && (undefined === input.url || "string" === typeof input.url);
|
1318
|
-
const _io157 = input => (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && _io158(input.schemas)) && (undefined === input.pathItems || "object" === typeof input.pathItems && null !== input.pathItems && false === Array.isArray(input.pathItems) &&
|
1334
|
+
const _io157 = input => (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && _io158(input.schemas)) && (undefined === input.pathItems || "object" === typeof input.pathItems && null !== input.pathItems && false === Array.isArray(input.pathItems) && _io175(input.pathItems)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io193(input.responses)) && (undefined === input.parameters || "object" === typeof input.parameters && null !== input.parameters && false === Array.isArray(input.parameters) && _io194(input.parameters)) && (undefined === input.requestBodies || "object" === typeof input.requestBodies && null !== input.requestBodies && false === Array.isArray(input.requestBodies) && _io195(input.requestBodies)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && _io196(input.securitySchemes)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io206(input.headers)) && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io207(input.examples));
|
1319
1335
|
const _io158 = input => Object.keys(input).every((key => {
|
1320
1336
|
const value = input[key];
|
1321
1337
|
if (undefined === value) return true;
|
1322
1338
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu7(value);
|
1323
1339
|
}));
|
1324
|
-
const _io159 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)) && (undefined === input.
|
1325
|
-
const _io160 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1326
|
-
const _io161 = input => (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) && "boolean" === input.type && (undefined === input.
|
1327
|
-
const _io162 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -0x8000000000000000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -0x8000000000000000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input.
|
1328
|
-
const _io163 = input => (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && (undefined === input.
|
1329
|
-
const _io164 = input => (undefined === input.
|
1330
|
-
const _io165 = input => null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu7(input.items))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu7(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type && (undefined === input.
|
1331
|
-
const _io166 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io158(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu7(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.
|
1340
|
+
const _io159 = input => Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === elem)) && (null === input["default"] || undefined === input["default"] || Array.isArray(input["default"])) && (undefined === input["enum"] || Array.isArray(input["enum"])) && ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu7(input.items)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem)))) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu7(input.additionalItems))) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io158(input.properties)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu7(input.additionalProperties))) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && (Array.isArray(input.oneOf) && input.oneOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem)))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io172(input.discriminator)) && (Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem)))) && (Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem)))) && "string" === typeof input.$ref;
|
1341
|
+
const _io160 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1342
|
+
const _io161 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "boolean" === typeof elem))) && "boolean" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1343
|
+
const _io162 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -0x8000000000000000 <= input.minimum && input.minimum <= 0x8000000000000000)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -0x8000000000000000 <= input.maximum && input.maximum <= 0x8000000000000000)) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum && (Math.floor(input.exclusiveMinimum) === input.exclusiveMinimum && -0x8000000000000000 <= input.exclusiveMinimum && input.exclusiveMinimum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum && (Math.floor(input.exclusiveMaximum) === input.exclusiveMaximum && -0x8000000000000000 <= input.exclusiveMaximum && input.exclusiveMaximum <= 0x8000000000000000) || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 && 0 < input.multipleOf)) && "integer" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1344
|
+
const _io163 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "number" === typeof elem))) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && 0 < input.multipleOf) && "number" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1345
|
+
const _io164 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null === input["default"] || undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every((elem => null === elem || "string" === typeof elem))) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.contentMediaType || "string" === typeof input.contentMediaType) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 0x10000000000000000)) && "string" === input.type && (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));
|
1346
|
+
const _io165 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.items && (undefined === input.items || (Array.isArray(input.items) && input.items.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _iu7(input.items)))) && (undefined === input.prefixItems || Array.isArray(input.prefixItems) && input.prefixItems.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem)))) && (undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems) && (null !== input.additionalItems && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || "object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) && _iu7(input.additionalItems))) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 0x10000000000000000)) && "array" === input.type && (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));
|
1347
|
+
const _io166 = input => (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io158(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every((elem => "string" === typeof elem))) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && _iu7(input.additionalProperties))) && (undefined === input.maxProperties || "number" === typeof input.maxProperties) && (undefined === input.minProperties || "number" === typeof input.minProperties) && "object" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1332
1348
|
const _io167 = input => "string" === typeof input.$ref && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1333
|
-
const _io168 = input =>
|
1334
|
-
const _io169 = input => (
|
1335
|
-
const _io170 = input => Array.isArray(input.
|
1336
|
-
const _io171 = input => Array.isArray(input.
|
1337
|
-
const _io172 = input =>
|
1338
|
-
const _io173 = input => "string" === typeof input.
|
1339
|
-
const _io174 = input =>
|
1349
|
+
const _io168 = input => "string" === typeof input.$recursiveRef && (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));
|
1350
|
+
const _io169 = input => Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) && (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));
|
1351
|
+
const _io170 = input => Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) && (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));
|
1352
|
+
const _io171 = input => Array.isArray(input.oneOf) && input.oneOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) && (undefined === input.discriminator || "object" === typeof input.discriminator && null !== input.discriminator && _io172(input.discriminator)) && (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));
|
1353
|
+
const _io172 = input => "string" === typeof input.propertyName && (undefined === input.mapping || "object" === typeof input.mapping && null !== input.mapping && false === Array.isArray(input.mapping) && _io23(input.mapping));
|
1354
|
+
const _io173 = input => (null === input["default"] || undefined === input["default"]) && "null" === input.type && (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));
|
1355
|
+
const _io174 = input => null !== input.type && undefined === input.type && true && (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));
|
1356
|
+
const _io175 = input => Object.keys(input).every((key => {
|
1340
1357
|
const value = input[key];
|
1341
1358
|
if (undefined === value) return true;
|
1342
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
1359
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io176(value);
|
1343
1360
|
}));
|
1344
|
-
const
|
1345
|
-
const
|
1346
|
-
const
|
1361
|
+
const _io176 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu8(elem)))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io151(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) && _io183(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io183(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io183(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io183(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io183(input.patch)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io183(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io183(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io183(input.trace));
|
1362
|
+
const _io177 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io178(input.examples));
|
1363
|
+
const _io178 = input => Object.keys(input).every((key => {
|
1347
1364
|
const value = input[key];
|
1348
1365
|
if (undefined === value) return true;
|
1349
1366
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu18(value);
|
1350
1367
|
}));
|
1351
|
-
const
|
1352
|
-
const
|
1353
|
-
const
|
1354
|
-
const
|
1355
|
-
const
|
1356
|
-
const
|
1357
|
-
const
|
1368
|
+
const _io179 = input => (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.externalValue || "string" === typeof input.externalValue);
|
1369
|
+
const _io180 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/examples\/(.*)/).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));
|
1370
|
+
const _io181 = 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));
|
1371
|
+
const _io182 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1372
|
+
const _io183 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu8(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _iu19(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io188(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io151(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);
|
1373
|
+
const _io184 = input => (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io185(input.content));
|
1374
|
+
const _io185 = input => Object.keys(input).every((key => {
|
1358
1375
|
const value = input[key];
|
1359
1376
|
if (undefined === value) return true;
|
1360
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
1377
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io186(value);
|
1361
1378
|
}));
|
1362
|
-
const
|
1363
|
-
const
|
1364
|
-
const
|
1379
|
+
const _io186 = input => (undefined === input.schema || "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io178(input.examples));
|
1380
|
+
const _io187 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1381
|
+
const _io188 = input => Object.keys(input).every((key => {
|
1365
1382
|
const value = input[key];
|
1366
1383
|
if (undefined === value) return true;
|
1367
1384
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu20(value);
|
1368
1385
|
}));
|
1369
|
-
const
|
1370
|
-
const
|
1386
|
+
const _io189 = input => (undefined === input.content || "object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && _io185(input.content)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && _io190(input.headers)) && (undefined === input.description || "string" === typeof input.description);
|
1387
|
+
const _io190 = input => Object.keys(input).every((key => {
|
1371
1388
|
const value = input[key];
|
1372
1389
|
if (undefined === value) return true;
|
1373
1390
|
return "object" === typeof value && null !== value && _iu21(value);
|
1374
1391
|
}));
|
1375
|
-
const
|
1376
|
-
const
|
1377
|
-
const _io192 = input => Object.keys(input).every((key => {
|
1378
|
-
const value = input[key];
|
1379
|
-
if (undefined === value) return true;
|
1380
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io188(value);
|
1381
|
-
}));
|
1392
|
+
const _io191 = input => (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io178(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));
|
1393
|
+
const _io192 = 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));
|
1382
1394
|
const _io193 = input => Object.keys(input).every((key => {
|
1383
1395
|
const value = input[key];
|
1384
1396
|
if (undefined === value) return true;
|
1385
|
-
return "object" === typeof value && null !== value &&
|
1397
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io189(value);
|
1386
1398
|
}));
|
1387
1399
|
const _io194 = input => Object.keys(input).every((key => {
|
1388
1400
|
const value = input[key];
|
1389
1401
|
if (undefined === value) return true;
|
1390
|
-
return "object" === typeof value && null !== value &&
|
1402
|
+
return "object" === typeof value && null !== value && _io177(value);
|
1391
1403
|
}));
|
1392
1404
|
const _io195 = input => Object.keys(input).every((key => {
|
1393
1405
|
const value = input[key];
|
1394
1406
|
if (undefined === value) return true;
|
1395
|
-
return "object" === typeof value && null !== value &&
|
1407
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io184(value);
|
1396
1408
|
}));
|
1397
|
-
const _io196 = input =>
|
1398
|
-
const _io197 = input => "http" === input.type && "basic" === input.scheme && (undefined === input.description || "string" === typeof input.description);
|
1399
|
-
const _io198 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat) && (undefined === input.description || "string" === typeof input.description);
|
1400
|
-
const _io199 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && _io200(input.flows)) && (undefined === input.description || "string" === typeof input.description);
|
1401
|
-
const _io200 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) && _io201(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && false === Array.isArray(input.implicit) && _io202(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) && _io203(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) && _io203(input.clientCredentials));
|
1402
|
-
const _io201 = input => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl) && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && _io23(input.scopes));
|
1403
|
-
const _io202 = input => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && _io23(input.scopes));
|
1404
|
-
const _io203 = input => (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && _io23(input.scopes));
|
1405
|
-
const _io204 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl && (undefined === input.description || "string" === typeof input.description);
|
1406
|
-
const _io205 = input => Object.keys(input).every((key => {
|
1409
|
+
const _io196 = input => Object.keys(input).every((key => {
|
1407
1410
|
const value = input[key];
|
1408
1411
|
if (undefined === value) return true;
|
1409
|
-
return "object" === typeof value && null !== value &&
|
1412
|
+
return "object" === typeof value && null !== value && _iu22(value);
|
1410
1413
|
}));
|
1414
|
+
const _io197 = input => "apiKey" === input.type && (undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && (undefined === input.name || "string" === typeof input.name) && (undefined === input.description || "string" === typeof input.description);
|
1415
|
+
const _io198 = input => "http" === input.type && "basic" === input.scheme && (undefined === input.description || "string" === typeof input.description);
|
1416
|
+
const _io199 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat) && (undefined === input.description || "string" === typeof input.description);
|
1417
|
+
const _io200 = input => "oauth2" === input.type && ("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) && _io201(input.flows)) && (undefined === input.description || "string" === typeof input.description);
|
1418
|
+
const _io201 = input => (undefined === input.authorizationCode || "object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) && _io202(input.authorizationCode)) && (undefined === input.implicit || "object" === typeof input.implicit && null !== input.implicit && false === Array.isArray(input.implicit) && _io203(input.implicit)) && (undefined === input.password || "object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) && _io204(input.password)) && (undefined === input.clientCredentials || "object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) && _io204(input.clientCredentials));
|
1419
|
+
const _io202 = input => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl) && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && _io23(input.scopes));
|
1420
|
+
const _io203 = input => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && _io23(input.scopes));
|
1421
|
+
const _io204 = input => (undefined === input.tokenUrl || "string" === typeof input.tokenUrl) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl) && (undefined === input.scopes || "object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) && _io23(input.scopes));
|
1422
|
+
const _io205 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl && (undefined === input.description || "string" === typeof input.description);
|
1411
1423
|
const _io206 = input => Object.keys(input).every((key => {
|
1412
1424
|
const value = input[key];
|
1413
1425
|
if (undefined === value) return true;
|
1414
|
-
return "object" === typeof value && null !== value &&
|
1426
|
+
return "object" === typeof value && null !== value && _io191(value);
|
1415
1427
|
}));
|
1416
1428
|
const _io207 = input => Object.keys(input).every((key => {
|
1429
|
+
const value = input[key];
|
1430
|
+
if (undefined === value) return true;
|
1431
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io179(value);
|
1432
|
+
}));
|
1433
|
+
const _io208 = input => Object.keys(input).every((key => {
|
1417
1434
|
const value = input[key];
|
1418
1435
|
if (undefined === value) return true;
|
1419
1436
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu23(value);
|
1420
1437
|
}));
|
1421
|
-
const
|
1422
|
-
const
|
1438
|
+
const _io209 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/pathItems\/(.*)/).test(input.$ref) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1439
|
+
const _io210 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
1423
1440
|
const _iu0 = input => (() => {
|
1424
1441
|
if (undefined !== input["const"]) return _io9(input); else if ("boolean" === input.type) return _io11(input); else if ("number" === input.type) return _io13(input); else if ("integer" === input.type) return _io12(input); else if ("string" === input.type) return _io14(input); else if (undefined !== input.items) return _io15(input); else if (undefined !== input.prefixItems) return _io16(input); else if ("object" === input.type) return _io17(input); else if (undefined !== input.$ref) return _io18(input); else if (undefined !== input.oneOf) return _io19(input); else if ("null" === input.type) return _io20(input); else return _io21(input);
|
1425
1442
|
})();
|
@@ -1427,43 +1444,43 @@ class MigrateApplication {
|
|
1427
1444
|
if (undefined !== input["const"]) return _io9(input); else if ("boolean" === input.type) return _io11(input); else if ("number" === input.type) return _io13(input); else if ("integer" === input.type) return _io12(input); else if ("string" === input.type) return _io14(input); else if (undefined !== input.items) return _io15(input); else if (undefined !== input.prefixItems) return _io16(input); else if ("object" === input.type) return _io17(input); else if (undefined !== input.$ref) return _io18(input); else if ("null" === input.type) return _io20(input); else return _io21(input);
|
1428
1445
|
})();
|
1429
1446
|
const _iu2 = input => (() => {
|
1430
|
-
if ("boolean" === input.type) return _io53(input); else if ("number" === input.type) return _io55(input); else if ("integer" === input.type) return _io54(input); else if ("string" === input.type) return _io56(input); else if ("array" === input.type) return _io57(input); else if ("object" === input.type) return _io58(input); else if (undefined !== input.$ref) return _io59(input); else if (
|
1447
|
+
if ("boolean" === input.type) return _io53(input); else if ("number" === input.type) return _io55(input); else if ("integer" === input.type) return _io54(input); else if ("string" === input.type) return _io56(input); else if ("array" === input.type) return _io57(input); else if ("object" === input.type) return _io58(input); else if (undefined !== input.$ref) return _io59(input); else if (undefined !== input["x-anyOf"]) return _io60(input); else if (undefined !== input["x-oneOf"]) return _io61(input); else if ("null" === input.type) return _io62(input); else return _io63(input);
|
1431
1448
|
})();
|
1432
1449
|
const _iu3 = input => (() => {
|
1433
|
-
if ("boolean" === input.type) return _io65(input); else if ("number" === input.type) return _io67(input); else if ("integer" === input.type) return _io66(input); else if ("string" === input.type) return _io68(input); else if ("array" === input.type) return _io69(input); else if ("object" === input.type) return _io70(input); else if (
|
1450
|
+
if ("boolean" === input.type) return _io65(input); else if ("number" === input.type) return _io67(input); else if ("integer" === input.type) return _io66(input); else if ("string" === input.type) return _io68(input); else if ("array" === input.type) return _io69(input); else if ("object" === input.type) return _io70(input); else if (undefined !== input["x-anyOf"]) return _io72(input); else if (undefined !== input["x-oneOf"]) return _io73(input); else if ("null" === input.type) return _io74(input); else if (undefined !== input.schema) return _io76(input); else return (() => {
|
1434
1451
|
if (_io71(input)) return _io71(input);
|
1435
|
-
if (
|
1452
|
+
if (_io75(input)) return _io75(input);
|
1436
1453
|
if (_io88(input)) return _io88(input);
|
1437
1454
|
return false;
|
1438
1455
|
})();
|
1439
1456
|
})();
|
1440
1457
|
const _iu4 = input => (() => {
|
1441
|
-
if ("boolean" === input.type) return _io65(input); else if ("number" === input.type) return _io67(input); else if ("integer" === input.type) return _io66(input); else if ("string" === input.type) return _io68(input); else if ("array" === input.type) return _io69(input); else if ("object" === input.type) return _io70(input); else if (
|
1458
|
+
if ("boolean" === input.type) return _io65(input); else if ("number" === input.type) return _io67(input); else if ("integer" === input.type) return _io66(input); else if ("string" === input.type) return _io68(input); else if ("array" === input.type) return _io69(input); else if ("object" === input.type) return _io70(input); else if (undefined !== input["x-anyOf"]) return _io72(input); else if (undefined !== input["x-oneOf"]) return _io73(input); else if ("null" === input.type) return _io74(input); else if (undefined !== input.schema) return _io76(input); else return (() => {
|
1442
1459
|
if (_io71(input)) return _io71(input);
|
1443
|
-
if (
|
1460
|
+
if (_io75(input)) return _io75(input);
|
1444
1461
|
if (_io90(input)) return _io90(input);
|
1445
1462
|
return false;
|
1446
1463
|
})();
|
1447
1464
|
})();
|
1448
1465
|
const _iu5 = input => (() => {
|
1449
|
-
if ("boolean" === input.type) return _io103(input); else if ("number" === input.type) return _io105(input); else if ("integer" === input.type) return _io104(input); else if ("string" === input.type) return _io106(input); else if ("array" === input.type) return _io107(input); else if ("object" === input.type) return _io108(input); else if (undefined !== input.$ref) return _io109(input); else if (
|
1466
|
+
if ("boolean" === input.type) return _io103(input); else if ("number" === input.type) return _io105(input); else if ("integer" === input.type) return _io104(input); else if ("string" === input.type) return _io106(input); else if ("array" === input.type) return _io107(input); else if ("object" === input.type) return _io108(input); else if (undefined !== input.$ref) return _io109(input); else if (undefined !== input.allOf) return _io110(input); else if (undefined !== input.anyOf) return _io111(input); else if (undefined !== input.oneOf) return _io112(input); else if ("null" === input.type) return _io114(input); else return _io115(input);
|
1450
1467
|
})();
|
1451
1468
|
const _iu6 = input => (() => {
|
1452
1469
|
if (undefined !== input["in"]) return _io127(input); else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref)) return _io144(input); else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref)) return _io125(input); else return false;
|
1453
1470
|
})();
|
1454
1471
|
const _iu7 = input => (() => {
|
1455
|
-
if (Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === elem))) return _io159(input); else if ("boolean" === input.type) return _io161(input); else if ("number" === input.type) return _io163(input); else if ("integer" === input.type) return _io162(input); else if ("string" === input.type) return _io164(input); else if ("array" === input.type) return _io165(input); else if ("object" === input.type) return _io166(input); else if ("null" === input.type) return
|
1456
|
-
if (undefined !== input["const"]) return _io160(input); else if (undefined !== input.$ref) return _io167(input); else if (undefined !== input.allOf) return
|
1472
|
+
if (Array.isArray(input.type) && input.type.every((elem => "string" === elem || "number" === elem || "boolean" === elem || "object" === elem || "null" === elem || "integer" === elem || "array" === elem))) return _io159(input); else if ("boolean" === input.type) return _io161(input); else if ("number" === input.type) return _io163(input); else if ("integer" === input.type) return _io162(input); else if ("string" === input.type) return _io164(input); else if ("array" === input.type) return _io165(input); else if ("object" === input.type) return _io166(input); else if (undefined !== input.$recursiveRef) return _io168(input); else if ("null" === input.type) return _io173(input); else return (() => {
|
1473
|
+
if (undefined !== input["const"]) return _io160(input); else if (undefined !== input.$ref) return _io167(input); else if (undefined !== input.allOf) return _io169(input); else if (undefined !== input.anyOf) return _io170(input); else if (undefined !== input.oneOf) return _io171(input); else return _io174(input);
|
1457
1474
|
})();
|
1458
1475
|
})();
|
1459
1476
|
const _iu8 = input => (() => {
|
1460
|
-
if (undefined !== input["in"]) return
|
1477
|
+
if (undefined !== input["in"]) return _io177(input); else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref)) return _io182(input); else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref)) return _io181(input); else return false;
|
1461
1478
|
})();
|
1462
1479
|
const _iu9 = input => (() => {
|
1463
1480
|
if ("apiKey" === input.type) return _io25(input); else if ("basic" === input.scheme) return _io26(input); else if ("bearer" === input.scheme) return _io27(input); else if ("oauth2" === input.type) return _io28(input); else if ("openIdConnect" === input.type) return _io33(input); else return false;
|
1464
1481
|
})();
|
1465
1482
|
const _iu10 = input => (() => {
|
1466
|
-
if ("boolean" === input.type) return _io65(input); else if ("number" === input.type) return _io67(input); else if ("integer" === input.type) return _io66(input); else if ("string" === input.type) return _io68(input); else if ("array" === input.type) return _io69(input); else if ("object" === input.type) return _io70(input); else if (undefined !== input.$ref) return _io71(input); else if (
|
1483
|
+
if ("boolean" === input.type) return _io65(input); else if ("number" === input.type) return _io67(input); else if ("integer" === input.type) return _io66(input); else if ("string" === input.type) return _io68(input); else if ("array" === input.type) return _io69(input); else if ("object" === input.type) return _io70(input); else if (undefined !== input.$ref) return _io71(input); else if (undefined !== input["x-anyOf"]) return _io72(input); else if (undefined !== input["x-oneOf"]) return _io73(input); else if ("null" === input.type) return _io74(input); else if (undefined !== input.schema) return _io76(input); else return _io75(input);
|
1467
1484
|
})();
|
1468
1485
|
const _iu11 = input => (() => {
|
1469
1486
|
if ("apiKey" === input.type) return _io80(input); else if ("basic" === input.type) return _io81(input); else if ("implicit" === input.flow) return _io82(input); else if ("accessCode" === input.flow) return _io83(input); else if ("application" === input.flow) return _io85(input); else if ("password" === input.flow) return _io84(input); else return false;
|
@@ -1487,22 +1504,22 @@ class MigrateApplication {
|
|
1487
1504
|
if (undefined !== input.$ref) return _io148(input); else return _io117(input);
|
1488
1505
|
})();
|
1489
1506
|
const _iu18 = input => (() => {
|
1490
|
-
if (undefined !== input.$ref) return
|
1507
|
+
if (undefined !== input.$ref) return _io180(input); else return _io179(input);
|
1491
1508
|
})();
|
1492
1509
|
const _iu19 = input => (() => {
|
1493
|
-
if (undefined !== input.$ref) return
|
1510
|
+
if (undefined !== input.$ref) return _io187(input); else return _io184(input);
|
1494
1511
|
})();
|
1495
1512
|
const _iu20 = input => (() => {
|
1496
|
-
if (undefined !== input.$ref) return
|
1513
|
+
if (undefined !== input.$ref) return _io192(input); else return _io189(input);
|
1497
1514
|
})();
|
1498
1515
|
const _iu21 = input => (() => {
|
1499
|
-
if (undefined !== input.$ref) return
|
1516
|
+
if (undefined !== input.$ref) return _io181(input); else if (undefined !== input.schema) return _io191(input); else return false;
|
1500
1517
|
})();
|
1501
1518
|
const _iu22 = input => (() => {
|
1502
|
-
if ("apiKey" === input.type) return
|
1519
|
+
if ("apiKey" === input.type) return _io197(input); else if ("basic" === input.scheme) return _io198(input); else if ("bearer" === input.scheme) return _io199(input); else if ("oauth2" === input.type) return _io200(input); else if ("openIdConnect" === input.type) return _io205(input); else return false;
|
1503
1520
|
})();
|
1504
1521
|
const _iu23 = input => (() => {
|
1505
|
-
if (undefined !== input.$ref) return
|
1522
|
+
if (undefined !== input.$ref) return _io209(input); else return _io176(input);
|
1506
1523
|
})();
|
1507
1524
|
const _iu24 = input => (() => {
|
1508
1525
|
if (undefined !== input["x-samchon-emended"]) return _io0(input); else if (undefined !== input.swagger) return _io48(input); else if (null !== input.openapi && undefined !== input.openapi && ("3.0" === input.openapi || "string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi))) return _io94(input); else if ("string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi)) return _io150(input); else return false;
|
@@ -2035,7 +2052,11 @@ class MigrateApplication {
|
|
2035
2052
|
expected: "(Record<string, any> | undefined)",
|
2036
2053
|
value: input.examples
|
2037
2054
|
}) ].every((flag => flag));
|
2038
|
-
const _vo16 = (input, _path, _exceptionable = true) => [
|
2055
|
+
const _vo16 = (input, _path, _exceptionable = true) => [ "array" === input.type || _report(_exceptionable, {
|
2056
|
+
path: _path + ".type",
|
2057
|
+
expected: '"array"',
|
2058
|
+
value: input.type
|
2059
|
+
}), (Array.isArray(input.prefixItems) || _report(_exceptionable, {
|
2039
2060
|
path: _path + ".prefixItems",
|
2040
2061
|
expected: "Array<OpenApi.IJsonSchema>",
|
2041
2062
|
value: input.prefixItems
|
@@ -2083,10 +2104,6 @@ class MigrateApplication {
|
|
2083
2104
|
path: _path + ".maxItems",
|
2084
2105
|
expected: '((number & Type<"uint64">) | undefined)',
|
2085
2106
|
value: input.maxItems
|
2086
|
-
}), "array" === input.type || _report(_exceptionable, {
|
2087
|
-
path: _path + ".type",
|
2088
|
-
expected: '"array"',
|
2089
|
-
value: input.type
|
2090
2107
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
2091
2108
|
path: _path + ".title",
|
2092
2109
|
expected: "(string | undefined)",
|
@@ -2264,7 +2281,7 @@ class MigrateApplication {
|
|
2264
2281
|
expected: "(Record<string, any> | undefined)",
|
2265
2282
|
value: input.examples
|
2266
2283
|
}) ].every((flag => flag));
|
2267
|
-
const _vo21 = (input, _path, _exceptionable = true) => [ (null !== input.type || _report(_exceptionable, {
|
2284
|
+
const _vo21 = (input, _path, _exceptionable = true) => [ true, (null !== input.type || _report(_exceptionable, {
|
2268
2285
|
path: _path + ".type",
|
2269
2286
|
expected: "undefined",
|
2270
2287
|
value: input.type
|
@@ -3149,14 +3166,6 @@ class MigrateApplication {
|
|
3149
3166
|
path: _path + '["enum"]',
|
3150
3167
|
expected: "(Array<boolean | null> | undefined)",
|
3151
3168
|
value: input["enum"]
|
3152
|
-
}), "boolean" === input.type || _report(_exceptionable, {
|
3153
|
-
path: _path + ".type",
|
3154
|
-
expected: '"boolean"',
|
3155
|
-
value: input.type
|
3156
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3157
|
-
path: _path + '["x-nullable"]',
|
3158
|
-
expected: "(boolean | undefined)",
|
3159
|
-
value: input["x-nullable"]
|
3160
3169
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3161
3170
|
path: _path + ".title",
|
3162
3171
|
expected: "(string | undefined)",
|
@@ -3169,7 +3178,15 @@ class MigrateApplication {
|
|
3169
3178
|
path: _path + ".deprecated",
|
3170
3179
|
expected: "(boolean | undefined)",
|
3171
3180
|
value: input.deprecated
|
3172
|
-
}), true,
|
3181
|
+
}), true, "boolean" === input.type || _report(_exceptionable, {
|
3182
|
+
path: _path + ".type",
|
3183
|
+
expected: '"boolean"',
|
3184
|
+
value: input.type
|
3185
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3186
|
+
path: _path + '["x-nullable"]',
|
3187
|
+
expected: "(boolean | undefined)",
|
3188
|
+
value: input["x-nullable"]
|
3189
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3173
3190
|
path: _path + ".examples",
|
3174
3191
|
expected: "(Array<any> | undefined)",
|
3175
3192
|
value: input.examples
|
@@ -3230,14 +3247,6 @@ class MigrateApplication {
|
|
3230
3247
|
path: _path + ".multipleOf",
|
3231
3248
|
expected: '((number & Type<"uint64"> & ExclusiveMinimum<0>) | undefined)',
|
3232
3249
|
value: input.multipleOf
|
3233
|
-
}), "integer" === input.type || _report(_exceptionable, {
|
3234
|
-
path: _path + ".type",
|
3235
|
-
expected: '"integer"',
|
3236
|
-
value: input.type
|
3237
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3238
|
-
path: _path + '["x-nullable"]',
|
3239
|
-
expected: "(boolean | undefined)",
|
3240
|
-
value: input["x-nullable"]
|
3241
3250
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3242
3251
|
path: _path + ".title",
|
3243
3252
|
expected: "(string | undefined)",
|
@@ -3250,7 +3259,15 @@ class MigrateApplication {
|
|
3250
3259
|
path: _path + ".deprecated",
|
3251
3260
|
expected: "(boolean | undefined)",
|
3252
3261
|
value: input.deprecated
|
3253
|
-
}), true,
|
3262
|
+
}), true, "integer" === input.type || _report(_exceptionable, {
|
3263
|
+
path: _path + ".type",
|
3264
|
+
expected: '"integer"',
|
3265
|
+
value: input.type
|
3266
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3267
|
+
path: _path + '["x-nullable"]',
|
3268
|
+
expected: "(boolean | undefined)",
|
3269
|
+
value: input["x-nullable"]
|
3270
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3254
3271
|
path: _path + ".examples",
|
3255
3272
|
expected: "(Array<any> | undefined)",
|
3256
3273
|
value: input.examples
|
@@ -3295,14 +3312,6 @@ class MigrateApplication {
|
|
3295
3312
|
path: _path + ".multipleOf",
|
3296
3313
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
3297
3314
|
value: input.multipleOf
|
3298
|
-
}), "number" === input.type || _report(_exceptionable, {
|
3299
|
-
path: _path + ".type",
|
3300
|
-
expected: '"number"',
|
3301
|
-
value: input.type
|
3302
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3303
|
-
path: _path + '["x-nullable"]',
|
3304
|
-
expected: "(boolean | undefined)",
|
3305
|
-
value: input["x-nullable"]
|
3306
3315
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3307
3316
|
path: _path + ".title",
|
3308
3317
|
expected: "(string | undefined)",
|
@@ -3315,7 +3324,15 @@ class MigrateApplication {
|
|
3315
3324
|
path: _path + ".deprecated",
|
3316
3325
|
expected: "(boolean | undefined)",
|
3317
3326
|
value: input.deprecated
|
3318
|
-
}), true,
|
3327
|
+
}), true, "number" === input.type || _report(_exceptionable, {
|
3328
|
+
path: _path + ".type",
|
3329
|
+
expected: '"number"',
|
3330
|
+
value: input.type
|
3331
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3332
|
+
path: _path + '["x-nullable"]',
|
3333
|
+
expected: "(boolean | undefined)",
|
3334
|
+
value: input["x-nullable"]
|
3335
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3319
3336
|
path: _path + ".examples",
|
3320
3337
|
expected: "(Array<any> | undefined)",
|
3321
3338
|
value: input.examples
|
@@ -3360,14 +3377,6 @@ class MigrateApplication {
|
|
3360
3377
|
path: _path + ".maxLength",
|
3361
3378
|
expected: '((number & Type<"uint64">) | undefined)',
|
3362
3379
|
value: input.maxLength
|
3363
|
-
}), "string" === input.type || _report(_exceptionable, {
|
3364
|
-
path: _path + ".type",
|
3365
|
-
expected: '"string"',
|
3366
|
-
value: input.type
|
3367
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3368
|
-
path: _path + '["x-nullable"]',
|
3369
|
-
expected: "(boolean | undefined)",
|
3370
|
-
value: input["x-nullable"]
|
3371
3380
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3372
3381
|
path: _path + ".title",
|
3373
3382
|
expected: "(string | undefined)",
|
@@ -3380,7 +3389,15 @@ class MigrateApplication {
|
|
3380
3389
|
path: _path + ".deprecated",
|
3381
3390
|
expected: "(boolean | undefined)",
|
3382
3391
|
value: input.deprecated
|
3383
|
-
}), true,
|
3392
|
+
}), true, "string" === input.type || _report(_exceptionable, {
|
3393
|
+
path: _path + ".type",
|
3394
|
+
expected: '"string"',
|
3395
|
+
value: input.type
|
3396
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3397
|
+
path: _path + '["x-nullable"]',
|
3398
|
+
expected: "(boolean | undefined)",
|
3399
|
+
value: input["x-nullable"]
|
3400
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3384
3401
|
path: _path + ".examples",
|
3385
3402
|
expected: "(Array<any> | undefined)",
|
3386
3403
|
value: input.examples
|
@@ -3413,14 +3430,6 @@ class MigrateApplication {
|
|
3413
3430
|
path: _path + ".maxItems",
|
3414
3431
|
expected: '((number & Type<"uint64">) | undefined)',
|
3415
3432
|
value: input.maxItems
|
3416
|
-
}), "array" === input.type || _report(_exceptionable, {
|
3417
|
-
path: _path + ".type",
|
3418
|
-
expected: '"array"',
|
3419
|
-
value: input.type
|
3420
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3421
|
-
path: _path + '["x-nullable"]',
|
3422
|
-
expected: "(boolean | undefined)",
|
3423
|
-
value: input["x-nullable"]
|
3424
3433
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3425
3434
|
path: _path + ".title",
|
3426
3435
|
expected: "(string | undefined)",
|
@@ -3433,7 +3442,15 @@ class MigrateApplication {
|
|
3433
3442
|
path: _path + ".deprecated",
|
3434
3443
|
expected: "(boolean | undefined)",
|
3435
3444
|
value: input.deprecated
|
3436
|
-
}), true,
|
3445
|
+
}), true, "array" === input.type || _report(_exceptionable, {
|
3446
|
+
path: _path + ".type",
|
3447
|
+
expected: '"array"',
|
3448
|
+
value: input.type
|
3449
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3450
|
+
path: _path + '["x-nullable"]',
|
3451
|
+
expected: "(boolean | undefined)",
|
3452
|
+
value: input["x-nullable"]
|
3453
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3437
3454
|
path: _path + ".examples",
|
3438
3455
|
expected: "(Array<any> | undefined)",
|
3439
3456
|
value: input.examples
|
@@ -3478,14 +3495,6 @@ class MigrateApplication {
|
|
3478
3495
|
path: _path + ".minProperties",
|
3479
3496
|
expected: "(number | undefined)",
|
3480
3497
|
value: input.minProperties
|
3481
|
-
}), "object" === input.type || _report(_exceptionable, {
|
3482
|
-
path: _path + ".type",
|
3483
|
-
expected: '"object"',
|
3484
|
-
value: input.type
|
3485
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3486
|
-
path: _path + '["x-nullable"]',
|
3487
|
-
expected: "(boolean | undefined)",
|
3488
|
-
value: input["x-nullable"]
|
3489
3498
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3490
3499
|
path: _path + ".title",
|
3491
3500
|
expected: "(string | undefined)",
|
@@ -3498,7 +3507,15 @@ class MigrateApplication {
|
|
3498
3507
|
path: _path + ".deprecated",
|
3499
3508
|
expected: "(boolean | undefined)",
|
3500
3509
|
value: input.deprecated
|
3501
|
-
}), true,
|
3510
|
+
}), true, "object" === input.type || _report(_exceptionable, {
|
3511
|
+
path: _path + ".type",
|
3512
|
+
expected: '"object"',
|
3513
|
+
value: input.type
|
3514
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3515
|
+
path: _path + '["x-nullable"]',
|
3516
|
+
expected: "(boolean | undefined)",
|
3517
|
+
value: input["x-nullable"]
|
3518
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3502
3519
|
path: _path + ".examples",
|
3503
3520
|
expected: "(Array<any> | undefined)",
|
3504
3521
|
value: input.examples
|
@@ -3507,56 +3524,10 @@ class MigrateApplication {
|
|
3507
3524
|
path: _path + ".$ref",
|
3508
3525
|
expected: "string",
|
3509
3526
|
value: input.$ref
|
3510
|
-
}), undefined === input.
|
3511
|
-
path: _path + ".title",
|
3512
|
-
expected: "(string | undefined)",
|
3513
|
-
value: input.title
|
3514
|
-
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
3515
|
-
path: _path + ".description",
|
3516
|
-
expected: "(string | undefined)",
|
3517
|
-
value: input.description
|
3518
|
-
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
3519
|
-
path: _path + ".deprecated",
|
3520
|
-
expected: "(boolean | undefined)",
|
3521
|
-
value: input.deprecated
|
3522
|
-
}), true, undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3523
|
-
path: _path + ".examples",
|
3524
|
-
expected: "(Array<any> | undefined)",
|
3525
|
-
value: input.examples
|
3526
|
-
}) ].every((flag => flag));
|
3527
|
-
const _vo60 = (input, _path, _exceptionable = true) => [ (null !== input.type || _report(_exceptionable, {
|
3528
|
-
path: _path + ".type",
|
3529
|
-
expected: "undefined",
|
3530
|
-
value: input.type
|
3531
|
-
})) && (undefined === input.type || _report(_exceptionable, {
|
3532
|
-
path: _path + ".type",
|
3533
|
-
expected: "undefined",
|
3534
|
-
value: input.type
|
3535
|
-
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3536
|
-
path: _path + ".title",
|
3537
|
-
expected: "(string | undefined)",
|
3538
|
-
value: input.title
|
3539
|
-
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
3540
|
-
path: _path + ".description",
|
3541
|
-
expected: "(string | undefined)",
|
3542
|
-
value: input.description
|
3543
|
-
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
3544
|
-
path: _path + ".deprecated",
|
3545
|
-
expected: "(boolean | undefined)",
|
3546
|
-
value: input.deprecated
|
3547
|
-
}), true, undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3527
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3548
3528
|
path: _path + ".examples",
|
3549
3529
|
expected: "(Array<any> | undefined)",
|
3550
3530
|
value: input.examples
|
3551
|
-
}) ].every((flag => flag));
|
3552
|
-
const _vo61 = (input, _path, _exceptionable = true) => [ "null" === input.type || _report(_exceptionable, {
|
3553
|
-
path: _path + ".type",
|
3554
|
-
expected: '"null"',
|
3555
|
-
value: input.type
|
3556
|
-
}), null === input["default"] || undefined === input["default"] || _report(_exceptionable, {
|
3557
|
-
path: _path + '["default"]',
|
3558
|
-
expected: "(null | undefined)",
|
3559
|
-
value: input["default"]
|
3560
3531
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3561
3532
|
path: _path + ".title",
|
3562
3533
|
expected: "(string | undefined)",
|
@@ -3569,12 +3540,8 @@ class MigrateApplication {
|
|
3569
3540
|
path: _path + ".deprecated",
|
3570
3541
|
expected: "(boolean | undefined)",
|
3571
3542
|
value: input.deprecated
|
3572
|
-
}), true
|
3573
|
-
|
3574
|
-
expected: "(Array<any> | undefined)",
|
3575
|
-
value: input.examples
|
3576
|
-
}) ].every((flag => flag));
|
3577
|
-
const _vo62 = (input, _path, _exceptionable = true) => [ (Array.isArray(input["x-anyOf"]) || _report(_exceptionable, {
|
3543
|
+
}), true ].every((flag => flag));
|
3544
|
+
const _vo60 = (input, _path, _exceptionable = true) => [ (Array.isArray(input["x-anyOf"]) || _report(_exceptionable, {
|
3578
3545
|
path: _path + '["x-anyOf"]',
|
3579
3546
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
3580
3547
|
value: input["x-anyOf"]
|
@@ -3590,6 +3557,10 @@ class MigrateApplication {
|
|
3590
3557
|
path: _path + '["x-anyOf"]',
|
3591
3558
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
3592
3559
|
value: input["x-anyOf"]
|
3560
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3561
|
+
path: _path + ".examples",
|
3562
|
+
expected: "(Array<any> | undefined)",
|
3563
|
+
value: input.examples
|
3593
3564
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3594
3565
|
path: _path + ".title",
|
3595
3566
|
expected: "(string | undefined)",
|
@@ -3602,12 +3573,8 @@ class MigrateApplication {
|
|
3602
3573
|
path: _path + ".deprecated",
|
3603
3574
|
expected: "(boolean | undefined)",
|
3604
3575
|
value: input.deprecated
|
3605
|
-
}), true
|
3606
|
-
|
3607
|
-
expected: "(Array<any> | undefined)",
|
3608
|
-
value: input.examples
|
3609
|
-
}) ].every((flag => flag));
|
3610
|
-
const _vo63 = (input, _path, _exceptionable = true) => [ (Array.isArray(input["x-oneOf"]) || _report(_exceptionable, {
|
3576
|
+
}), true ].every((flag => flag));
|
3577
|
+
const _vo61 = (input, _path, _exceptionable = true) => [ (Array.isArray(input["x-oneOf"]) || _report(_exceptionable, {
|
3611
3578
|
path: _path + '["x-oneOf"]',
|
3612
3579
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
3613
3580
|
value: input["x-oneOf"]
|
@@ -3623,6 +3590,10 @@ class MigrateApplication {
|
|
3623
3590
|
path: _path + '["x-oneOf"]',
|
3624
3591
|
expected: "Array<SwaggerV2.IJsonSchema>",
|
3625
3592
|
value: input["x-oneOf"]
|
3593
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3594
|
+
path: _path + ".examples",
|
3595
|
+
expected: "(Array<any> | undefined)",
|
3596
|
+
value: input.examples
|
3626
3597
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3627
3598
|
path: _path + ".title",
|
3628
3599
|
expected: "(string | undefined)",
|
@@ -3635,11 +3606,57 @@ class MigrateApplication {
|
|
3635
3606
|
path: _path + ".deprecated",
|
3636
3607
|
expected: "(boolean | undefined)",
|
3637
3608
|
value: input.deprecated
|
3638
|
-
}), true
|
3609
|
+
}), true ].every((flag => flag));
|
3610
|
+
const _vo62 = (input, _path, _exceptionable = true) => [ "null" === input.type || _report(_exceptionable, {
|
3611
|
+
path: _path + ".type",
|
3612
|
+
expected: '"null"',
|
3613
|
+
value: input.type
|
3614
|
+
}), null === input["default"] || undefined === input["default"] || _report(_exceptionable, {
|
3615
|
+
path: _path + '["default"]',
|
3616
|
+
expected: "(null | undefined)",
|
3617
|
+
value: input["default"]
|
3618
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3639
3619
|
path: _path + ".examples",
|
3640
3620
|
expected: "(Array<any> | undefined)",
|
3641
3621
|
value: input.examples
|
3642
|
-
})
|
3622
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3623
|
+
path: _path + ".title",
|
3624
|
+
expected: "(string | undefined)",
|
3625
|
+
value: input.title
|
3626
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
3627
|
+
path: _path + ".description",
|
3628
|
+
expected: "(string | undefined)",
|
3629
|
+
value: input.description
|
3630
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
3631
|
+
path: _path + ".deprecated",
|
3632
|
+
expected: "(boolean | undefined)",
|
3633
|
+
value: input.deprecated
|
3634
|
+
}), true ].every((flag => flag));
|
3635
|
+
const _vo63 = (input, _path, _exceptionable = true) => [ (null !== input.type || _report(_exceptionable, {
|
3636
|
+
path: _path + ".type",
|
3637
|
+
expected: "undefined",
|
3638
|
+
value: input.type
|
3639
|
+
})) && (undefined === input.type || _report(_exceptionable, {
|
3640
|
+
path: _path + ".type",
|
3641
|
+
expected: "undefined",
|
3642
|
+
value: input.type
|
3643
|
+
})), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3644
|
+
path: _path + ".examples",
|
3645
|
+
expected: "(Array<any> | undefined)",
|
3646
|
+
value: input.examples
|
3647
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3648
|
+
path: _path + ".title",
|
3649
|
+
expected: "(string | undefined)",
|
3650
|
+
value: input.title
|
3651
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
3652
|
+
path: _path + ".description",
|
3653
|
+
expected: "(string | undefined)",
|
3654
|
+
value: input.description
|
3655
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
3656
|
+
path: _path + ".deprecated",
|
3657
|
+
expected: "(boolean | undefined)",
|
3658
|
+
value: input.deprecated
|
3659
|
+
}), true ].every((flag => flag));
|
3643
3660
|
const _vo64 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
3644
3661
|
const value = input[key];
|
3645
3662
|
if (undefined === value) return true;
|
@@ -3669,14 +3686,6 @@ class MigrateApplication {
|
|
3669
3686
|
path: _path + '["enum"]',
|
3670
3687
|
expected: "(Array<boolean | null> | undefined)",
|
3671
3688
|
value: input["enum"]
|
3672
|
-
}), "boolean" === input.type || _report(_exceptionable, {
|
3673
|
-
path: _path + ".type",
|
3674
|
-
expected: '"boolean"',
|
3675
|
-
value: input.type
|
3676
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3677
|
-
path: _path + '["x-nullable"]',
|
3678
|
-
expected: "(boolean | undefined)",
|
3679
|
-
value: input["x-nullable"]
|
3680
3689
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3681
3690
|
path: _path + ".title",
|
3682
3691
|
expected: "(string | undefined)",
|
@@ -3689,7 +3698,15 @@ class MigrateApplication {
|
|
3689
3698
|
path: _path + ".deprecated",
|
3690
3699
|
expected: "(boolean | undefined)",
|
3691
3700
|
value: input.deprecated
|
3692
|
-
}), true,
|
3701
|
+
}), true, "boolean" === input.type || _report(_exceptionable, {
|
3702
|
+
path: _path + ".type",
|
3703
|
+
expected: '"boolean"',
|
3704
|
+
value: input.type
|
3705
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3706
|
+
path: _path + '["x-nullable"]',
|
3707
|
+
expected: "(boolean | undefined)",
|
3708
|
+
value: input["x-nullable"]
|
3709
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3693
3710
|
path: _path + ".examples",
|
3694
3711
|
expected: "(Array<any> | undefined)",
|
3695
3712
|
value: input.examples
|
@@ -3758,14 +3775,6 @@ class MigrateApplication {
|
|
3758
3775
|
path: _path + ".multipleOf",
|
3759
3776
|
expected: '((number & Type<"uint64"> & ExclusiveMinimum<0>) | undefined)',
|
3760
3777
|
value: input.multipleOf
|
3761
|
-
}), "integer" === input.type || _report(_exceptionable, {
|
3762
|
-
path: _path + ".type",
|
3763
|
-
expected: '"integer"',
|
3764
|
-
value: input.type
|
3765
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3766
|
-
path: _path + '["x-nullable"]',
|
3767
|
-
expected: "(boolean | undefined)",
|
3768
|
-
value: input["x-nullable"]
|
3769
3778
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3770
3779
|
path: _path + ".title",
|
3771
3780
|
expected: "(string | undefined)",
|
@@ -3778,7 +3787,15 @@ class MigrateApplication {
|
|
3778
3787
|
path: _path + ".deprecated",
|
3779
3788
|
expected: "(boolean | undefined)",
|
3780
3789
|
value: input.deprecated
|
3781
|
-
}), true,
|
3790
|
+
}), true, "integer" === input.type || _report(_exceptionable, {
|
3791
|
+
path: _path + ".type",
|
3792
|
+
expected: '"integer"',
|
3793
|
+
value: input.type
|
3794
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3795
|
+
path: _path + '["x-nullable"]',
|
3796
|
+
expected: "(boolean | undefined)",
|
3797
|
+
value: input["x-nullable"]
|
3798
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3782
3799
|
path: _path + ".examples",
|
3783
3800
|
expected: "(Array<any> | undefined)",
|
3784
3801
|
value: input.examples
|
@@ -3831,14 +3848,6 @@ class MigrateApplication {
|
|
3831
3848
|
path: _path + ".multipleOf",
|
3832
3849
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
3833
3850
|
value: input.multipleOf
|
3834
|
-
}), "number" === input.type || _report(_exceptionable, {
|
3835
|
-
path: _path + ".type",
|
3836
|
-
expected: '"number"',
|
3837
|
-
value: input.type
|
3838
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3839
|
-
path: _path + '["x-nullable"]',
|
3840
|
-
expected: "(boolean | undefined)",
|
3841
|
-
value: input["x-nullable"]
|
3842
3851
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3843
3852
|
path: _path + ".title",
|
3844
3853
|
expected: "(string | undefined)",
|
@@ -3851,8 +3860,16 @@ class MigrateApplication {
|
|
3851
3860
|
path: _path + ".deprecated",
|
3852
3861
|
expected: "(boolean | undefined)",
|
3853
3862
|
value: input.deprecated
|
3854
|
-
}), true,
|
3855
|
-
path: _path + ".
|
3863
|
+
}), true, "number" === input.type || _report(_exceptionable, {
|
3864
|
+
path: _path + ".type",
|
3865
|
+
expected: '"number"',
|
3866
|
+
value: input.type
|
3867
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3868
|
+
path: _path + '["x-nullable"]',
|
3869
|
+
expected: "(boolean | undefined)",
|
3870
|
+
value: input["x-nullable"]
|
3871
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3872
|
+
path: _path + ".examples",
|
3856
3873
|
expected: "(Array<any> | undefined)",
|
3857
3874
|
value: input.examples
|
3858
3875
|
}), "string" === typeof input.name || _report(_exceptionable, {
|
@@ -3904,14 +3921,6 @@ class MigrateApplication {
|
|
3904
3921
|
path: _path + ".maxLength",
|
3905
3922
|
expected: '((number & Type<"uint64">) | undefined)',
|
3906
3923
|
value: input.maxLength
|
3907
|
-
}), "string" === input.type || _report(_exceptionable, {
|
3908
|
-
path: _path + ".type",
|
3909
|
-
expected: '"string"',
|
3910
|
-
value: input.type
|
3911
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3912
|
-
path: _path + '["x-nullable"]',
|
3913
|
-
expected: "(boolean | undefined)",
|
3914
|
-
value: input["x-nullable"]
|
3915
3924
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3916
3925
|
path: _path + ".title",
|
3917
3926
|
expected: "(string | undefined)",
|
@@ -3924,7 +3933,15 @@ class MigrateApplication {
|
|
3924
3933
|
path: _path + ".deprecated",
|
3925
3934
|
expected: "(boolean | undefined)",
|
3926
3935
|
value: input.deprecated
|
3927
|
-
}), true,
|
3936
|
+
}), true, "string" === input.type || _report(_exceptionable, {
|
3937
|
+
path: _path + ".type",
|
3938
|
+
expected: '"string"',
|
3939
|
+
value: input.type
|
3940
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3941
|
+
path: _path + '["x-nullable"]',
|
3942
|
+
expected: "(boolean | undefined)",
|
3943
|
+
value: input["x-nullable"]
|
3944
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3928
3945
|
path: _path + ".examples",
|
3929
3946
|
expected: "(Array<any> | undefined)",
|
3930
3947
|
value: input.examples
|
@@ -3965,14 +3982,6 @@ class MigrateApplication {
|
|
3965
3982
|
path: _path + ".maxItems",
|
3966
3983
|
expected: '((number & Type<"uint64">) | undefined)',
|
3967
3984
|
value: input.maxItems
|
3968
|
-
}), "array" === input.type || _report(_exceptionable, {
|
3969
|
-
path: _path + ".type",
|
3970
|
-
expected: '"array"',
|
3971
|
-
value: input.type
|
3972
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
3973
|
-
path: _path + '["x-nullable"]',
|
3974
|
-
expected: "(boolean | undefined)",
|
3975
|
-
value: input["x-nullable"]
|
3976
3985
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
3977
3986
|
path: _path + ".title",
|
3978
3987
|
expected: "(string | undefined)",
|
@@ -3985,7 +3994,15 @@ class MigrateApplication {
|
|
3985
3994
|
path: _path + ".deprecated",
|
3986
3995
|
expected: "(boolean | undefined)",
|
3987
3996
|
value: input.deprecated
|
3988
|
-
}), true,
|
3997
|
+
}), true, "array" === input.type || _report(_exceptionable, {
|
3998
|
+
path: _path + ".type",
|
3999
|
+
expected: '"array"',
|
4000
|
+
value: input.type
|
4001
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
4002
|
+
path: _path + '["x-nullable"]',
|
4003
|
+
expected: "(boolean | undefined)",
|
4004
|
+
value: input["x-nullable"]
|
4005
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
3989
4006
|
path: _path + ".examples",
|
3990
4007
|
expected: "(Array<any> | undefined)",
|
3991
4008
|
value: input.examples
|
@@ -4038,14 +4055,6 @@ class MigrateApplication {
|
|
4038
4055
|
path: _path + ".minProperties",
|
4039
4056
|
expected: "(number | undefined)",
|
4040
4057
|
value: input.minProperties
|
4041
|
-
}), "object" === input.type || _report(_exceptionable, {
|
4042
|
-
path: _path + ".type",
|
4043
|
-
expected: '"object"',
|
4044
|
-
value: input.type
|
4045
|
-
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
4046
|
-
path: _path + '["x-nullable"]',
|
4047
|
-
expected: "(boolean | undefined)",
|
4048
|
-
value: input["x-nullable"]
|
4049
4058
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
4050
4059
|
path: _path + ".title",
|
4051
4060
|
expected: "(string | undefined)",
|
@@ -4058,7 +4067,15 @@ class MigrateApplication {
|
|
4058
4067
|
path: _path + ".deprecated",
|
4059
4068
|
expected: "(boolean | undefined)",
|
4060
4069
|
value: input.deprecated
|
4061
|
-
}), true,
|
4070
|
+
}), true, "object" === input.type || _report(_exceptionable, {
|
4071
|
+
path: _path + ".type",
|
4072
|
+
expected: '"object"',
|
4073
|
+
value: input.type
|
4074
|
+
}), undefined === input["x-nullable"] || "boolean" === typeof input["x-nullable"] || _report(_exceptionable, {
|
4075
|
+
path: _path + '["x-nullable"]',
|
4076
|
+
expected: "(boolean | undefined)",
|
4077
|
+
value: input["x-nullable"]
|
4078
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
4062
4079
|
path: _path + ".examples",
|
4063
4080
|
expected: "(Array<any> | undefined)",
|
4064
4081
|
value: input.examples
|
@@ -4075,6 +4092,10 @@ class MigrateApplication {
|
|
4075
4092
|
path: _path + ".$ref",
|
4076
4093
|
expected: "string",
|
4077
4094
|
value: input.$ref
|
4095
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
4096
|
+
path: _path + ".examples",
|
4097
|
+
expected: "(Array<any> | undefined)",
|
4098
|
+
value: input.examples
|
4078
4099
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
4079
4100
|
path: _path + ".title",
|
4080
4101
|
expected: "(string | undefined)",
|
@@ -4087,11 +4108,7 @@ class MigrateApplication {
|
|
4087
4108
|
path: _path + ".deprecated",
|
4088
4109
|
expected: "(boolean | undefined)",
|
4089
4110
|
value: input.deprecated
|
4090
|
-
}), true,
|
4091
|
-
path: _path + ".examples",
|
4092
|
-
expected: "(Array<any> | undefined)",
|
4093
|
-
value: input.examples
|
4094
|
-
}), "string" === typeof input.name || _report(_exceptionable, {
|
4111
|
+
}), true, "string" === typeof input.name || _report(_exceptionable, {
|
4095
4112
|
path: _path + ".name",
|
4096
4113
|
expected: "string",
|
4097
4114
|
value: input.name
|
@@ -4100,15 +4117,27 @@ class MigrateApplication {
|
|
4100
4117
|
expected: "string",
|
4101
4118
|
value: input["in"]
|
4102
4119
|
}) ].every((flag => flag));
|
4103
|
-
const _vo72 = (input, _path, _exceptionable = true) => [ (
|
4104
|
-
path: _path + "
|
4105
|
-
expected: "
|
4106
|
-
value: input
|
4107
|
-
})) && (
|
4108
|
-
path: _path + "
|
4109
|
-
expected: "
|
4110
|
-
value:
|
4111
|
-
}))
|
4120
|
+
const _vo72 = (input, _path, _exceptionable = true) => [ (Array.isArray(input["x-anyOf"]) || _report(_exceptionable, {
|
4121
|
+
path: _path + '["x-anyOf"]',
|
4122
|
+
expected: "Array<SwaggerV2.IJsonSchema>",
|
4123
|
+
value: input["x-anyOf"]
|
4124
|
+
})) && input["x-anyOf"].map(((elem, _index113) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
4125
|
+
path: _path + '["x-anyOf"][' + _index113 + "]",
|
4126
|
+
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)",
|
4127
|
+
value: elem
|
4128
|
+
})) && _vu2(elem, _path + '["x-anyOf"][' + _index113 + "]", _exceptionable) || _report(_exceptionable, {
|
4129
|
+
path: _path + '["x-anyOf"][' + _index113 + "]",
|
4130
|
+
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)",
|
4131
|
+
value: elem
|
4132
|
+
}))).every((flag => flag)) || _report(_exceptionable, {
|
4133
|
+
path: _path + '["x-anyOf"]',
|
4134
|
+
expected: "Array<SwaggerV2.IJsonSchema>",
|
4135
|
+
value: input["x-anyOf"]
|
4136
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
4137
|
+
path: _path + ".examples",
|
4138
|
+
expected: "(Array<any> | undefined)",
|
4139
|
+
value: input.examples
|
4140
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
4112
4141
|
path: _path + ".title",
|
4113
4142
|
expected: "(string | undefined)",
|
4114
4143
|
value: input.title
|
@@ -4120,11 +4149,7 @@ class MigrateApplication {
|
|
4120
4149
|
path: _path + ".deprecated",
|
4121
4150
|
expected: "(boolean | undefined)",
|
4122
4151
|
value: input.deprecated
|
4123
|
-
}), true,
|
4124
|
-
path: _path + ".examples",
|
4125
|
-
expected: "(Array<any> | undefined)",
|
4126
|
-
value: input.examples
|
4127
|
-
}), "string" === typeof input.name || _report(_exceptionable, {
|
4152
|
+
}), true, "string" === typeof input.name || _report(_exceptionable, {
|
4128
4153
|
path: _path + ".name",
|
4129
4154
|
expected: "string",
|
4130
4155
|
value: input.name
|
@@ -4133,14 +4158,26 @@ class MigrateApplication {
|
|
4133
4158
|
expected: "string",
|
4134
4159
|
value: input["in"]
|
4135
4160
|
}) ].every((flag => flag));
|
4136
|
-
const _vo73 = (input, _path, _exceptionable = true) => [ "
|
4137
|
-
path: _path + "
|
4138
|
-
expected:
|
4139
|
-
value: input
|
4140
|
-
})
|
4141
|
-
path: _path + '["
|
4142
|
-
expected: "(
|
4143
|
-
value:
|
4161
|
+
const _vo73 = (input, _path, _exceptionable = true) => [ (Array.isArray(input["x-oneOf"]) || _report(_exceptionable, {
|
4162
|
+
path: _path + '["x-oneOf"]',
|
4163
|
+
expected: "Array<SwaggerV2.IJsonSchema>",
|
4164
|
+
value: input["x-oneOf"]
|
4165
|
+
})) && input["x-oneOf"].map(((elem, _index114) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
4166
|
+
path: _path + '["x-oneOf"][' + _index114 + "]",
|
4167
|
+
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)",
|
4168
|
+
value: elem
|
4169
|
+
})) && _vu2(elem, _path + '["x-oneOf"][' + _index114 + "]", _exceptionable) || _report(_exceptionable, {
|
4170
|
+
path: _path + '["x-oneOf"][' + _index114 + "]",
|
4171
|
+
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)",
|
4172
|
+
value: elem
|
4173
|
+
}))).every((flag => flag)) || _report(_exceptionable, {
|
4174
|
+
path: _path + '["x-oneOf"]',
|
4175
|
+
expected: "Array<SwaggerV2.IJsonSchema>",
|
4176
|
+
value: input["x-oneOf"]
|
4177
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
4178
|
+
path: _path + ".examples",
|
4179
|
+
expected: "(Array<any> | undefined)",
|
4180
|
+
value: input.examples
|
4144
4181
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
4145
4182
|
path: _path + ".title",
|
4146
4183
|
expected: "(string | undefined)",
|
@@ -4153,11 +4190,7 @@ class MigrateApplication {
|
|
4153
4190
|
path: _path + ".deprecated",
|
4154
4191
|
expected: "(boolean | undefined)",
|
4155
4192
|
value: input.deprecated
|
4156
|
-
}), true,
|
4157
|
-
path: _path + ".examples",
|
4158
|
-
expected: "(Array<any> | undefined)",
|
4159
|
-
value: input.examples
|
4160
|
-
}), "string" === typeof input.name || _report(_exceptionable, {
|
4193
|
+
}), true, "string" === typeof input.name || _report(_exceptionable, {
|
4161
4194
|
path: _path + ".name",
|
4162
4195
|
expected: "string",
|
4163
4196
|
value: input.name
|
@@ -4166,22 +4199,18 @@ class MigrateApplication {
|
|
4166
4199
|
expected: "string",
|
4167
4200
|
value: input["in"]
|
4168
4201
|
}) ].every((flag => flag));
|
4169
|
-
const _vo74 = (input, _path, _exceptionable = true) => [
|
4170
|
-
path: _path +
|
4171
|
-
expected: "
|
4172
|
-
value: input
|
4173
|
-
})
|
4174
|
-
path: _path + '["
|
4175
|
-
expected: "(
|
4176
|
-
value:
|
4177
|
-
})
|
4178
|
-
path: _path +
|
4179
|
-
expected: "(
|
4180
|
-
value:
|
4181
|
-
}))).every((flag => flag)) || _report(_exceptionable, {
|
4182
|
-
path: _path + '["x-anyOf"]',
|
4183
|
-
expected: "Array<SwaggerV2.IJsonSchema>",
|
4184
|
-
value: input["x-anyOf"]
|
4202
|
+
const _vo74 = (input, _path, _exceptionable = true) => [ "null" === input.type || _report(_exceptionable, {
|
4203
|
+
path: _path + ".type",
|
4204
|
+
expected: '"null"',
|
4205
|
+
value: input.type
|
4206
|
+
}), null === input["default"] || undefined === input["default"] || _report(_exceptionable, {
|
4207
|
+
path: _path + '["default"]',
|
4208
|
+
expected: "(null | undefined)",
|
4209
|
+
value: input["default"]
|
4210
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
4211
|
+
path: _path + ".examples",
|
4212
|
+
expected: "(Array<any> | undefined)",
|
4213
|
+
value: input.examples
|
4185
4214
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
4186
4215
|
path: _path + ".title",
|
4187
4216
|
expected: "(string | undefined)",
|
@@ -4194,11 +4223,7 @@ class MigrateApplication {
|
|
4194
4223
|
path: _path + ".deprecated",
|
4195
4224
|
expected: "(boolean | undefined)",
|
4196
4225
|
value: input.deprecated
|
4197
|
-
}), true,
|
4198
|
-
path: _path + ".examples",
|
4199
|
-
expected: "(Array<any> | undefined)",
|
4200
|
-
value: input.examples
|
4201
|
-
}), "string" === typeof input.name || _report(_exceptionable, {
|
4226
|
+
}), true, "string" === typeof input.name || _report(_exceptionable, {
|
4202
4227
|
path: _path + ".name",
|
4203
4228
|
expected: "string",
|
4204
4229
|
value: input.name
|
@@ -4207,22 +4232,18 @@ class MigrateApplication {
|
|
4207
4232
|
expected: "string",
|
4208
4233
|
value: input["in"]
|
4209
4234
|
}) ].every((flag => flag));
|
4210
|
-
const _vo75 = (input, _path, _exceptionable = true) => [ (
|
4211
|
-
path: _path +
|
4212
|
-
expected: "
|
4213
|
-
value: input
|
4214
|
-
})) &&
|
4215
|
-
path: _path +
|
4216
|
-
expected: "
|
4217
|
-
value:
|
4218
|
-
}))
|
4219
|
-
path: _path +
|
4220
|
-
expected: "(
|
4221
|
-
value:
|
4222
|
-
}))).every((flag => flag)) || _report(_exceptionable, {
|
4223
|
-
path: _path + '["x-oneOf"]',
|
4224
|
-
expected: "Array<SwaggerV2.IJsonSchema>",
|
4225
|
-
value: input["x-oneOf"]
|
4235
|
+
const _vo75 = (input, _path, _exceptionable = true) => [ (null !== input.type || _report(_exceptionable, {
|
4236
|
+
path: _path + ".type",
|
4237
|
+
expected: "undefined",
|
4238
|
+
value: input.type
|
4239
|
+
})) && (undefined === input.type || _report(_exceptionable, {
|
4240
|
+
path: _path + ".type",
|
4241
|
+
expected: "undefined",
|
4242
|
+
value: input.type
|
4243
|
+
})), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
4244
|
+
path: _path + ".examples",
|
4245
|
+
expected: "(Array<any> | undefined)",
|
4246
|
+
value: input.examples
|
4226
4247
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
4227
4248
|
path: _path + ".title",
|
4228
4249
|
expected: "(string | undefined)",
|
@@ -4235,11 +4256,7 @@ class MigrateApplication {
|
|
4235
4256
|
path: _path + ".deprecated",
|
4236
4257
|
expected: "(boolean | undefined)",
|
4237
4258
|
value: input.deprecated
|
4238
|
-
}), true,
|
4239
|
-
path: _path + ".examples",
|
4240
|
-
expected: "(Array<any> | undefined)",
|
4241
|
-
value: input.examples
|
4242
|
-
}), "string" === typeof input.name || _report(_exceptionable, {
|
4259
|
+
}), true, "string" === typeof input.name || _report(_exceptionable, {
|
4243
4260
|
path: _path + ".name",
|
4244
4261
|
expected: "string",
|
4245
4262
|
value: input.name
|
@@ -4552,6 +4569,10 @@ class MigrateApplication {
|
|
4552
4569
|
path: _path + ".$ref",
|
4553
4570
|
expected: "`#/parameters/${string}`",
|
4554
4571
|
value: input.$ref
|
4572
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
4573
|
+
path: _path + ".examples",
|
4574
|
+
expected: "(Array<any> | undefined)",
|
4575
|
+
value: input.examples
|
4555
4576
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
4556
4577
|
path: _path + ".title",
|
4557
4578
|
expected: "(string | undefined)",
|
@@ -4564,11 +4585,7 @@ class MigrateApplication {
|
|
4564
4585
|
path: _path + ".deprecated",
|
4565
4586
|
expected: "(boolean | undefined)",
|
4566
4587
|
value: input.deprecated
|
4567
|
-
}), true
|
4568
|
-
path: _path + ".examples",
|
4569
|
-
expected: "(Array<any> | undefined)",
|
4570
|
-
value: input.examples
|
4571
|
-
}) ].every((flag => flag));
|
4588
|
+
}), true ].every((flag => flag));
|
4572
4589
|
const _vo89 = (input, _path, _exceptionable = true) => [ undefined === input.operationId || "string" === typeof input.operationId || _report(_exceptionable, {
|
4573
4590
|
path: _path + ".operationId",
|
4574
4591
|
expected: "(string | undefined)",
|
@@ -4642,6 +4659,10 @@ class MigrateApplication {
|
|
4642
4659
|
path: _path + ".$ref",
|
4643
4660
|
expected: "`#/definitions/parameters/${string}`",
|
4644
4661
|
value: input.$ref
|
4662
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
4663
|
+
path: _path + ".examples",
|
4664
|
+
expected: "(Array<any> | undefined)",
|
4665
|
+
value: input.examples
|
4645
4666
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
4646
4667
|
path: _path + ".title",
|
4647
4668
|
expected: "(string | undefined)",
|
@@ -4654,11 +4675,7 @@ class MigrateApplication {
|
|
4654
4675
|
path: _path + ".deprecated",
|
4655
4676
|
expected: "(boolean | undefined)",
|
4656
4677
|
value: input.deprecated
|
4657
|
-
}), true
|
4658
|
-
path: _path + ".examples",
|
4659
|
-
expected: "(Array<any> | undefined)",
|
4660
|
-
value: input.examples
|
4661
|
-
}) ].every((flag => flag));
|
4678
|
+
}), true ].every((flag => flag));
|
4662
4679
|
const _vo91 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
4663
4680
|
const value = input[key];
|
4664
4681
|
if (undefined === value) return true;
|
@@ -4676,6 +4693,10 @@ class MigrateApplication {
|
|
4676
4693
|
path: _path + ".$ref",
|
4677
4694
|
expected: "`#/definitions/responses/${string}`",
|
4678
4695
|
value: input.$ref
|
4696
|
+
}), undefined === input.examples || Array.isArray(input.examples) || _report(_exceptionable, {
|
4697
|
+
path: _path + ".examples",
|
4698
|
+
expected: "(Array<any> | undefined)",
|
4699
|
+
value: input.examples
|
4679
4700
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
4680
4701
|
path: _path + ".title",
|
4681
4702
|
expected: "(string | undefined)",
|
@@ -4688,11 +4709,7 @@ class MigrateApplication {
|
|
4688
4709
|
path: _path + ".deprecated",
|
4689
4710
|
expected: "(boolean | undefined)",
|
4690
4711
|
value: input.deprecated
|
4691
|
-
}), true
|
4692
|
-
path: _path + ".examples",
|
4693
|
-
expected: "(Array<any> | undefined)",
|
4694
|
-
value: input.examples
|
4695
|
-
}) ].every((flag => flag));
|
4712
|
+
}), true ].every((flag => flag));
|
4696
4713
|
const _vo93 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name || _report(_exceptionable, {
|
4697
4714
|
path: _path + ".name",
|
4698
4715
|
expected: "string",
|
@@ -4963,7 +4980,11 @@ class MigrateApplication {
|
|
4963
4980
|
value
|
4964
4981
|
});
|
4965
4982
|
})).every((flag => flag)) ].every((flag => flag));
|
4966
|
-
const _vo103 = (input, _path, _exceptionable = true) => [
|
4983
|
+
const _vo103 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
4984
|
+
path: _path + ".nullable",
|
4985
|
+
expected: "(boolean | undefined)",
|
4986
|
+
value: input.nullable
|
4987
|
+
}), null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"] || _report(_exceptionable, {
|
4967
4988
|
path: _path + '["default"]',
|
4968
4989
|
expected: "(boolean | null | undefined)",
|
4969
4990
|
value: input["default"]
|
@@ -4983,10 +5004,6 @@ class MigrateApplication {
|
|
4983
5004
|
path: _path + ".type",
|
4984
5005
|
expected: '"boolean"',
|
4985
5006
|
value: input.type
|
4986
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
4987
|
-
path: _path + ".nullable",
|
4988
|
-
expected: "(boolean | undefined)",
|
4989
|
-
value: input.nullable
|
4990
5007
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
4991
5008
|
path: _path + ".title",
|
4992
5009
|
expected: "(string | undefined)",
|
@@ -5008,7 +5025,11 @@ class MigrateApplication {
|
|
5008
5025
|
expected: "(Record<string, any> | undefined)",
|
5009
5026
|
value: input.examples
|
5010
5027
|
}) ].every((flag => flag));
|
5011
|
-
const _vo104 = (input, _path, _exceptionable = true) => [
|
5028
|
+
const _vo104 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5029
|
+
path: _path + ".nullable",
|
5030
|
+
expected: "(boolean | undefined)",
|
5031
|
+
value: input.nullable
|
5032
|
+
}), null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000 || _report(_exceptionable, {
|
5012
5033
|
path: _path + '["default"]',
|
5013
5034
|
expected: 'number & Type<"int64">',
|
5014
5035
|
value: input["default"]
|
@@ -5068,10 +5089,6 @@ class MigrateApplication {
|
|
5068
5089
|
path: _path + ".type",
|
5069
5090
|
expected: '"integer"',
|
5070
5091
|
value: input.type
|
5071
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5072
|
-
path: _path + ".nullable",
|
5073
|
-
expected: "(boolean | undefined)",
|
5074
|
-
value: input.nullable
|
5075
5092
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5076
5093
|
path: _path + ".title",
|
5077
5094
|
expected: "(string | undefined)",
|
@@ -5093,7 +5110,11 @@ class MigrateApplication {
|
|
5093
5110
|
expected: "(Record<string, any> | undefined)",
|
5094
5111
|
value: input.examples
|
5095
5112
|
}) ].every((flag => flag));
|
5096
|
-
const _vo105 = (input, _path, _exceptionable = true) => [
|
5113
|
+
const _vo105 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5114
|
+
path: _path + ".nullable",
|
5115
|
+
expected: "(boolean | undefined)",
|
5116
|
+
value: input.nullable
|
5117
|
+
}), null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] || _report(_exceptionable, {
|
5097
5118
|
path: _path + '["default"]',
|
5098
5119
|
expected: "(null | number | undefined)",
|
5099
5120
|
value: input["default"]
|
@@ -5137,10 +5158,6 @@ class MigrateApplication {
|
|
5137
5158
|
path: _path + ".type",
|
5138
5159
|
expected: '"number"',
|
5139
5160
|
value: input.type
|
5140
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5141
|
-
path: _path + ".nullable",
|
5142
|
-
expected: "(boolean | undefined)",
|
5143
|
-
value: input.nullable
|
5144
5161
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5145
5162
|
path: _path + ".title",
|
5146
5163
|
expected: "(string | undefined)",
|
@@ -5162,7 +5179,11 @@ class MigrateApplication {
|
|
5162
5179
|
expected: "(Record<string, any> | undefined)",
|
5163
5180
|
value: input.examples
|
5164
5181
|
}) ].every((flag => flag));
|
5165
|
-
const _vo106 = (input, _path, _exceptionable = true) => [
|
5182
|
+
const _vo106 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5183
|
+
path: _path + ".nullable",
|
5184
|
+
expected: "(boolean | undefined)",
|
5185
|
+
value: input.nullable
|
5186
|
+
}), null === input["default"] || undefined === input["default"] || "string" === typeof input["default"] || _report(_exceptionable, {
|
5166
5187
|
path: _path + '["default"]',
|
5167
5188
|
expected: "(null | string | undefined)",
|
5168
5189
|
value: input["default"]
|
@@ -5206,10 +5227,6 @@ class MigrateApplication {
|
|
5206
5227
|
path: _path + ".type",
|
5207
5228
|
expected: '"string"',
|
5208
5229
|
value: input.type
|
5209
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5210
|
-
path: _path + ".nullable",
|
5211
|
-
expected: "(boolean | undefined)",
|
5212
|
-
value: input.nullable
|
5213
5230
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5214
5231
|
path: _path + ".title",
|
5215
5232
|
expected: "(string | undefined)",
|
@@ -5231,7 +5248,11 @@ class MigrateApplication {
|
|
5231
5248
|
expected: "(Record<string, any> | undefined)",
|
5232
5249
|
value: input.examples
|
5233
5250
|
}) ].every((flag => flag));
|
5234
|
-
const _vo107 = (input, _path, _exceptionable = true) => [
|
5251
|
+
const _vo107 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5252
|
+
path: _path + ".nullable",
|
5253
|
+
expected: "(boolean | undefined)",
|
5254
|
+
value: input.nullable
|
5255
|
+
}), ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
5235
5256
|
path: _path + ".items",
|
5236
5257
|
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)",
|
5237
5258
|
value: input.items
|
@@ -5263,10 +5284,6 @@ class MigrateApplication {
|
|
5263
5284
|
path: _path + ".type",
|
5264
5285
|
expected: '"array"',
|
5265
5286
|
value: input.type
|
5266
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5267
|
-
path: _path + ".nullable",
|
5268
|
-
expected: "(boolean | undefined)",
|
5269
|
-
value: input.nullable
|
5270
5287
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5271
5288
|
path: _path + ".title",
|
5272
5289
|
expected: "(string | undefined)",
|
@@ -5288,7 +5305,11 @@ class MigrateApplication {
|
|
5288
5305
|
expected: "(Record<string, any> | undefined)",
|
5289
5306
|
value: input.examples
|
5290
5307
|
}) ].every((flag => flag));
|
5291
|
-
const _vo108 = (input, _path, _exceptionable = true) => [ undefined === input.
|
5308
|
+
const _vo108 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5309
|
+
path: _path + ".nullable",
|
5310
|
+
expected: "(boolean | undefined)",
|
5311
|
+
value: input.nullable
|
5312
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
5292
5313
|
path: _path + ".properties",
|
5293
5314
|
expected: "(Record<string, OpenApiV3.IJsonSchema> | undefined)",
|
5294
5315
|
value: input.properties
|
@@ -5318,79 +5339,21 @@ class MigrateApplication {
|
|
5318
5339
|
value: input.additionalProperties
|
5319
5340
|
})) && _vu5(input.additionalProperties, _path + ".additionalProperties", _exceptionable) || _report(_exceptionable, {
|
5320
5341
|
path: _path + ".additionalProperties",
|
5321
|
-
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 | boolean | undefined)",
|
5322
|
-
value: input.additionalProperties
|
5323
|
-
})), undefined === input.maxProperties || "number" === typeof input.maxProperties || _report(_exceptionable, {
|
5324
|
-
path: _path + ".maxProperties",
|
5325
|
-
expected: "(number | undefined)",
|
5326
|
-
value: input.maxProperties
|
5327
|
-
}), undefined === input.minProperties || "number" === typeof input.minProperties || _report(_exceptionable, {
|
5328
|
-
path: _path + ".minProperties",
|
5329
|
-
expected: "(number | undefined)",
|
5330
|
-
value: input.minProperties
|
5331
|
-
}), "object" === input.type || _report(_exceptionable, {
|
5332
|
-
path: _path + ".type",
|
5333
|
-
expected: '"object"',
|
5334
|
-
value: input.type
|
5335
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5336
|
-
path: _path + ".nullable",
|
5337
|
-
expected: "(boolean | undefined)",
|
5338
|
-
value: input.nullable
|
5339
|
-
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5340
|
-
path: _path + ".title",
|
5341
|
-
expected: "(string | undefined)",
|
5342
|
-
value: input.title
|
5343
|
-
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
5344
|
-
path: _path + ".description",
|
5345
|
-
expected: "(string | undefined)",
|
5346
|
-
value: input.description
|
5347
|
-
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
5348
|
-
path: _path + ".deprecated",
|
5349
|
-
expected: "(boolean | undefined)",
|
5350
|
-
value: input.deprecated
|
5351
|
-
}), true, undefined === input.examples || ("object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) || _report(_exceptionable, {
|
5352
|
-
path: _path + ".examples",
|
5353
|
-
expected: "(Record<string, any> | undefined)",
|
5354
|
-
value: input.examples
|
5355
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5356
|
-
path: _path + ".examples",
|
5357
|
-
expected: "(Record<string, any> | undefined)",
|
5358
|
-
value: input.examples
|
5359
|
-
}) ].every((flag => flag));
|
5360
|
-
const _vo109 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref || _report(_exceptionable, {
|
5361
|
-
path: _path + ".$ref",
|
5362
|
-
expected: "string",
|
5363
|
-
value: input.$ref
|
5364
|
-
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5365
|
-
path: _path + ".title",
|
5366
|
-
expected: "(string | undefined)",
|
5367
|
-
value: input.title
|
5368
|
-
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
5369
|
-
path: _path + ".description",
|
5370
|
-
expected: "(string | undefined)",
|
5371
|
-
value: input.description
|
5372
|
-
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
5373
|
-
path: _path + ".deprecated",
|
5374
|
-
expected: "(boolean | undefined)",
|
5375
|
-
value: input.deprecated
|
5376
|
-
}), true, undefined === input.examples || ("object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) || _report(_exceptionable, {
|
5377
|
-
path: _path + ".examples",
|
5378
|
-
expected: "(Record<string, any> | undefined)",
|
5379
|
-
value: input.examples
|
5380
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5381
|
-
path: _path + ".examples",
|
5382
|
-
expected: "(Record<string, any> | undefined)",
|
5383
|
-
value: input.examples
|
5384
|
-
}) ].every((flag => flag));
|
5385
|
-
const _vo110 = (input, _path, _exceptionable = true) => [ (null !== input.type || _report(_exceptionable, {
|
5386
|
-
path: _path + ".type",
|
5387
|
-
expected: "undefined",
|
5388
|
-
value: input.type
|
5389
|
-
})) && (undefined === input.type || _report(_exceptionable, {
|
5342
|
+
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 | boolean | undefined)",
|
5343
|
+
value: input.additionalProperties
|
5344
|
+
})), undefined === input.maxProperties || "number" === typeof input.maxProperties || _report(_exceptionable, {
|
5345
|
+
path: _path + ".maxProperties",
|
5346
|
+
expected: "(number | undefined)",
|
5347
|
+
value: input.maxProperties
|
5348
|
+
}), undefined === input.minProperties || "number" === typeof input.minProperties || _report(_exceptionable, {
|
5349
|
+
path: _path + ".minProperties",
|
5350
|
+
expected: "(number | undefined)",
|
5351
|
+
value: input.minProperties
|
5352
|
+
}), "object" === input.type || _report(_exceptionable, {
|
5390
5353
|
path: _path + ".type",
|
5391
|
-
expected: "
|
5354
|
+
expected: '"object"',
|
5392
5355
|
value: input.type
|
5393
|
-
})
|
5356
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5394
5357
|
path: _path + ".title",
|
5395
5358
|
expected: "(string | undefined)",
|
5396
5359
|
value: input.title
|
@@ -5411,14 +5374,10 @@ class MigrateApplication {
|
|
5411
5374
|
expected: "(Record<string, any> | undefined)",
|
5412
5375
|
value: input.examples
|
5413
5376
|
}) ].every((flag => flag));
|
5414
|
-
const
|
5415
|
-
path: _path + "
|
5416
|
-
expected:
|
5417
|
-
value: input
|
5418
|
-
}), null === input["default"] || undefined === input["default"] || _report(_exceptionable, {
|
5419
|
-
path: _path + '["default"]',
|
5420
|
-
expected: "(null | undefined)",
|
5421
|
-
value: input["default"]
|
5377
|
+
const _vo109 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref || _report(_exceptionable, {
|
5378
|
+
path: _path + ".$ref",
|
5379
|
+
expected: "string",
|
5380
|
+
value: input.$ref
|
5422
5381
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5423
5382
|
path: _path + ".title",
|
5424
5383
|
expected: "(string | undefined)",
|
@@ -5440,7 +5399,7 @@ class MigrateApplication {
|
|
5440
5399
|
expected: "(Record<string, any> | undefined)",
|
5441
5400
|
value: input.examples
|
5442
5401
|
}) ].every((flag => flag));
|
5443
|
-
const
|
5402
|
+
const _vo110 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.allOf) || _report(_exceptionable, {
|
5444
5403
|
path: _path + ".allOf",
|
5445
5404
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
5446
5405
|
value: input.allOf
|
@@ -5477,7 +5436,7 @@ class MigrateApplication {
|
|
5477
5436
|
expected: "(Record<string, any> | undefined)",
|
5478
5437
|
value: input.examples
|
5479
5438
|
}) ].every((flag => flag));
|
5480
|
-
const
|
5439
|
+
const _vo111 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
5481
5440
|
path: _path + ".anyOf",
|
5482
5441
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
5483
5442
|
value: input.anyOf
|
@@ -5514,7 +5473,7 @@ class MigrateApplication {
|
|
5514
5473
|
expected: "(Record<string, any> | undefined)",
|
5515
5474
|
value: input.examples
|
5516
5475
|
}) ].every((flag => flag));
|
5517
|
-
const
|
5476
|
+
const _vo112 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
5518
5477
|
path: _path + ".oneOf",
|
5519
5478
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
5520
5479
|
value: input.oneOf
|
@@ -5534,7 +5493,7 @@ class MigrateApplication {
|
|
5534
5493
|
path: _path + ".discriminator",
|
5535
5494
|
expected: "(OpenApiV3.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
5536
5495
|
value: input.discriminator
|
5537
|
-
})) &&
|
5496
|
+
})) && _vo113(input.discriminator, _path + ".discriminator", _exceptionable) || _report(_exceptionable, {
|
5538
5497
|
path: _path + ".discriminator",
|
5539
5498
|
expected: "(OpenApiV3.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
5540
5499
|
value: input.discriminator
|
@@ -5559,7 +5518,7 @@ class MigrateApplication {
|
|
5559
5518
|
expected: "(Record<string, any> | undefined)",
|
5560
5519
|
value: input.examples
|
5561
5520
|
}) ].every((flag => flag));
|
5562
|
-
const
|
5521
|
+
const _vo113 = (input, _path, _exceptionable = true) => [ "string" === typeof input.propertyName || _report(_exceptionable, {
|
5563
5522
|
path: _path + ".propertyName",
|
5564
5523
|
expected: "string",
|
5565
5524
|
value: input.propertyName
|
@@ -5572,6 +5531,64 @@ class MigrateApplication {
|
|
5572
5531
|
expected: "(Record<string, string> | undefined)",
|
5573
5532
|
value: input.mapping
|
5574
5533
|
}) ].every((flag => flag));
|
5534
|
+
const _vo114 = (input, _path, _exceptionable = true) => [ null === input["default"] || undefined === input["default"] || _report(_exceptionable, {
|
5535
|
+
path: _path + '["default"]',
|
5536
|
+
expected: "(null | undefined)",
|
5537
|
+
value: input["default"]
|
5538
|
+
}), "null" === input.type || _report(_exceptionable, {
|
5539
|
+
path: _path + ".type",
|
5540
|
+
expected: '"null"',
|
5541
|
+
value: input.type
|
5542
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5543
|
+
path: _path + ".title",
|
5544
|
+
expected: "(string | undefined)",
|
5545
|
+
value: input.title
|
5546
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
5547
|
+
path: _path + ".description",
|
5548
|
+
expected: "(string | undefined)",
|
5549
|
+
value: input.description
|
5550
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
5551
|
+
path: _path + ".deprecated",
|
5552
|
+
expected: "(boolean | undefined)",
|
5553
|
+
value: input.deprecated
|
5554
|
+
}), true, undefined === input.examples || ("object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) || _report(_exceptionable, {
|
5555
|
+
path: _path + ".examples",
|
5556
|
+
expected: "(Record<string, any> | undefined)",
|
5557
|
+
value: input.examples
|
5558
|
+
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5559
|
+
path: _path + ".examples",
|
5560
|
+
expected: "(Record<string, any> | undefined)",
|
5561
|
+
value: input.examples
|
5562
|
+
}) ].every((flag => flag));
|
5563
|
+
const _vo115 = (input, _path, _exceptionable = true) => [ true, (null !== input.type || _report(_exceptionable, {
|
5564
|
+
path: _path + ".type",
|
5565
|
+
expected: "undefined",
|
5566
|
+
value: input.type
|
5567
|
+
})) && (undefined === input.type || _report(_exceptionable, {
|
5568
|
+
path: _path + ".type",
|
5569
|
+
expected: "undefined",
|
5570
|
+
value: input.type
|
5571
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5572
|
+
path: _path + ".title",
|
5573
|
+
expected: "(string | undefined)",
|
5574
|
+
value: input.title
|
5575
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
5576
|
+
path: _path + ".description",
|
5577
|
+
expected: "(string | undefined)",
|
5578
|
+
value: input.description
|
5579
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
5580
|
+
path: _path + ".deprecated",
|
5581
|
+
expected: "(boolean | undefined)",
|
5582
|
+
value: input.deprecated
|
5583
|
+
}), true, undefined === input.examples || ("object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) || _report(_exceptionable, {
|
5584
|
+
path: _path + ".examples",
|
5585
|
+
expected: "(Record<string, any> | undefined)",
|
5586
|
+
value: input.examples
|
5587
|
+
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5588
|
+
path: _path + ".examples",
|
5589
|
+
expected: "(Record<string, any> | undefined)",
|
5590
|
+
value: input.examples
|
5591
|
+
}) ].every((flag => flag));
|
5575
5592
|
const _vo116 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
5576
5593
|
const value = input[key];
|
5577
5594
|
if (undefined === value) return true;
|
@@ -6382,7 +6399,7 @@ class MigrateApplication {
|
|
6382
6399
|
path: _path + ".paths",
|
6383
6400
|
expected: "(Record<string, OpenApiV3_1.IPath> | undefined)",
|
6384
6401
|
value: input.paths
|
6385
|
-
})) &&
|
6402
|
+
})) && _vo175(input.paths, _path + ".paths", _exceptionable) || _report(_exceptionable, {
|
6386
6403
|
path: _path + ".paths",
|
6387
6404
|
expected: "(Record<string, OpenApiV3_1.IPath> | undefined)",
|
6388
6405
|
value: input.paths
|
@@ -6390,7 +6407,7 @@ class MigrateApplication {
|
|
6390
6407
|
path: _path + ".webhooks",
|
6391
6408
|
expected: "(Record<string, IPath | IReference<`#/components/pathItems/${string}`>> | undefined)",
|
6392
6409
|
value: input.webhooks
|
6393
|
-
})) &&
|
6410
|
+
})) && _vo208(input.webhooks, _path + ".webhooks", _exceptionable) || _report(_exceptionable, {
|
6394
6411
|
path: _path + ".webhooks",
|
6395
6412
|
expected: "(Record<string, IPath | IReference<`#/components/pathItems/${string}`>> | undefined)",
|
6396
6413
|
value: input.webhooks
|
@@ -6418,7 +6435,7 @@ class MigrateApplication {
|
|
6418
6435
|
path: _path + ".tags[" + _index139 + "]",
|
6419
6436
|
expected: "OpenApiV3_1.IDocument.ITag",
|
6420
6437
|
value: elem
|
6421
|
-
})) &&
|
6438
|
+
})) && _vo210(elem, _path + ".tags[" + _index139 + "]", _exceptionable) || _report(_exceptionable, {
|
6422
6439
|
path: _path + ".tags[" + _index139 + "]",
|
6423
6440
|
expected: "OpenApiV3_1.IDocument.ITag",
|
6424
6441
|
value: elem
|
@@ -6557,7 +6574,7 @@ class MigrateApplication {
|
|
6557
6574
|
path: _path + ".pathItems",
|
6558
6575
|
expected: "(Record<string, OpenApiV3_1.IPath> | undefined)",
|
6559
6576
|
value: input.pathItems
|
6560
|
-
})) &&
|
6577
|
+
})) && _vo175(input.pathItems, _path + ".pathItems", _exceptionable) || _report(_exceptionable, {
|
6561
6578
|
path: _path + ".pathItems",
|
6562
6579
|
expected: "(Record<string, OpenApiV3_1.IPath> | undefined)",
|
6563
6580
|
value: input.pathItems
|
@@ -6565,7 +6582,7 @@ class MigrateApplication {
|
|
6565
6582
|
path: _path + ".responses",
|
6566
6583
|
expected: "(Record<string, OpenApiV3_1.IOperation.IResponse> | undefined)",
|
6567
6584
|
value: input.responses
|
6568
|
-
})) &&
|
6585
|
+
})) && _vo193(input.responses, _path + ".responses", _exceptionable) || _report(_exceptionable, {
|
6569
6586
|
path: _path + ".responses",
|
6570
6587
|
expected: "(Record<string, OpenApiV3_1.IOperation.IResponse> | undefined)",
|
6571
6588
|
value: input.responses
|
@@ -6573,7 +6590,7 @@ class MigrateApplication {
|
|
6573
6590
|
path: _path + ".parameters",
|
6574
6591
|
expected: "(Record<string, OpenApiV3_1.IOperation.IParameter> | undefined)",
|
6575
6592
|
value: input.parameters
|
6576
|
-
})) &&
|
6593
|
+
})) && _vo194(input.parameters, _path + ".parameters", _exceptionable) || _report(_exceptionable, {
|
6577
6594
|
path: _path + ".parameters",
|
6578
6595
|
expected: "(Record<string, OpenApiV3_1.IOperation.IParameter> | undefined)",
|
6579
6596
|
value: input.parameters
|
@@ -6581,7 +6598,7 @@ class MigrateApplication {
|
|
6581
6598
|
path: _path + ".requestBodies",
|
6582
6599
|
expected: "(Record<string, OpenApiV3_1.IOperation.IRequestBody> | undefined)",
|
6583
6600
|
value: input.requestBodies
|
6584
|
-
})) &&
|
6601
|
+
})) && _vo195(input.requestBodies, _path + ".requestBodies", _exceptionable) || _report(_exceptionable, {
|
6585
6602
|
path: _path + ".requestBodies",
|
6586
6603
|
expected: "(Record<string, OpenApiV3_1.IOperation.IRequestBody> | undefined)",
|
6587
6604
|
value: input.requestBodies
|
@@ -6589,7 +6606,7 @@ class MigrateApplication {
|
|
6589
6606
|
path: _path + ".securitySchemes",
|
6590
6607
|
expected: "(Record<string, OpenApiV3_1.ISecurityScheme> | undefined)",
|
6591
6608
|
value: input.securitySchemes
|
6592
|
-
})) &&
|
6609
|
+
})) && _vo196(input.securitySchemes, _path + ".securitySchemes", _exceptionable) || _report(_exceptionable, {
|
6593
6610
|
path: _path + ".securitySchemes",
|
6594
6611
|
expected: "(Record<string, OpenApiV3_1.ISecurityScheme> | undefined)",
|
6595
6612
|
value: input.securitySchemes
|
@@ -6597,7 +6614,7 @@ class MigrateApplication {
|
|
6597
6614
|
path: _path + ".headers",
|
6598
6615
|
expected: '(Record<string, Omit<OpenApiV3_1.IOperation.IParameter, "in">> | undefined)',
|
6599
6616
|
value: input.headers
|
6600
|
-
})) &&
|
6617
|
+
})) && _vo206(input.headers, _path + ".headers", _exceptionable) || _report(_exceptionable, {
|
6601
6618
|
path: _path + ".headers",
|
6602
6619
|
expected: '(Record<string, Omit<OpenApiV3_1.IOperation.IParameter, "in">> | undefined)',
|
6603
6620
|
value: input.headers
|
@@ -6605,7 +6622,7 @@ class MigrateApplication {
|
|
6605
6622
|
path: _path + ".examples",
|
6606
6623
|
expected: "(Record<string, OpenApiV3_1.IExample> | undefined)",
|
6607
6624
|
value: input.examples
|
6608
|
-
})) &&
|
6625
|
+
})) && _vo207(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
6609
6626
|
path: _path + ".examples",
|
6610
6627
|
expected: "(Record<string, OpenApiV3_1.IExample> | undefined)",
|
6611
6628
|
value: input.examples
|
@@ -6615,11 +6632,11 @@ class MigrateApplication {
|
|
6615
6632
|
if (undefined === value) return true;
|
6616
6633
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
6617
6634
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
6618
|
-
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)",
|
6635
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6619
6636
|
value
|
6620
6637
|
})) && _vu7(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
6621
6638
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
6622
|
-
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)",
|
6639
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6623
6640
|
value
|
6624
6641
|
});
|
6625
6642
|
})).every((flag => flag)) ].every((flag => flag));
|
@@ -6647,6 +6664,10 @@ class MigrateApplication {
|
|
6647
6664
|
path: _path + '["const"]',
|
6648
6665
|
expected: "(boolean | number | string)",
|
6649
6666
|
value: input["const"]
|
6667
|
+
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
6668
|
+
path: _path + ".nullable",
|
6669
|
+
expected: "(boolean | undefined)",
|
6670
|
+
value: input.nullable
|
6650
6671
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
6651
6672
|
path: _path + ".title",
|
6652
6673
|
expected: "(string | undefined)",
|
@@ -6667,10 +6688,6 @@ class MigrateApplication {
|
|
6667
6688
|
path: _path + ".examples",
|
6668
6689
|
expected: "(Record<string, any> | undefined)",
|
6669
6690
|
value: input.examples
|
6670
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
6671
|
-
path: _path + ".nullable",
|
6672
|
-
expected: "(boolean | undefined)",
|
6673
|
-
value: input.nullable
|
6674
6691
|
}), undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
|
6675
6692
|
path: _path + ".minimum",
|
6676
6693
|
expected: "(number | undefined)",
|
@@ -6725,23 +6742,23 @@ class MigrateApplication {
|
|
6725
6742
|
value: input.maxLength
|
6726
6743
|
}), (null !== input.items || _report(_exceptionable, {
|
6727
6744
|
path: _path + ".items",
|
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)",
|
6745
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
6729
6746
|
value: input.items
|
6730
6747
|
})) && (undefined === input.items || (Array.isArray(input.items) && input.items.map(((elem, _index142) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6731
6748
|
path: _path + ".items[" + _index142 + "]",
|
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)",
|
6749
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6733
6750
|
value: elem
|
6734
6751
|
})) && _vu7(elem, _path + ".items[" + _index142 + "]", _exceptionable) || _report(_exceptionable, {
|
6735
6752
|
path: _path + ".items[" + _index142 + "]",
|
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)",
|
6753
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6737
6754
|
value: elem
|
6738
6755
|
}))).every((flag => flag)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _vu7(input.items, _path + ".items", _exceptionable) || _report(_exceptionable, {
|
6739
6756
|
path: _path + ".items",
|
6740
|
-
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)",
|
6757
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
6741
6758
|
value: input.items
|
6742
6759
|
})) || _report(_exceptionable, {
|
6743
6760
|
path: _path + ".items",
|
6744
|
-
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)",
|
6761
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
6745
6762
|
value: input.items
|
6746
6763
|
})), undefined === input.uniqueItems || "boolean" === typeof input.uniqueItems || _report(_exceptionable, {
|
6747
6764
|
path: _path + ".uniqueItems",
|
@@ -6769,11 +6786,11 @@ class MigrateApplication {
|
|
6769
6786
|
value: input.prefixItems
|
6770
6787
|
})) && input.prefixItems.map(((elem, _index143) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6771
6788
|
path: _path + ".prefixItems[" + _index143 + "]",
|
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)",
|
6789
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6773
6790
|
value: elem
|
6774
6791
|
})) && _vu7(elem, _path + ".prefixItems[" + _index143 + "]", _exceptionable) || _report(_exceptionable, {
|
6775
6792
|
path: _path + ".prefixItems[" + _index143 + "]",
|
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)",
|
6793
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6777
6794
|
value: elem
|
6778
6795
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
6779
6796
|
path: _path + ".prefixItems",
|
@@ -6781,15 +6798,15 @@ class MigrateApplication {
|
|
6781
6798
|
value: input.prefixItems
|
6782
6799
|
}), (null !== input.additionalItems || _report(_exceptionable, {
|
6783
6800
|
path: _path + ".additionalItems",
|
6784
|
-
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 | boolean | undefined)",
|
6801
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
6785
6802
|
value: input.additionalItems
|
6786
6803
|
})) && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || ("object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) || _report(_exceptionable, {
|
6787
6804
|
path: _path + ".additionalItems",
|
6788
|
-
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 | boolean | undefined)",
|
6805
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
6789
6806
|
value: input.additionalItems
|
6790
6807
|
})) && _vu7(input.additionalItems, _path + ".additionalItems", _exceptionable) || _report(_exceptionable, {
|
6791
6808
|
path: _path + ".additionalItems",
|
6792
|
-
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 | boolean | undefined)",
|
6809
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
6793
6810
|
value: input.additionalItems
|
6794
6811
|
})), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
6795
6812
|
path: _path + ".properties",
|
@@ -6801,15 +6818,15 @@ class MigrateApplication {
|
|
6801
6818
|
value: input.properties
|
6802
6819
|
}), (null !== input.additionalProperties || _report(_exceptionable, {
|
6803
6820
|
path: _path + ".additionalProperties",
|
6804
|
-
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 | boolean | undefined)",
|
6821
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
6805
6822
|
value: input.additionalProperties
|
6806
6823
|
})) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || _report(_exceptionable, {
|
6807
6824
|
path: _path + ".additionalProperties",
|
6808
|
-
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 | boolean | undefined)",
|
6825
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
6809
6826
|
value: input.additionalProperties
|
6810
6827
|
})) && _vu7(input.additionalProperties, _path + ".additionalProperties", _exceptionable) || _report(_exceptionable, {
|
6811
6828
|
path: _path + ".additionalProperties",
|
6812
|
-
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 | boolean | undefined)",
|
6829
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
6813
6830
|
value: input.additionalProperties
|
6814
6831
|
})), undefined === input.required || (Array.isArray(input.required) || _report(_exceptionable, {
|
6815
6832
|
path: _path + ".required",
|
@@ -6837,11 +6854,11 @@ class MigrateApplication {
|
|
6837
6854
|
value: input.oneOf
|
6838
6855
|
})) && input.oneOf.map(((elem, _index145) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6839
6856
|
path: _path + ".oneOf[" + _index145 + "]",
|
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)",
|
6857
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6841
6858
|
value: elem
|
6842
6859
|
})) && _vu7(elem, _path + ".oneOf[" + _index145 + "]", _exceptionable) || _report(_exceptionable, {
|
6843
6860
|
path: _path + ".oneOf[" + _index145 + "]",
|
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)",
|
6861
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6845
6862
|
value: elem
|
6846
6863
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
6847
6864
|
path: _path + ".oneOf",
|
@@ -6851,7 +6868,7 @@ class MigrateApplication {
|
|
6851
6868
|
path: _path + ".discriminator",
|
6852
6869
|
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
6853
6870
|
value: input.discriminator
|
6854
|
-
})) &&
|
6871
|
+
})) && _vo172(input.discriminator, _path + ".discriminator", _exceptionable) || _report(_exceptionable, {
|
6855
6872
|
path: _path + ".discriminator",
|
6856
6873
|
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
6857
6874
|
value: input.discriminator
|
@@ -6861,11 +6878,11 @@ class MigrateApplication {
|
|
6861
6878
|
value: input.anyOf
|
6862
6879
|
})) && input.anyOf.map(((elem, _index146) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6863
6880
|
path: _path + ".anyOf[" + _index146 + "]",
|
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)",
|
6881
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6865
6882
|
value: elem
|
6866
6883
|
})) && _vu7(elem, _path + ".anyOf[" + _index146 + "]", _exceptionable) || _report(_exceptionable, {
|
6867
6884
|
path: _path + ".anyOf[" + _index146 + "]",
|
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)",
|
6885
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6869
6886
|
value: elem
|
6870
6887
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
6871
6888
|
path: _path + ".anyOf",
|
@@ -6877,11 +6894,11 @@ class MigrateApplication {
|
|
6877
6894
|
value: input.allOf
|
6878
6895
|
})) && input.allOf.map(((elem, _index147) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
6879
6896
|
path: _path + ".allOf[" + _index147 + "]",
|
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)",
|
6897
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6881
6898
|
value: elem
|
6882
6899
|
})) && _vu7(elem, _path + ".allOf[" + _index147 + "]", _exceptionable) || _report(_exceptionable, {
|
6883
6900
|
path: _path + ".allOf[" + _index147 + "]",
|
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)",
|
6901
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
6885
6902
|
value: elem
|
6886
6903
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
6887
6904
|
path: _path + ".allOf",
|
@@ -6896,6 +6913,10 @@ class MigrateApplication {
|
|
6896
6913
|
path: _path + '["const"]',
|
6897
6914
|
expected: "(boolean | number | string)",
|
6898
6915
|
value: input["const"]
|
6916
|
+
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
6917
|
+
path: _path + ".nullable",
|
6918
|
+
expected: "(boolean | undefined)",
|
6919
|
+
value: input.nullable
|
6899
6920
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
6900
6921
|
path: _path + ".title",
|
6901
6922
|
expected: "(string | undefined)",
|
@@ -6917,7 +6938,11 @@ class MigrateApplication {
|
|
6917
6938
|
expected: "(Record<string, any> | undefined)",
|
6918
6939
|
value: input.examples
|
6919
6940
|
}) ].every((flag => flag));
|
6920
|
-
const _vo161 = (input, _path, _exceptionable = true) => [
|
6941
|
+
const _vo161 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
6942
|
+
path: _path + ".nullable",
|
6943
|
+
expected: "(boolean | undefined)",
|
6944
|
+
value: input.nullable
|
6945
|
+
}), null === input["default"] || undefined === input["default"] || "boolean" === typeof input["default"] || _report(_exceptionable, {
|
6921
6946
|
path: _path + '["default"]',
|
6922
6947
|
expected: "(boolean | null | undefined)",
|
6923
6948
|
value: input["default"]
|
@@ -6937,10 +6962,6 @@ class MigrateApplication {
|
|
6937
6962
|
path: _path + ".type",
|
6938
6963
|
expected: '"boolean"',
|
6939
6964
|
value: input.type
|
6940
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
6941
|
-
path: _path + ".nullable",
|
6942
|
-
expected: "(boolean | undefined)",
|
6943
|
-
value: input.nullable
|
6944
6965
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
6945
6966
|
path: _path + ".title",
|
6946
6967
|
expected: "(string | undefined)",
|
@@ -6962,7 +6983,11 @@ class MigrateApplication {
|
|
6962
6983
|
expected: "(Record<string, any> | undefined)",
|
6963
6984
|
value: input.examples
|
6964
6985
|
}) ].every((flag => flag));
|
6965
|
-
const _vo162 = (input, _path, _exceptionable = true) => [
|
6986
|
+
const _vo162 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
6987
|
+
path: _path + ".nullable",
|
6988
|
+
expected: "(boolean | undefined)",
|
6989
|
+
value: input.nullable
|
6990
|
+
}), null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000 || _report(_exceptionable, {
|
6966
6991
|
path: _path + '["default"]',
|
6967
6992
|
expected: 'number & Type<"int64">',
|
6968
6993
|
value: input["default"]
|
@@ -7030,10 +7055,6 @@ class MigrateApplication {
|
|
7030
7055
|
path: _path + ".type",
|
7031
7056
|
expected: '"integer"',
|
7032
7057
|
value: input.type
|
7033
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7034
|
-
path: _path + ".nullable",
|
7035
|
-
expected: "(boolean | undefined)",
|
7036
|
-
value: input.nullable
|
7037
7058
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7038
7059
|
path: _path + ".title",
|
7039
7060
|
expected: "(string | undefined)",
|
@@ -7055,7 +7076,11 @@ class MigrateApplication {
|
|
7055
7076
|
expected: "(Record<string, any> | undefined)",
|
7056
7077
|
value: input.examples
|
7057
7078
|
}) ].every((flag => flag));
|
7058
|
-
const _vo163 = (input, _path, _exceptionable = true) => [
|
7079
|
+
const _vo163 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7080
|
+
path: _path + ".nullable",
|
7081
|
+
expected: "(boolean | undefined)",
|
7082
|
+
value: input.nullable
|
7083
|
+
}), null === input["default"] || undefined === input["default"] || "number" === typeof input["default"] || _report(_exceptionable, {
|
7059
7084
|
path: _path + '["default"]',
|
7060
7085
|
expected: "(null | number | undefined)",
|
7061
7086
|
value: input["default"]
|
@@ -7099,10 +7124,6 @@ class MigrateApplication {
|
|
7099
7124
|
path: _path + ".type",
|
7100
7125
|
expected: '"number"',
|
7101
7126
|
value: input.type
|
7102
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7103
|
-
path: _path + ".nullable",
|
7104
|
-
expected: "(boolean | undefined)",
|
7105
|
-
value: input.nullable
|
7106
7127
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7107
7128
|
path: _path + ".title",
|
7108
7129
|
expected: "(string | undefined)",
|
@@ -7124,10 +7145,10 @@ class MigrateApplication {
|
|
7124
7145
|
expected: "(Record<string, any> | undefined)",
|
7125
7146
|
value: input.examples
|
7126
7147
|
}) ].every((flag => flag));
|
7127
|
-
const _vo164 = (input, _path, _exceptionable = true) => [ undefined === input.
|
7128
|
-
path: _path + ".
|
7129
|
-
expected: "(
|
7130
|
-
value: input.
|
7148
|
+
const _vo164 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7149
|
+
path: _path + ".nullable",
|
7150
|
+
expected: "(boolean | undefined)",
|
7151
|
+
value: input.nullable
|
7131
7152
|
}), null === input["default"] || undefined === input["default"] || "string" === typeof input["default"] || _report(_exceptionable, {
|
7132
7153
|
path: _path + '["default"]',
|
7133
7154
|
expected: "(null | string | undefined)",
|
@@ -7152,6 +7173,10 @@ class MigrateApplication {
|
|
7152
7173
|
path: _path + ".pattern",
|
7153
7174
|
expected: "(string | undefined)",
|
7154
7175
|
value: input.pattern
|
7176
|
+
}), undefined === input.contentMediaType || "string" === typeof input.contentMediaType || _report(_exceptionable, {
|
7177
|
+
path: _path + ".contentMediaType",
|
7178
|
+
expected: "(string | undefined)",
|
7179
|
+
value: input.contentMediaType
|
7155
7180
|
}), undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 0x10000000000000000 || _report(_exceptionable, {
|
7156
7181
|
path: _path + ".minLength",
|
7157
7182
|
expected: 'number & Type<"uint64">',
|
@@ -7172,10 +7197,6 @@ class MigrateApplication {
|
|
7172
7197
|
path: _path + ".type",
|
7173
7198
|
expected: '"string"',
|
7174
7199
|
value: input.type
|
7175
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7176
|
-
path: _path + ".nullable",
|
7177
|
-
expected: "(boolean | undefined)",
|
7178
|
-
value: input.nullable
|
7179
7200
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7180
7201
|
path: _path + ".title",
|
7181
7202
|
expected: "(string | undefined)",
|
@@ -7197,25 +7218,29 @@ class MigrateApplication {
|
|
7197
7218
|
expected: "(Record<string, any> | undefined)",
|
7198
7219
|
value: input.examples
|
7199
7220
|
}) ].every((flag => flag));
|
7200
|
-
const _vo165 = (input, _path, _exceptionable = true) => [
|
7221
|
+
const _vo165 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7222
|
+
path: _path + ".nullable",
|
7223
|
+
expected: "(boolean | undefined)",
|
7224
|
+
value: input.nullable
|
7225
|
+
}), (null !== input.items || _report(_exceptionable, {
|
7201
7226
|
path: _path + ".items",
|
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)",
|
7227
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
7203
7228
|
value: input.items
|
7204
7229
|
})) && (undefined === input.items || (Array.isArray(input.items) && input.items.map(((elem, _index152) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
7205
7230
|
path: _path + ".items[" + _index152 + "]",
|
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)",
|
7231
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7207
7232
|
value: elem
|
7208
7233
|
})) && _vu7(elem, _path + ".items[" + _index152 + "]", _exceptionable) || _report(_exceptionable, {
|
7209
7234
|
path: _path + ".items[" + _index152 + "]",
|
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)",
|
7235
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7211
7236
|
value: elem
|
7212
7237
|
}))).every((flag => flag)) || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _vu7(input.items, _path + ".items", _exceptionable) || _report(_exceptionable, {
|
7213
7238
|
path: _path + ".items",
|
7214
|
-
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)",
|
7239
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
7215
7240
|
value: input.items
|
7216
7241
|
})) || _report(_exceptionable, {
|
7217
7242
|
path: _path + ".items",
|
7218
|
-
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)",
|
7243
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
7219
7244
|
value: input.items
|
7220
7245
|
})), undefined === input.prefixItems || (Array.isArray(input.prefixItems) || _report(_exceptionable, {
|
7221
7246
|
path: _path + ".prefixItems",
|
@@ -7223,11 +7248,11 @@ class MigrateApplication {
|
|
7223
7248
|
value: input.prefixItems
|
7224
7249
|
})) && input.prefixItems.map(((elem, _index153) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
7225
7250
|
path: _path + ".prefixItems[" + _index153 + "]",
|
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)",
|
7251
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7227
7252
|
value: elem
|
7228
7253
|
})) && _vu7(elem, _path + ".prefixItems[" + _index153 + "]", _exceptionable) || _report(_exceptionable, {
|
7229
7254
|
path: _path + ".prefixItems[" + _index153 + "]",
|
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)",
|
7255
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7231
7256
|
value: elem
|
7232
7257
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
7233
7258
|
path: _path + ".prefixItems",
|
@@ -7239,15 +7264,15 @@ class MigrateApplication {
|
|
7239
7264
|
value: input.uniqueItems
|
7240
7265
|
}), (null !== input.additionalItems || _report(_exceptionable, {
|
7241
7266
|
path: _path + ".additionalItems",
|
7242
|
-
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 | boolean | undefined)",
|
7267
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
7243
7268
|
value: input.additionalItems
|
7244
7269
|
})) && (undefined === input.additionalItems || "boolean" === typeof input.additionalItems || ("object" === typeof input.additionalItems && null !== input.additionalItems && false === Array.isArray(input.additionalItems) || _report(_exceptionable, {
|
7245
7270
|
path: _path + ".additionalItems",
|
7246
|
-
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 | boolean | undefined)",
|
7271
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
7247
7272
|
value: input.additionalItems
|
7248
7273
|
})) && _vu7(input.additionalItems, _path + ".additionalItems", _exceptionable) || _report(_exceptionable, {
|
7249
7274
|
path: _path + ".additionalItems",
|
7250
|
-
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 | boolean | undefined)",
|
7275
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
7251
7276
|
value: input.additionalItems
|
7252
7277
|
})), undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 0x10000000000000000 || _report(_exceptionable, {
|
7253
7278
|
path: _path + ".minItems",
|
@@ -7269,10 +7294,6 @@ class MigrateApplication {
|
|
7269
7294
|
path: _path + ".type",
|
7270
7295
|
expected: '"array"',
|
7271
7296
|
value: input.type
|
7272
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7273
|
-
path: _path + ".nullable",
|
7274
|
-
expected: "(boolean | undefined)",
|
7275
|
-
value: input.nullable
|
7276
7297
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7277
7298
|
path: _path + ".title",
|
7278
7299
|
expected: "(string | undefined)",
|
@@ -7294,7 +7315,11 @@ class MigrateApplication {
|
|
7294
7315
|
expected: "(Record<string, any> | undefined)",
|
7295
7316
|
value: input.examples
|
7296
7317
|
}) ].every((flag => flag));
|
7297
|
-
const _vo166 = (input, _path, _exceptionable = true) => [ undefined === input.
|
7318
|
+
const _vo166 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7319
|
+
path: _path + ".nullable",
|
7320
|
+
expected: "(boolean | undefined)",
|
7321
|
+
value: input.nullable
|
7322
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
7298
7323
|
path: _path + ".properties",
|
7299
7324
|
expected: "(Record<string, OpenApiV3_1.IJsonSchema> | undefined)",
|
7300
7325
|
value: input.properties
|
@@ -7316,15 +7341,15 @@ class MigrateApplication {
|
|
7316
7341
|
value: input.required
|
7317
7342
|
}), (null !== input.additionalProperties || _report(_exceptionable, {
|
7318
7343
|
path: _path + ".additionalProperties",
|
7319
|
-
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 | boolean | undefined)",
|
7344
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
7320
7345
|
value: input.additionalProperties
|
7321
7346
|
})) && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || ("object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) || _report(_exceptionable, {
|
7322
7347
|
path: _path + ".additionalProperties",
|
7323
|
-
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 | boolean | undefined)",
|
7348
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
7324
7349
|
value: input.additionalProperties
|
7325
7350
|
})) && _vu7(input.additionalProperties, _path + ".additionalProperties", _exceptionable) || _report(_exceptionable, {
|
7326
7351
|
path: _path + ".additionalProperties",
|
7327
|
-
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 | boolean | undefined)",
|
7352
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | boolean | undefined)",
|
7328
7353
|
value: input.additionalProperties
|
7329
7354
|
})), undefined === input.maxProperties || "number" === typeof input.maxProperties || _report(_exceptionable, {
|
7330
7355
|
path: _path + ".maxProperties",
|
@@ -7338,10 +7363,6 @@ class MigrateApplication {
|
|
7338
7363
|
path: _path + ".type",
|
7339
7364
|
expected: '"object"',
|
7340
7365
|
value: input.type
|
7341
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7342
|
-
path: _path + ".nullable",
|
7343
|
-
expected: "(boolean | undefined)",
|
7344
|
-
value: input.nullable
|
7345
7366
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7346
7367
|
path: _path + ".title",
|
7347
7368
|
expected: "(string | undefined)",
|
@@ -7388,47 +7409,10 @@ class MigrateApplication {
|
|
7388
7409
|
expected: "(Record<string, any> | undefined)",
|
7389
7410
|
value: input.examples
|
7390
7411
|
}) ].every((flag => flag));
|
7391
|
-
const _vo168 = (input, _path, _exceptionable = true) => [
|
7392
|
-
path: _path + "
|
7393
|
-
expected: "
|
7394
|
-
value: input
|
7395
|
-
})) && (undefined === input.type || _report(_exceptionable, {
|
7396
|
-
path: _path + ".type",
|
7397
|
-
expected: "undefined",
|
7398
|
-
value: input.type
|
7399
|
-
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7400
|
-
path: _path + ".title",
|
7401
|
-
expected: "(string | undefined)",
|
7402
|
-
value: input.title
|
7403
|
-
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
7404
|
-
path: _path + ".description",
|
7405
|
-
expected: "(string | undefined)",
|
7406
|
-
value: input.description
|
7407
|
-
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
7408
|
-
path: _path + ".deprecated",
|
7409
|
-
expected: "(boolean | undefined)",
|
7410
|
-
value: input.deprecated
|
7411
|
-
}), true, undefined === input.examples || ("object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) || _report(_exceptionable, {
|
7412
|
-
path: _path + ".examples",
|
7413
|
-
expected: "(Record<string, any> | undefined)",
|
7414
|
-
value: input.examples
|
7415
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7416
|
-
path: _path + ".examples",
|
7417
|
-
expected: "(Record<string, any> | undefined)",
|
7418
|
-
value: input.examples
|
7419
|
-
}) ].every((flag => flag));
|
7420
|
-
const _vo169 = (input, _path, _exceptionable = true) => [ null === input["default"] || undefined === input["default"] || _report(_exceptionable, {
|
7421
|
-
path: _path + '["default"]',
|
7422
|
-
expected: "(null | undefined)",
|
7423
|
-
value: input["default"]
|
7424
|
-
}), "null" === input.type || _report(_exceptionable, {
|
7425
|
-
path: _path + ".type",
|
7426
|
-
expected: '"null"',
|
7427
|
-
value: input.type
|
7428
|
-
}), undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7429
|
-
path: _path + ".nullable",
|
7430
|
-
expected: "(boolean | undefined)",
|
7431
|
-
value: input.nullable
|
7412
|
+
const _vo168 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$recursiveRef || _report(_exceptionable, {
|
7413
|
+
path: _path + ".$recursiveRef",
|
7414
|
+
expected: "string",
|
7415
|
+
value: input.$recursiveRef
|
7432
7416
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7433
7417
|
path: _path + ".title",
|
7434
7418
|
expected: "(string | undefined)",
|
@@ -7450,17 +7434,17 @@ class MigrateApplication {
|
|
7450
7434
|
expected: "(Record<string, any> | undefined)",
|
7451
7435
|
value: input.examples
|
7452
7436
|
}) ].every((flag => flag));
|
7453
|
-
const
|
7437
|
+
const _vo169 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.allOf) || _report(_exceptionable, {
|
7454
7438
|
path: _path + ".allOf",
|
7455
7439
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
7456
7440
|
value: input.allOf
|
7457
7441
|
})) && input.allOf.map(((elem, _index155) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
7458
7442
|
path: _path + ".allOf[" + _index155 + "]",
|
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)",
|
7443
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7460
7444
|
value: elem
|
7461
7445
|
})) && _vu7(elem, _path + ".allOf[" + _index155 + "]", _exceptionable) || _report(_exceptionable, {
|
7462
7446
|
path: _path + ".allOf[" + _index155 + "]",
|
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)",
|
7447
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7464
7448
|
value: elem
|
7465
7449
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
7466
7450
|
path: _path + ".allOf",
|
@@ -7487,17 +7471,17 @@ class MigrateApplication {
|
|
7487
7471
|
expected: "(Record<string, any> | undefined)",
|
7488
7472
|
value: input.examples
|
7489
7473
|
}) ].every((flag => flag));
|
7490
|
-
const
|
7474
|
+
const _vo170 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
7491
7475
|
path: _path + ".anyOf",
|
7492
7476
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
7493
7477
|
value: input.anyOf
|
7494
7478
|
})) && input.anyOf.map(((elem, _index156) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
7495
7479
|
path: _path + ".anyOf[" + _index156 + "]",
|
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)",
|
7480
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7497
7481
|
value: elem
|
7498
7482
|
})) && _vu7(elem, _path + ".anyOf[" + _index156 + "]", _exceptionable) || _report(_exceptionable, {
|
7499
7483
|
path: _path + ".anyOf[" + _index156 + "]",
|
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)",
|
7484
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7501
7485
|
value: elem
|
7502
7486
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
7503
7487
|
path: _path + ".anyOf",
|
@@ -7524,17 +7508,17 @@ class MigrateApplication {
|
|
7524
7508
|
expected: "(Record<string, any> | undefined)",
|
7525
7509
|
value: input.examples
|
7526
7510
|
}) ].every((flag => flag));
|
7527
|
-
const
|
7511
|
+
const _vo171 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
7528
7512
|
path: _path + ".oneOf",
|
7529
7513
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
7530
7514
|
value: input.oneOf
|
7531
7515
|
})) && input.oneOf.map(((elem, _index157) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
7532
7516
|
path: _path + ".oneOf[" + _index157 + "]",
|
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)",
|
7517
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7534
7518
|
value: elem
|
7535
7519
|
})) && _vu7(elem, _path + ".oneOf[" + _index157 + "]", _exceptionable) || _report(_exceptionable, {
|
7536
7520
|
path: _path + ".oneOf[" + _index157 + "]",
|
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)",
|
7521
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7538
7522
|
value: elem
|
7539
7523
|
}))).every((flag => flag)) || _report(_exceptionable, {
|
7540
7524
|
path: _path + ".oneOf",
|
@@ -7544,7 +7528,7 @@ class MigrateApplication {
|
|
7544
7528
|
path: _path + ".discriminator",
|
7545
7529
|
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
7546
7530
|
value: input.discriminator
|
7547
|
-
})) &&
|
7531
|
+
})) && _vo172(input.discriminator, _path + ".discriminator", _exceptionable) || _report(_exceptionable, {
|
7548
7532
|
path: _path + ".discriminator",
|
7549
7533
|
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
7550
7534
|
value: input.discriminator
|
@@ -7569,7 +7553,7 @@ class MigrateApplication {
|
|
7569
7553
|
expected: "(Record<string, any> | undefined)",
|
7570
7554
|
value: input.examples
|
7571
7555
|
}) ].every((flag => flag));
|
7572
|
-
const
|
7556
|
+
const _vo172 = (input, _path, _exceptionable = true) => [ "string" === typeof input.propertyName || _report(_exceptionable, {
|
7573
7557
|
path: _path + ".propertyName",
|
7574
7558
|
expected: "string",
|
7575
7559
|
value: input.propertyName
|
@@ -7582,20 +7566,78 @@ class MigrateApplication {
|
|
7582
7566
|
expected: "(Record<string, string> | undefined)",
|
7583
7567
|
value: input.mapping
|
7584
7568
|
}) ].every((flag => flag));
|
7585
|
-
const
|
7569
|
+
const _vo173 = (input, _path, _exceptionable = true) => [ null === input["default"] || undefined === input["default"] || _report(_exceptionable, {
|
7570
|
+
path: _path + '["default"]',
|
7571
|
+
expected: "(null | undefined)",
|
7572
|
+
value: input["default"]
|
7573
|
+
}), "null" === input.type || _report(_exceptionable, {
|
7574
|
+
path: _path + ".type",
|
7575
|
+
expected: '"null"',
|
7576
|
+
value: input.type
|
7577
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7578
|
+
path: _path + ".title",
|
7579
|
+
expected: "(string | undefined)",
|
7580
|
+
value: input.title
|
7581
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
7582
|
+
path: _path + ".description",
|
7583
|
+
expected: "(string | undefined)",
|
7584
|
+
value: input.description
|
7585
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
7586
|
+
path: _path + ".deprecated",
|
7587
|
+
expected: "(boolean | undefined)",
|
7588
|
+
value: input.deprecated
|
7589
|
+
}), true, undefined === input.examples || ("object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) || _report(_exceptionable, {
|
7590
|
+
path: _path + ".examples",
|
7591
|
+
expected: "(Record<string, any> | undefined)",
|
7592
|
+
value: input.examples
|
7593
|
+
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7594
|
+
path: _path + ".examples",
|
7595
|
+
expected: "(Record<string, any> | undefined)",
|
7596
|
+
value: input.examples
|
7597
|
+
}) ].every((flag => flag));
|
7598
|
+
const _vo174 = (input, _path, _exceptionable = true) => [ (null !== input.type || _report(_exceptionable, {
|
7599
|
+
path: _path + ".type",
|
7600
|
+
expected: "undefined",
|
7601
|
+
value: input.type
|
7602
|
+
})) && (undefined === input.type || _report(_exceptionable, {
|
7603
|
+
path: _path + ".type",
|
7604
|
+
expected: "undefined",
|
7605
|
+
value: input.type
|
7606
|
+
})), true, undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7607
|
+
path: _path + ".title",
|
7608
|
+
expected: "(string | undefined)",
|
7609
|
+
value: input.title
|
7610
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
7611
|
+
path: _path + ".description",
|
7612
|
+
expected: "(string | undefined)",
|
7613
|
+
value: input.description
|
7614
|
+
}), undefined === input.deprecated || "boolean" === typeof input.deprecated || _report(_exceptionable, {
|
7615
|
+
path: _path + ".deprecated",
|
7616
|
+
expected: "(boolean | undefined)",
|
7617
|
+
value: input.deprecated
|
7618
|
+
}), true, undefined === input.examples || ("object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) || _report(_exceptionable, {
|
7619
|
+
path: _path + ".examples",
|
7620
|
+
expected: "(Record<string, any> | undefined)",
|
7621
|
+
value: input.examples
|
7622
|
+
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7623
|
+
path: _path + ".examples",
|
7624
|
+
expected: "(Record<string, any> | undefined)",
|
7625
|
+
value: input.examples
|
7626
|
+
}) ].every((flag => flag));
|
7627
|
+
const _vo175 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
7586
7628
|
const value = input[key];
|
7587
7629
|
if (undefined === value) return true;
|
7588
7630
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
7589
7631
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
7590
7632
|
expected: "OpenApiV3_1.IPath",
|
7591
7633
|
value
|
7592
|
-
})) &&
|
7634
|
+
})) && _vo176(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
7593
7635
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
7594
7636
|
expected: "OpenApiV3_1.IPath",
|
7595
7637
|
value
|
7596
7638
|
});
|
7597
7639
|
})).every((flag => flag)) ].every((flag => flag));
|
7598
|
-
const
|
7640
|
+
const _vo176 = (input, _path, _exceptionable = true) => [ undefined === input.parameters || (Array.isArray(input.parameters) || _report(_exceptionable, {
|
7599
7641
|
path: _path + ".parameters",
|
7600
7642
|
expected: "(Array<IParameter | IReference<`#/components/headers/${string}`> | IReference<`#/components/parameters/${string}`>>.o1 | undefined)",
|
7601
7643
|
value: input.parameters
|
@@ -7639,7 +7681,7 @@ class MigrateApplication {
|
|
7639
7681
|
path: _path + ".head",
|
7640
7682
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7641
7683
|
value: input.head
|
7642
|
-
})) &&
|
7684
|
+
})) && _vo183(input.head, _path + ".head", _exceptionable) || _report(_exceptionable, {
|
7643
7685
|
path: _path + ".head",
|
7644
7686
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7645
7687
|
value: input.head
|
@@ -7647,7 +7689,7 @@ class MigrateApplication {
|
|
7647
7689
|
path: _path + ".get",
|
7648
7690
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7649
7691
|
value: input.get
|
7650
|
-
})) &&
|
7692
|
+
})) && _vo183(input.get, _path + ".get", _exceptionable) || _report(_exceptionable, {
|
7651
7693
|
path: _path + ".get",
|
7652
7694
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7653
7695
|
value: input.get
|
@@ -7655,7 +7697,7 @@ class MigrateApplication {
|
|
7655
7697
|
path: _path + ".post",
|
7656
7698
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7657
7699
|
value: input.post
|
7658
|
-
})) &&
|
7700
|
+
})) && _vo183(input.post, _path + ".post", _exceptionable) || _report(_exceptionable, {
|
7659
7701
|
path: _path + ".post",
|
7660
7702
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7661
7703
|
value: input.post
|
@@ -7663,7 +7705,7 @@ class MigrateApplication {
|
|
7663
7705
|
path: _path + ".put",
|
7664
7706
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7665
7707
|
value: input.put
|
7666
|
-
})) &&
|
7708
|
+
})) && _vo183(input.put, _path + ".put", _exceptionable) || _report(_exceptionable, {
|
7667
7709
|
path: _path + ".put",
|
7668
7710
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7669
7711
|
value: input.put
|
@@ -7671,7 +7713,7 @@ class MigrateApplication {
|
|
7671
7713
|
path: _path + ".patch",
|
7672
7714
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7673
7715
|
value: input.patch
|
7674
|
-
})) &&
|
7716
|
+
})) && _vo183(input.patch, _path + ".patch", _exceptionable) || _report(_exceptionable, {
|
7675
7717
|
path: _path + ".patch",
|
7676
7718
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7677
7719
|
value: input.patch
|
@@ -7679,7 +7721,7 @@ class MigrateApplication {
|
|
7679
7721
|
path: _path + '["delete"]',
|
7680
7722
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7681
7723
|
value: input["delete"]
|
7682
|
-
})) &&
|
7724
|
+
})) && _vo183(input["delete"], _path + '["delete"]', _exceptionable) || _report(_exceptionable, {
|
7683
7725
|
path: _path + '["delete"]',
|
7684
7726
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7685
7727
|
value: input["delete"]
|
@@ -7687,7 +7729,7 @@ class MigrateApplication {
|
|
7687
7729
|
path: _path + ".options",
|
7688
7730
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7689
7731
|
value: input.options
|
7690
|
-
})) &&
|
7732
|
+
})) && _vo183(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
7691
7733
|
path: _path + ".options",
|
7692
7734
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7693
7735
|
value: input.options
|
@@ -7695,12 +7737,12 @@ class MigrateApplication {
|
|
7695
7737
|
path: _path + ".trace",
|
7696
7738
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7697
7739
|
value: input.trace
|
7698
|
-
})) &&
|
7740
|
+
})) && _vo183(input.trace, _path + ".trace", _exceptionable) || _report(_exceptionable, {
|
7699
7741
|
path: _path + ".trace",
|
7700
7742
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
7701
7743
|
value: input.trace
|
7702
7744
|
}) ].every((flag => flag));
|
7703
|
-
const
|
7745
|
+
const _vo177 = (input, _path, _exceptionable = true) => [ undefined === input.name || "string" === typeof input.name || _report(_exceptionable, {
|
7704
7746
|
path: _path + ".name",
|
7705
7747
|
expected: "(string | undefined)",
|
7706
7748
|
value: input.name
|
@@ -7710,11 +7752,11 @@ class MigrateApplication {
|
|
7710
7752
|
value: input["in"]
|
7711
7753
|
}), ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || _report(_exceptionable, {
|
7712
7754
|
path: _path + ".schema",
|
7713
|
-
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)",
|
7755
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7714
7756
|
value: input.schema
|
7715
7757
|
})) && _vu7(input.schema, _path + ".schema", _exceptionable) || _report(_exceptionable, {
|
7716
7758
|
path: _path + ".schema",
|
7717
|
-
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)",
|
7759
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
7718
7760
|
value: input.schema
|
7719
7761
|
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
7720
7762
|
path: _path + ".required",
|
@@ -7728,12 +7770,12 @@ class MigrateApplication {
|
|
7728
7770
|
path: _path + ".examples",
|
7729
7771
|
expected: "(Record<string, IExample | IReference<`#/components/examples/${string}`>>.o1 | undefined)",
|
7730
7772
|
value: input.examples
|
7731
|
-
})) &&
|
7773
|
+
})) && _vo178(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7732
7774
|
path: _path + ".examples",
|
7733
7775
|
expected: "(Record<string, IExample | IReference<`#/components/examples/${string}`>>.o1 | undefined)",
|
7734
7776
|
value: input.examples
|
7735
7777
|
}) ].every((flag => flag));
|
7736
|
-
const
|
7778
|
+
const _vo178 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
7737
7779
|
const value = input[key];
|
7738
7780
|
if (undefined === value) return true;
|
7739
7781
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
@@ -7746,7 +7788,7 @@ class MigrateApplication {
|
|
7746
7788
|
value
|
7747
7789
|
});
|
7748
7790
|
})).every((flag => flag)) ].every((flag => flag));
|
7749
|
-
const
|
7791
|
+
const _vo179 = (input, _path, _exceptionable = true) => [ undefined === input.summary || "string" === typeof input.summary || _report(_exceptionable, {
|
7750
7792
|
path: _path + ".summary",
|
7751
7793
|
expected: "(string | undefined)",
|
7752
7794
|
value: input.summary
|
@@ -7759,7 +7801,7 @@ class MigrateApplication {
|
|
7759
7801
|
expected: "(string | undefined)",
|
7760
7802
|
value: input.externalValue
|
7761
7803
|
}) ].every((flag => flag));
|
7762
|
-
const
|
7804
|
+
const _vo180 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref && RegExp(/^#\/components\/examples\/(.*)/).test(input.$ref) || _report(_exceptionable, {
|
7763
7805
|
path: _path + ".$ref",
|
7764
7806
|
expected: "`#/components/examples/${string}`",
|
7765
7807
|
value: input.$ref
|
@@ -7784,7 +7826,7 @@ class MigrateApplication {
|
|
7784
7826
|
expected: "(Record<string, any> | undefined)",
|
7785
7827
|
value: input.examples
|
7786
7828
|
}) ].every((flag => flag));
|
7787
|
-
const
|
7829
|
+
const _vo181 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) || _report(_exceptionable, {
|
7788
7830
|
path: _path + ".$ref",
|
7789
7831
|
expected: "`#/components/headers/${string}`",
|
7790
7832
|
value: input.$ref
|
@@ -7809,7 +7851,7 @@ class MigrateApplication {
|
|
7809
7851
|
expected: "(Record<string, any> | undefined)",
|
7810
7852
|
value: input.examples
|
7811
7853
|
}) ].every((flag => flag));
|
7812
|
-
const
|
7854
|
+
const _vo182 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) || _report(_exceptionable, {
|
7813
7855
|
path: _path + ".$ref",
|
7814
7856
|
expected: "`#/components/parameters/${string}`",
|
7815
7857
|
value: input.$ref
|
@@ -7834,7 +7876,7 @@ class MigrateApplication {
|
|
7834
7876
|
expected: "(Record<string, any> | undefined)",
|
7835
7877
|
value: input.examples
|
7836
7878
|
}) ].every((flag => flag));
|
7837
|
-
const
|
7879
|
+
const _vo183 = (input, _path, _exceptionable = true) => [ undefined === input.operationId || "string" === typeof input.operationId || _report(_exceptionable, {
|
7838
7880
|
path: _path + ".operationId",
|
7839
7881
|
expected: "(string | undefined)",
|
7840
7882
|
value: input.operationId
|
@@ -7866,7 +7908,7 @@ class MigrateApplication {
|
|
7866
7908
|
path: _path + ".responses",
|
7867
7909
|
expected: "(Record<string, IResponse | IReference<`#/components/responses/${string}`>>.o1 | undefined)",
|
7868
7910
|
value: input.responses
|
7869
|
-
})) &&
|
7911
|
+
})) && _vo188(input.responses, _path + ".responses", _exceptionable) || _report(_exceptionable, {
|
7870
7912
|
path: _path + ".responses",
|
7871
7913
|
expected: "(Record<string, IResponse | IReference<`#/components/responses/${string}`>>.o1 | undefined)",
|
7872
7914
|
value: input.responses
|
@@ -7927,7 +7969,7 @@ class MigrateApplication {
|
|
7927
7969
|
expected: "(boolean | undefined)",
|
7928
7970
|
value: input.deprecated
|
7929
7971
|
}) ].every((flag => flag));
|
7930
|
-
const
|
7972
|
+
const _vo184 = (input, _path, _exceptionable = true) => [ undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
7931
7973
|
path: _path + ".description",
|
7932
7974
|
expected: "(string | undefined)",
|
7933
7975
|
value: input.description
|
@@ -7939,42 +7981,42 @@ class MigrateApplication {
|
|
7939
7981
|
path: _path + ".content",
|
7940
7982
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
7941
7983
|
value: input.content
|
7942
|
-
})) &&
|
7984
|
+
})) && _vo185(input.content, _path + ".content", _exceptionable) || _report(_exceptionable, {
|
7943
7985
|
path: _path + ".content",
|
7944
7986
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
7945
7987
|
value: input.content
|
7946
7988
|
}) ].every((flag => flag));
|
7947
|
-
const
|
7989
|
+
const _vo185 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
7948
7990
|
const value = input[key];
|
7949
7991
|
if (undefined === value) return true;
|
7950
7992
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
7951
7993
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
7952
7994
|
expected: "OpenApiV3_1.IOperation.IMediaType",
|
7953
7995
|
value
|
7954
|
-
})) &&
|
7996
|
+
})) && _vo186(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
7955
7997
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
7956
7998
|
expected: "OpenApiV3_1.IOperation.IMediaType",
|
7957
7999
|
value
|
7958
8000
|
});
|
7959
8001
|
})).every((flag => flag)) ].every((flag => flag));
|
7960
|
-
const
|
8002
|
+
const _vo186 = (input, _path, _exceptionable = true) => [ undefined === input.schema || ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || _report(_exceptionable, {
|
7961
8003
|
path: _path + ".schema",
|
7962
|
-
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
8004
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
7963
8005
|
value: input.schema
|
7964
8006
|
})) && _vu7(input.schema, _path + ".schema", _exceptionable) || _report(_exceptionable, {
|
7965
8007
|
path: _path + ".schema",
|
7966
|
-
expected: "(OpenApiV3_1.IJsonSchema.IAllOf | OpenApiV3_1.IJsonSchema.IAnyOf | OpenApiV3_1.IJsonSchema.IArray | OpenApiV3_1.IJsonSchema.IBoolean | OpenApiV3_1.IJsonSchema.IConstant | OpenApiV3_1.IJsonSchema.IInteger | OpenApiV3_1.IJsonSchema.IMixed | OpenApiV3_1.IJsonSchema.INull | OpenApiV3_1.IJsonSchema.INumber | OpenApiV3_1.IJsonSchema.IObject | OpenApiV3_1.IJsonSchema.IOneOf | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
8008
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown | undefined)",
|
7967
8009
|
value: input.schema
|
7968
8010
|
}), true, undefined === input.examples || ("object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) || _report(_exceptionable, {
|
7969
8011
|
path: _path + ".examples",
|
7970
8012
|
expected: "(Record<string, IExample | IReference<`#/components/examples/${string}`>>.o1 | undefined)",
|
7971
8013
|
value: input.examples
|
7972
|
-
})) &&
|
8014
|
+
})) && _vo178(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7973
8015
|
path: _path + ".examples",
|
7974
8016
|
expected: "(Record<string, IExample | IReference<`#/components/examples/${string}`>>.o1 | undefined)",
|
7975
8017
|
value: input.examples
|
7976
8018
|
}) ].every((flag => flag));
|
7977
|
-
const
|
8019
|
+
const _vo187 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) || _report(_exceptionable, {
|
7978
8020
|
path: _path + ".$ref",
|
7979
8021
|
expected: "`#/components/requestBodies/${string}`",
|
7980
8022
|
value: input.$ref
|
@@ -7999,7 +8041,7 @@ class MigrateApplication {
|
|
7999
8041
|
expected: "(Record<string, any> | undefined)",
|
8000
8042
|
value: input.examples
|
8001
8043
|
}) ].every((flag => flag));
|
8002
|
-
const
|
8044
|
+
const _vo188 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
8003
8045
|
const value = input[key];
|
8004
8046
|
if (undefined === value) return true;
|
8005
8047
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
@@ -8012,11 +8054,11 @@ class MigrateApplication {
|
|
8012
8054
|
value
|
8013
8055
|
});
|
8014
8056
|
})).every((flag => flag)) ].every((flag => flag));
|
8015
|
-
const
|
8057
|
+
const _vo189 = (input, _path, _exceptionable = true) => [ undefined === input.content || ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) || _report(_exceptionable, {
|
8016
8058
|
path: _path + ".content",
|
8017
8059
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
8018
8060
|
value: input.content
|
8019
|
-
})) &&
|
8061
|
+
})) && _vo185(input.content, _path + ".content", _exceptionable) || _report(_exceptionable, {
|
8020
8062
|
path: _path + ".content",
|
8021
8063
|
expected: "(Record<string, OpenApiV3_1.IOperation.IMediaType> | undefined)",
|
8022
8064
|
value: input.content
|
@@ -8024,7 +8066,7 @@ class MigrateApplication {
|
|
8024
8066
|
path: _path + ".headers",
|
8025
8067
|
expected: '(Record<string, IReference<`#/components/headers/${string}`> | Omit<IParameter, "in">> | undefined)',
|
8026
8068
|
value: input.headers
|
8027
|
-
})) &&
|
8069
|
+
})) && _vo190(input.headers, _path + ".headers", _exceptionable) || _report(_exceptionable, {
|
8028
8070
|
path: _path + ".headers",
|
8029
8071
|
expected: '(Record<string, IReference<`#/components/headers/${string}`> | Omit<IParameter, "in">> | undefined)',
|
8030
8072
|
value: input.headers
|
@@ -8033,7 +8075,7 @@ class MigrateApplication {
|
|
8033
8075
|
expected: "(string | undefined)",
|
8034
8076
|
value: input.description
|
8035
8077
|
}) ].every((flag => flag));
|
8036
|
-
const
|
8078
|
+
const _vo190 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
8037
8079
|
const value = input[key];
|
8038
8080
|
if (undefined === value) return true;
|
8039
8081
|
return ("object" === typeof value && null !== value || _report(_exceptionable, {
|
@@ -8046,7 +8088,7 @@ class MigrateApplication {
|
|
8046
8088
|
value
|
8047
8089
|
});
|
8048
8090
|
})).every((flag => flag)) ].every((flag => flag));
|
8049
|
-
const
|
8091
|
+
const _vo191 = (input, _path, _exceptionable = true) => [ undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
8050
8092
|
path: _path + ".description",
|
8051
8093
|
expected: "(string | undefined)",
|
8052
8094
|
value: input.description
|
@@ -8054,7 +8096,7 @@ class MigrateApplication {
|
|
8054
8096
|
path: _path + ".examples",
|
8055
8097
|
expected: "(Record<string, IExample | IReference<`#/components/examples/${string}`>>.o1 | undefined)",
|
8056
8098
|
value: input.examples
|
8057
|
-
})) &&
|
8099
|
+
})) && _vo178(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
8058
8100
|
path: _path + ".examples",
|
8059
8101
|
expected: "(Record<string, IExample | IReference<`#/components/examples/${string}`>>.o1 | undefined)",
|
8060
8102
|
value: input.examples
|
@@ -8068,14 +8110,14 @@ class MigrateApplication {
|
|
8068
8110
|
value: input.name
|
8069
8111
|
}), ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) || _report(_exceptionable, {
|
8070
8112
|
path: _path + ".schema",
|
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)",
|
8113
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
8072
8114
|
value: input.schema
|
8073
8115
|
})) && _vu7(input.schema, _path + ".schema", _exceptionable) || _report(_exceptionable, {
|
8074
8116
|
path: _path + ".schema",
|
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)",
|
8117
|
+
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.IRecursiveReference | OpenApiV3_1.IJsonSchema.IReference<string> | OpenApiV3_1.IJsonSchema.IString | OpenApiV3_1.IJsonSchema.IUnknown)",
|
8076
8118
|
value: input.schema
|
8077
8119
|
}) ].every((flag => flag));
|
8078
|
-
const
|
8120
|
+
const _vo192 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) || _report(_exceptionable, {
|
8079
8121
|
path: _path + ".$ref",
|
8080
8122
|
expected: "`#/components/responses/${string}`",
|
8081
8123
|
value: input.$ref
|
@@ -8100,46 +8142,46 @@ class MigrateApplication {
|
|
8100
8142
|
expected: "(Record<string, any> | undefined)",
|
8101
8143
|
value: input.examples
|
8102
8144
|
}) ].every((flag => flag));
|
8103
|
-
const
|
8145
|
+
const _vo193 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
8104
8146
|
const value = input[key];
|
8105
8147
|
if (undefined === value) return true;
|
8106
8148
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
8107
8149
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
8108
8150
|
expected: "OpenApiV3_1.IOperation.IResponse",
|
8109
8151
|
value
|
8110
|
-
})) &&
|
8152
|
+
})) && _vo189(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
8111
8153
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
8112
8154
|
expected: "OpenApiV3_1.IOperation.IResponse",
|
8113
8155
|
value
|
8114
8156
|
});
|
8115
8157
|
})).every((flag => flag)) ].every((flag => flag));
|
8116
|
-
const
|
8158
|
+
const _vo194 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
8117
8159
|
const value = input[key];
|
8118
8160
|
if (undefined === value) return true;
|
8119
8161
|
return ("object" === typeof value && null !== value || _report(_exceptionable, {
|
8120
8162
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
8121
8163
|
expected: "OpenApiV3_1.IOperation.IParameter",
|
8122
8164
|
value
|
8123
|
-
})) &&
|
8165
|
+
})) && _vo177(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
8124
8166
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
8125
8167
|
expected: "OpenApiV3_1.IOperation.IParameter",
|
8126
8168
|
value
|
8127
8169
|
});
|
8128
8170
|
})).every((flag => flag)) ].every((flag => flag));
|
8129
|
-
const
|
8171
|
+
const _vo195 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
8130
8172
|
const value = input[key];
|
8131
8173
|
if (undefined === value) return true;
|
8132
8174
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
8133
8175
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
8134
8176
|
expected: "OpenApiV3_1.IOperation.IRequestBody",
|
8135
8177
|
value
|
8136
|
-
})) &&
|
8178
|
+
})) && _vo184(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
8137
8179
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
8138
8180
|
expected: "OpenApiV3_1.IOperation.IRequestBody",
|
8139
8181
|
value
|
8140
8182
|
});
|
8141
8183
|
})).every((flag => flag)) ].every((flag => flag));
|
8142
|
-
const
|
8184
|
+
const _vo196 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
8143
8185
|
const value = input[key];
|
8144
8186
|
if (undefined === value) return true;
|
8145
8187
|
return ("object" === typeof value && null !== value || _report(_exceptionable, {
|
@@ -8152,7 +8194,7 @@ class MigrateApplication {
|
|
8152
8194
|
value
|
8153
8195
|
});
|
8154
8196
|
})).every((flag => flag)) ].every((flag => flag));
|
8155
|
-
const
|
8197
|
+
const _vo197 = (input, _path, _exceptionable = true) => [ "apiKey" === input.type || _report(_exceptionable, {
|
8156
8198
|
path: _path + ".type",
|
8157
8199
|
expected: '"apiKey"',
|
8158
8200
|
value: input.type
|
@@ -8169,7 +8211,7 @@ class MigrateApplication {
|
|
8169
8211
|
expected: "(string | undefined)",
|
8170
8212
|
value: input.description
|
8171
8213
|
}) ].every((flag => flag));
|
8172
|
-
const
|
8214
|
+
const _vo198 = (input, _path, _exceptionable = true) => [ "http" === input.type || _report(_exceptionable, {
|
8173
8215
|
path: _path + ".type",
|
8174
8216
|
expected: '"http"',
|
8175
8217
|
value: input.type
|
@@ -8182,7 +8224,7 @@ class MigrateApplication {
|
|
8182
8224
|
expected: "(string | undefined)",
|
8183
8225
|
value: input.description
|
8184
8226
|
}) ].every((flag => flag));
|
8185
|
-
const
|
8227
|
+
const _vo199 = (input, _path, _exceptionable = true) => [ "http" === input.type || _report(_exceptionable, {
|
8186
8228
|
path: _path + ".type",
|
8187
8229
|
expected: '"http"',
|
8188
8230
|
value: input.type
|
@@ -8199,7 +8241,7 @@ class MigrateApplication {
|
|
8199
8241
|
expected: "(string | undefined)",
|
8200
8242
|
value: input.description
|
8201
8243
|
}) ].every((flag => flag));
|
8202
|
-
const
|
8244
|
+
const _vo200 = (input, _path, _exceptionable = true) => [ "oauth2" === input.type || _report(_exceptionable, {
|
8203
8245
|
path: _path + ".type",
|
8204
8246
|
expected: '"oauth2"',
|
8205
8247
|
value: input.type
|
@@ -8207,7 +8249,7 @@ class MigrateApplication {
|
|
8207
8249
|
path: _path + ".flows",
|
8208
8250
|
expected: "OpenApiV3_1.ISecurityScheme.IOAuth2.IFlowSet",
|
8209
8251
|
value: input.flows
|
8210
|
-
})) &&
|
8252
|
+
})) && _vo201(input.flows, _path + ".flows", _exceptionable) || _report(_exceptionable, {
|
8211
8253
|
path: _path + ".flows",
|
8212
8254
|
expected: "OpenApiV3_1.ISecurityScheme.IOAuth2.IFlowSet",
|
8213
8255
|
value: input.flows
|
@@ -8216,11 +8258,11 @@ class MigrateApplication {
|
|
8216
8258
|
expected: "(string | undefined)",
|
8217
8259
|
value: input.description
|
8218
8260
|
}) ].every((flag => flag));
|
8219
|
-
const
|
8261
|
+
const _vo201 = (input, _path, _exceptionable = true) => [ undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) || _report(_exceptionable, {
|
8220
8262
|
path: _path + ".authorizationCode",
|
8221
8263
|
expected: "(OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
8222
8264
|
value: input.authorizationCode
|
8223
|
-
})) &&
|
8265
|
+
})) && _vo202(input.authorizationCode, _path + ".authorizationCode", _exceptionable) || _report(_exceptionable, {
|
8224
8266
|
path: _path + ".authorizationCode",
|
8225
8267
|
expected: "(OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow | undefined)",
|
8226
8268
|
value: input.authorizationCode
|
@@ -8228,7 +8270,7 @@ class MigrateApplication {
|
|
8228
8270
|
path: _path + ".implicit",
|
8229
8271
|
expected: '(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, "tokenUrl"> | undefined)',
|
8230
8272
|
value: input.implicit
|
8231
|
-
})) &&
|
8273
|
+
})) && _vo203(input.implicit, _path + ".implicit", _exceptionable) || _report(_exceptionable, {
|
8232
8274
|
path: _path + ".implicit",
|
8233
8275
|
expected: '(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, "tokenUrl"> | undefined)',
|
8234
8276
|
value: input.implicit
|
@@ -8236,7 +8278,7 @@ class MigrateApplication {
|
|
8236
8278
|
path: _path + ".password",
|
8237
8279
|
expected: '(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, "authorizationUrl"> | undefined)',
|
8238
8280
|
value: input.password
|
8239
|
-
})) &&
|
8281
|
+
})) && _vo204(input.password, _path + ".password", _exceptionable) || _report(_exceptionable, {
|
8240
8282
|
path: _path + ".password",
|
8241
8283
|
expected: '(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, "authorizationUrl"> | undefined)',
|
8242
8284
|
value: input.password
|
@@ -8244,12 +8286,12 @@ class MigrateApplication {
|
|
8244
8286
|
path: _path + ".clientCredentials",
|
8245
8287
|
expected: '(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, "authorizationUrl"> | undefined)',
|
8246
8288
|
value: input.clientCredentials
|
8247
|
-
})) &&
|
8289
|
+
})) && _vo204(input.clientCredentials, _path + ".clientCredentials", _exceptionable) || _report(_exceptionable, {
|
8248
8290
|
path: _path + ".clientCredentials",
|
8249
8291
|
expected: '(Omit<OpenApiV3_1.ISecurityScheme.IOAuth2.IFlow, "authorizationUrl"> | undefined)',
|
8250
8292
|
value: input.clientCredentials
|
8251
8293
|
}) ].every((flag => flag));
|
8252
|
-
const
|
8294
|
+
const _vo202 = (input, _path, _exceptionable = true) => [ undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || _report(_exceptionable, {
|
8253
8295
|
path: _path + ".authorizationUrl",
|
8254
8296
|
expected: "(string | undefined)",
|
8255
8297
|
value: input.authorizationUrl
|
@@ -8270,7 +8312,7 @@ class MigrateApplication {
|
|
8270
8312
|
expected: "(Record<string, string> | undefined)",
|
8271
8313
|
value: input.scopes
|
8272
8314
|
}) ].every((flag => flag));
|
8273
|
-
const
|
8315
|
+
const _vo203 = (input, _path, _exceptionable = true) => [ undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || _report(_exceptionable, {
|
8274
8316
|
path: _path + ".authorizationUrl",
|
8275
8317
|
expected: "(string | undefined)",
|
8276
8318
|
value: input.authorizationUrl
|
@@ -8287,7 +8329,7 @@ class MigrateApplication {
|
|
8287
8329
|
expected: "(Record<string, string> | undefined)",
|
8288
8330
|
value: input.scopes
|
8289
8331
|
}) ].every((flag => flag));
|
8290
|
-
const
|
8332
|
+
const _vo204 = (input, _path, _exceptionable = true) => [ undefined === input.tokenUrl || "string" === typeof input.tokenUrl || _report(_exceptionable, {
|
8291
8333
|
path: _path + ".tokenUrl",
|
8292
8334
|
expected: "(string | undefined)",
|
8293
8335
|
value: input.tokenUrl
|
@@ -8304,7 +8346,7 @@ class MigrateApplication {
|
|
8304
8346
|
expected: "(Record<string, string> | undefined)",
|
8305
8347
|
value: input.scopes
|
8306
8348
|
}) ].every((flag => flag));
|
8307
|
-
const
|
8349
|
+
const _vo205 = (input, _path, _exceptionable = true) => [ "openIdConnect" === input.type || _report(_exceptionable, {
|
8308
8350
|
path: _path + ".type",
|
8309
8351
|
expected: '"openIdConnect"',
|
8310
8352
|
value: input.type
|
@@ -8317,33 +8359,33 @@ class MigrateApplication {
|
|
8317
8359
|
expected: "(string | undefined)",
|
8318
8360
|
value: input.description
|
8319
8361
|
}) ].every((flag => flag));
|
8320
|
-
const
|
8362
|
+
const _vo206 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
8321
8363
|
const value = input[key];
|
8322
8364
|
if (undefined === value) return true;
|
8323
8365
|
return ("object" === typeof value && null !== value || _report(_exceptionable, {
|
8324
8366
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
8325
8367
|
expected: 'Omit<OpenApiV3_1.IOperation.IParameter, "in">',
|
8326
8368
|
value
|
8327
|
-
})) &&
|
8369
|
+
})) && _vo191(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
8328
8370
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
8329
8371
|
expected: 'Omit<OpenApiV3_1.IOperation.IParameter, "in">',
|
8330
8372
|
value
|
8331
8373
|
});
|
8332
8374
|
})).every((flag => flag)) ].every((flag => flag));
|
8333
|
-
const
|
8375
|
+
const _vo207 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
8334
8376
|
const value = input[key];
|
8335
8377
|
if (undefined === value) return true;
|
8336
8378
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
8337
8379
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
8338
8380
|
expected: "OpenApiV3_1.IExample",
|
8339
8381
|
value
|
8340
|
-
})) &&
|
8382
|
+
})) && _vo179(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), _exceptionable) || _report(_exceptionable, {
|
8341
8383
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
8342
8384
|
expected: "OpenApiV3_1.IExample",
|
8343
8385
|
value
|
8344
8386
|
});
|
8345
8387
|
})).every((flag => flag)) ].every((flag => flag));
|
8346
|
-
const
|
8388
|
+
const _vo208 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
8347
8389
|
const value = input[key];
|
8348
8390
|
if (undefined === value) return true;
|
8349
8391
|
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
@@ -8356,7 +8398,7 @@ class MigrateApplication {
|
|
8356
8398
|
value
|
8357
8399
|
});
|
8358
8400
|
})).every((flag => flag)) ].every((flag => flag));
|
8359
|
-
const
|
8401
|
+
const _vo209 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref && RegExp(/^#\/components\/pathItems\/(.*)/).test(input.$ref) || _report(_exceptionable, {
|
8360
8402
|
path: _path + ".$ref",
|
8361
8403
|
expected: "`#/components/pathItems/${string}`",
|
8362
8404
|
value: input.$ref
|
@@ -8381,7 +8423,7 @@ class MigrateApplication {
|
|
8381
8423
|
expected: "(Record<string, any> | undefined)",
|
8382
8424
|
value: input.examples
|
8383
8425
|
}) ].every((flag => flag));
|
8384
|
-
const
|
8426
|
+
const _vo210 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name || _report(_exceptionable, {
|
8385
8427
|
path: _path + ".name",
|
8386
8428
|
expected: "string",
|
8387
8429
|
value: input.name
|
@@ -8397,16 +8439,16 @@ class MigrateApplication {
|
|
8397
8439
|
if (undefined !== input["const"]) return _vo9(input, _path, _exceptionable); else if ("boolean" === input.type) return _vo11(input, _path, _exceptionable); else if ("number" === input.type) return _vo13(input, _path, _exceptionable); else if ("integer" === input.type) return _vo12(input, _path, _exceptionable); else if ("string" === input.type) return _vo14(input, _path, _exceptionable); else if (undefined !== input.items) return _vo15(input, _path, _exceptionable); else if (undefined !== input.prefixItems) return _vo16(input, _path, _exceptionable); else if ("object" === input.type) return _vo17(input, _path, _exceptionable); else if (undefined !== input.$ref) return _vo18(input, _path, _exceptionable); else if ("null" === input.type) return _vo20(input, _path, _exceptionable); else return _vo21(input, _path, _exceptionable);
|
8398
8440
|
})();
|
8399
8441
|
const _vu2 = (input, _path, _exceptionable = true) => (() => {
|
8400
|
-
if ("boolean" === input.type) return _vo53(input, _path, _exceptionable); else if ("number" === input.type) return _vo55(input, _path, _exceptionable); else if ("integer" === input.type) return _vo54(input, _path, _exceptionable); else if ("string" === input.type) return _vo56(input, _path, _exceptionable); else if ("array" === input.type) return _vo57(input, _path, _exceptionable); else if ("object" === input.type) return _vo58(input, _path, _exceptionable); else if (undefined !== input.$ref) return _vo59(input, _path, _exceptionable); else if (
|
8442
|
+
if ("boolean" === input.type) return _vo53(input, _path, _exceptionable); else if ("number" === input.type) return _vo55(input, _path, _exceptionable); else if ("integer" === input.type) return _vo54(input, _path, _exceptionable); else if ("string" === input.type) return _vo56(input, _path, _exceptionable); else if ("array" === input.type) return _vo57(input, _path, _exceptionable); else if ("object" === input.type) return _vo58(input, _path, _exceptionable); else if (undefined !== input.$ref) return _vo59(input, _path, _exceptionable); else if (undefined !== input["x-anyOf"]) return _vo60(input, _path, _exceptionable); else if (undefined !== input["x-oneOf"]) return _vo61(input, _path, _exceptionable); else if ("null" === input.type) return _vo62(input, _path, _exceptionable); else return _vo63(input, _path, _exceptionable);
|
8401
8443
|
})();
|
8402
8444
|
const _vu3 = (input, _path, _exceptionable = true) => (() => {
|
8403
|
-
if ("boolean" === input.type) return _vo65(input, _path, _exceptionable); else if ("number" === input.type) return _vo67(input, _path, _exceptionable); else if ("integer" === input.type) return _vo66(input, _path, _exceptionable); else if ("string" === input.type) return _vo68(input, _path, _exceptionable); else if ("array" === input.type) return _vo69(input, _path, _exceptionable); else if ("object" === input.type) return _vo70(input, _path, _exceptionable); else if (
|
8445
|
+
if ("boolean" === input.type) return _vo65(input, _path, _exceptionable); else if ("number" === input.type) return _vo67(input, _path, _exceptionable); else if ("integer" === input.type) return _vo66(input, _path, _exceptionable); else if ("string" === input.type) return _vo68(input, _path, _exceptionable); else if ("array" === input.type) return _vo69(input, _path, _exceptionable); else if ("object" === input.type) return _vo70(input, _path, _exceptionable); else if (undefined !== input["x-anyOf"]) return _vo72(input, _path, _exceptionable); else if (undefined !== input["x-oneOf"]) return _vo73(input, _path, _exceptionable); else if ("null" === input.type) return _vo74(input, _path, _exceptionable); else if (undefined !== input.schema) return _vo76(input, _path, _exceptionable); else return _vo71(input, _path, false) || _vo75(input, _path, false) || _vo88(input, _path, false);
|
8404
8446
|
})();
|
8405
8447
|
const _vu4 = (input, _path, _exceptionable = true) => (() => {
|
8406
|
-
if ("boolean" === input.type) return _vo65(input, _path, _exceptionable); else if ("number" === input.type) return _vo67(input, _path, _exceptionable); else if ("integer" === input.type) return _vo66(input, _path, _exceptionable); else if ("string" === input.type) return _vo68(input, _path, _exceptionable); else if ("array" === input.type) return _vo69(input, _path, _exceptionable); else if ("object" === input.type) return _vo70(input, _path, _exceptionable); else if (
|
8448
|
+
if ("boolean" === input.type) return _vo65(input, _path, _exceptionable); else if ("number" === input.type) return _vo67(input, _path, _exceptionable); else if ("integer" === input.type) return _vo66(input, _path, _exceptionable); else if ("string" === input.type) return _vo68(input, _path, _exceptionable); else if ("array" === input.type) return _vo69(input, _path, _exceptionable); else if ("object" === input.type) return _vo70(input, _path, _exceptionable); else if (undefined !== input["x-anyOf"]) return _vo72(input, _path, _exceptionable); else if (undefined !== input["x-oneOf"]) return _vo73(input, _path, _exceptionable); else if ("null" === input.type) return _vo74(input, _path, _exceptionable); else if (undefined !== input.schema) return _vo76(input, _path, _exceptionable); else return _vo71(input, _path, false) || _vo75(input, _path, false) || _vo90(input, _path, false);
|
8407
8449
|
})();
|
8408
8450
|
const _vu5 = (input, _path, _exceptionable = true) => (() => {
|
8409
|
-
if ("boolean" === input.type) return _vo103(input, _path, _exceptionable); else if ("number" === input.type) return _vo105(input, _path, _exceptionable); else if ("integer" === input.type) return _vo104(input, _path, _exceptionable); else if ("string" === input.type) return _vo106(input, _path, _exceptionable); else if ("array" === input.type) return _vo107(input, _path, _exceptionable); else if ("object" === input.type) return _vo108(input, _path, _exceptionable); else if (undefined !== input.$ref) return _vo109(input, _path, _exceptionable); else if (
|
8451
|
+
if ("boolean" === input.type) return _vo103(input, _path, _exceptionable); else if ("number" === input.type) return _vo105(input, _path, _exceptionable); else if ("integer" === input.type) return _vo104(input, _path, _exceptionable); else if ("string" === input.type) return _vo106(input, _path, _exceptionable); else if ("array" === input.type) return _vo107(input, _path, _exceptionable); else if ("object" === input.type) return _vo108(input, _path, _exceptionable); else if (undefined !== input.$ref) return _vo109(input, _path, _exceptionable); else if (undefined !== input.allOf) return _vo110(input, _path, _exceptionable); else if (undefined !== input.anyOf) return _vo111(input, _path, _exceptionable); else if (undefined !== input.oneOf) return _vo112(input, _path, _exceptionable); else if ("null" === input.type) return _vo114(input, _path, _exceptionable); else return _vo115(input, _path, _exceptionable);
|
8410
8452
|
})();
|
8411
8453
|
const _vu6 = (input, _path, _exceptionable = true) => (() => {
|
8412
8454
|
if (undefined !== input["in"]) return _vo127(input, _path, _exceptionable); else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref)) return _vo144(input, _path, _exceptionable); else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref)) return _vo125(input, _path, _exceptionable); else return _report(_exceptionable, {
|
@@ -8416,12 +8458,12 @@ class MigrateApplication {
|
|
8416
8458
|
});
|
8417
8459
|
})();
|
8418
8460
|
const _vu7 = (input, _path, _exceptionable = true) => (() => {
|
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
|
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
|
8461
|
+
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 (undefined !== input.$recursiveRef) return _vo168(input, _path, _exceptionable); else if ("null" === input.type) return _vo173(input, _path, _exceptionable); else return (() => {
|
8462
|
+
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 _vo169(input, _path, _exceptionable); else if (undefined !== input.anyOf) return _vo170(input, _path, _exceptionable); else if (undefined !== input.oneOf) return _vo171(input, _path, _exceptionable); else return _vo174(input, _path, _exceptionable);
|
8421
8463
|
})();
|
8422
8464
|
})();
|
8423
8465
|
const _vu8 = (input, _path, _exceptionable = true) => (() => {
|
8424
|
-
if (undefined !== input["in"]) return
|
8466
|
+
if (undefined !== input["in"]) return _vo177(input, _path, _exceptionable); else if ("string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref)) return _vo182(input, _path, _exceptionable); else if ("string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref)) return _vo181(input, _path, _exceptionable); else return _report(_exceptionable, {
|
8425
8467
|
path: _path,
|
8426
8468
|
expected: "(OpenApiV3_1.IOperation.IParameter | OpenApiV3_1.IJsonSchema.IReference<`#/components/parameters/${string}`> | OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`>)",
|
8427
8469
|
value: input
|
@@ -8435,7 +8477,7 @@ class MigrateApplication {
|
|
8435
8477
|
});
|
8436
8478
|
})();
|
8437
8479
|
const _vu10 = (input, _path, _exceptionable = true) => (() => {
|
8438
|
-
if ("boolean" === input.type) return _vo65(input, _path, _exceptionable); else if ("number" === input.type) return _vo67(input, _path, _exceptionable); else if ("integer" === input.type) return _vo66(input, _path, _exceptionable); else if ("string" === input.type) return _vo68(input, _path, _exceptionable); else if ("array" === input.type) return _vo69(input, _path, _exceptionable); else if ("object" === input.type) return _vo70(input, _path, _exceptionable); else if (undefined !== input.$ref) return _vo71(input, _path, _exceptionable); else if (
|
8480
|
+
if ("boolean" === input.type) return _vo65(input, _path, _exceptionable); else if ("number" === input.type) return _vo67(input, _path, _exceptionable); else if ("integer" === input.type) return _vo66(input, _path, _exceptionable); else if ("string" === input.type) return _vo68(input, _path, _exceptionable); else if ("array" === input.type) return _vo69(input, _path, _exceptionable); else if ("object" === input.type) return _vo70(input, _path, _exceptionable); else if (undefined !== input.$ref) return _vo71(input, _path, _exceptionable); else if (undefined !== input["x-anyOf"]) return _vo72(input, _path, _exceptionable); else if (undefined !== input["x-oneOf"]) return _vo73(input, _path, _exceptionable); else if ("null" === input.type) return _vo74(input, _path, _exceptionable); else if (undefined !== input.schema) return _vo76(input, _path, _exceptionable); else return _vo75(input, _path, _exceptionable);
|
8439
8481
|
})();
|
8440
8482
|
const _vu11 = (input, _path, _exceptionable = true) => (() => {
|
8441
8483
|
if ("apiKey" === input.type) return _vo80(input, _path, _exceptionable); else if ("basic" === input.type) return _vo81(input, _path, _exceptionable); else if ("implicit" === input.flow) return _vo82(input, _path, _exceptionable); else if ("accessCode" === input.flow) return _vo83(input, _path, _exceptionable); else if ("application" === input.flow) return _vo85(input, _path, _exceptionable); else if ("password" === input.flow) return _vo84(input, _path, _exceptionable); else return _report(_exceptionable, {
|
@@ -8471,30 +8513,30 @@ class MigrateApplication {
|
|
8471
8513
|
if (undefined !== input.$ref) return _vo148(input, _path, _exceptionable); else return _vo117(input, _path, _exceptionable);
|
8472
8514
|
})();
|
8473
8515
|
const _vu18 = (input, _path, _exceptionable = true) => (() => {
|
8474
|
-
if (undefined !== input.$ref) return
|
8516
|
+
if (undefined !== input.$ref) return _vo180(input, _path, _exceptionable); else return _vo179(input, _path, _exceptionable);
|
8475
8517
|
})();
|
8476
8518
|
const _vu19 = (input, _path, _exceptionable = true) => (() => {
|
8477
|
-
if (undefined !== input.$ref) return
|
8519
|
+
if (undefined !== input.$ref) return _vo187(input, _path, _exceptionable); else return _vo184(input, _path, _exceptionable);
|
8478
8520
|
})();
|
8479
8521
|
const _vu20 = (input, _path, _exceptionable = true) => (() => {
|
8480
|
-
if (undefined !== input.$ref) return
|
8522
|
+
if (undefined !== input.$ref) return _vo192(input, _path, _exceptionable); else return _vo189(input, _path, _exceptionable);
|
8481
8523
|
})();
|
8482
8524
|
const _vu21 = (input, _path, _exceptionable = true) => (() => {
|
8483
|
-
if (undefined !== input.$ref) return
|
8525
|
+
if (undefined !== input.$ref) return _vo181(input, _path, _exceptionable); else if (undefined !== input.schema) return _vo191(input, _path, _exceptionable); else return _report(_exceptionable, {
|
8484
8526
|
path: _path,
|
8485
8527
|
expected: '(OpenApiV3_1.IJsonSchema.IReference<`#/components/headers/${string}`> | Omit<OpenApiV3_1.IOperation.IParameter, "in">)',
|
8486
8528
|
value: input
|
8487
8529
|
});
|
8488
8530
|
})();
|
8489
8531
|
const _vu22 = (input, _path, _exceptionable = true) => (() => {
|
8490
|
-
if ("apiKey" === input.type) return
|
8532
|
+
if ("apiKey" === input.type) return _vo197(input, _path, _exceptionable); else if ("basic" === input.scheme) return _vo198(input, _path, _exceptionable); else if ("bearer" === input.scheme) return _vo199(input, _path, _exceptionable); else if ("oauth2" === input.type) return _vo200(input, _path, _exceptionable); else if ("openIdConnect" === input.type) return _vo205(input, _path, _exceptionable); else return _report(_exceptionable, {
|
8491
8533
|
path: _path,
|
8492
8534
|
expected: "(OpenApiV3_1.ISecurityScheme.IApiKey | OpenApiV3_1.ISecurityScheme.IHttpBasic | OpenApiV3_1.ISecurityScheme.IHttpBearer | OpenApiV3_1.ISecurityScheme.IOAuth2 | OpenApiV3_1.ISecurityScheme.IOpenId)",
|
8493
8535
|
value: input
|
8494
8536
|
});
|
8495
8537
|
})();
|
8496
8538
|
const _vu23 = (input, _path, _exceptionable = true) => (() => {
|
8497
|
-
if (undefined !== input.$ref) return
|
8539
|
+
if (undefined !== input.$ref) return _vo209(input, _path, _exceptionable); else return _vo176(input, _path, _exceptionable);
|
8498
8540
|
})();
|
8499
8541
|
const _vu24 = (input, _path, _exceptionable = true) => (() => {
|
8500
8542
|
if (undefined !== input["x-samchon-emended"]) return _vo0(input, _path, _exceptionable); else if (undefined !== input.swagger) return _vo48(input, _path, _exceptionable); else if (null !== input.openapi && undefined !== input.openapi && ("3.0" === input.openapi || "string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi))) return _vo94(input, _path, _exceptionable); else if ("string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi)) return _vo150(input, _path, _exceptionable); else return _report(_exceptionable, {
|
@@ -8573,12 +8615,12 @@ class MigrateApplication {
|
|
8573
8615
|
};
|
8574
8616
|
return this.finalize(config, output);
|
8575
8617
|
}
|
8576
|
-
finalize(config,
|
8577
|
-
if (config.package)
|
8618
|
+
finalize(config, output) {
|
8619
|
+
if (config.package) output.files = output.files.map((file => ({
|
8578
8620
|
...file,
|
8579
8621
|
content: file.content.split(`@ORGANIZATION/PROJECT`).join(config.package)
|
8580
8622
|
})));
|
8581
|
-
return
|
8623
|
+
return output;
|
8582
8624
|
}
|
8583
8625
|
}
|
8584
8626
|
|