@nestia/migrate 5.0.0 → 6.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 +92 -92
- package/lib/MigrateApplication.js +564 -412
- package/lib/MigrateApplication.js.map +1 -1
- package/lib/bundles/NEST_TEMPLATE.js +79 -74
- package/lib/bundles/NEST_TEMPLATE.js.map +1 -1
- package/lib/bundles/SDK_TEMPLATE.js +30 -30
- package/lib/bundles/SDK_TEMPLATE.js.map +1 -1
- package/lib/index.mjs +702 -546
- package/lib/index.mjs.map +1 -1
- package/lib/utils/openapi-down-convert/converter.js +2 -2
- package/package.json +12 -12
- package/src/MigrateApplication.ts +107 -107
- package/src/analyzers/MigrateApplicationAnalyzer.ts +18 -18
- package/src/analyzers/MigrateControllerAnalyzer.ts +51 -51
- package/src/archivers/MigrateFileArchiver.ts +38 -38
- package/src/bundles/NEST_TEMPLATE.ts +79 -74
- package/src/bundles/SDK_TEMPLATE.ts +30 -30
- package/src/executable/bundle.js +125 -125
- package/src/executable/migrate.ts +7 -7
- package/src/factories/TypeLiteralFactory.ts +57 -57
- package/src/index.ts +4 -4
- package/src/internal/MigrateCommander.ts +86 -86
- package/src/internal/MigrateInquirer.ts +89 -89
- package/src/module.ts +8 -8
- package/src/programmers/MigrateApiFileProgrammer.ts +49 -49
- package/src/programmers/MigrateApiFunctionProgrammer.ts +210 -210
- package/src/programmers/MigrateApiNamespaceProgrammer.ts +417 -417
- package/src/programmers/MigrateApiProgrammer.ts +103 -103
- package/src/programmers/MigrateApiSimulationProgrammer.ts +324 -324
- package/src/programmers/MigrateApiStartProgrammer.ts +194 -194
- package/src/programmers/MigrateDtoProgrammer.ts +87 -87
- package/src/programmers/MigrateE2eFileProgrammer.ts +117 -117
- package/src/programmers/MigrateE2eProgrammer.ts +34 -34
- package/src/programmers/MigrateImportProgrammer.ts +118 -118
- package/src/programmers/MigrateNestControllerProgrammer.ts +50 -50
- package/src/programmers/MigrateNestMethodProgrammer.ts +393 -393
- package/src/programmers/MigrateNestModuleProgrammer.ts +65 -65
- package/src/programmers/MigrateNestProgrammer.ts +81 -81
- package/src/programmers/MigrateSchemaProgrammer.ts +373 -373
- package/src/structures/IHttpMigrateController.ts +8 -8
- package/src/structures/IHttpMigrateDto.ts +8 -8
- package/src/structures/IHttpMigrateFile.ts +5 -5
- package/src/structures/IHttpMigrateProgram.ts +27 -27
- package/src/structures/IHttpMigrateRoute.ts +1 -1
- package/src/structures/IHttpMigrateSchema.ts +4 -4
- package/src/utils/FilePrinter.ts +36 -36
- package/src/utils/MapUtil.ts +13 -13
- package/src/utils/OpenApiTypeChecker.ts +73 -73
- package/src/utils/SetupWizard.ts +12 -12
- package/src/utils/StringUtil.ts +113 -113
- package/src/utils/openapi-down-convert/RefVisitor.ts +139 -139
- package/src/utils/openapi-down-convert/converter.ts +527 -527
package/lib/index.mjs
CHANGED
@@ -39,278 +39,282 @@ var MigrateApplicationAnalyzer;
|
|
39
39
|
|
40
40
|
const NEST_TEMPLATE = [ {
|
41
41
|
location: "",
|
42
|
-
file: ".env",
|
43
|
-
content: "
|
42
|
+
file: ".env.local",
|
43
|
+
content: "API_PORT=37001"
|
44
44
|
}, {
|
45
45
|
location: "",
|
46
46
|
file: ".eslintrc.cjs",
|
47
|
-
content: 'module.exports = {\n root: true,\n plugins: ["@typescript-eslint", "deprecation"],\n extends: ["plugin:@typescript-eslint/recommended"],\n parser: "@typescript-eslint/parser",\n parserOptions: {\n project: ["tsconfig.json", "test/tsconfig.json"],\n },\n overrides: [\n {\n files: ["src/**/*.ts", "test/**/*.ts"],\n rules: {\n "@typescript-eslint/consistent-type-definitions": "off",\n "@typescript-eslint/no-empty-function": "off",\n "@typescript-eslint/no-empty-interface": "off",\n "@typescript-eslint/no-explicit-any": "off",\n "@typescript-eslint/no-inferrable-types": "off",\n "@typescript-eslint/no-namespace": "off",\n "@typescript-eslint/no-non-null-assertion": "off",\n "@typescript-eslint/no-unused-vars": "off",\n "@typescript-eslint/no-var-requires": "off",\n "@typescript-eslint/no-floating-promises": "error",\n "@typescript-eslint/no-require-imports": "off",\n "@typescript-eslint/no-empty-object-type": "off",\n },\n },\n ],\n};\n'
|
47
|
+
content: 'module.exports = {\r\n root: true,\r\n plugins: ["@typescript-eslint", "deprecation"],\r\n extends: ["plugin:@typescript-eslint/recommended"],\r\n parser: "@typescript-eslint/parser",\r\n parserOptions: {\r\n project: ["tsconfig.json", "test/tsconfig.json"],\r\n },\r\n overrides: [\r\n {\r\n files: ["src/**/*.ts", "test/**/*.ts"],\r\n rules: {\r\n "@typescript-eslint/consistent-type-definitions": "off",\r\n "@typescript-eslint/no-empty-function": "off",\r\n "@typescript-eslint/no-empty-interface": "off",\r\n "@typescript-eslint/no-explicit-any": "off",\r\n "@typescript-eslint/no-inferrable-types": "off",\r\n "@typescript-eslint/no-namespace": "off",\r\n "@typescript-eslint/no-non-null-assertion": "off",\r\n "@typescript-eslint/no-unused-vars": "off",\r\n "@typescript-eslint/no-var-requires": "off",\r\n "@typescript-eslint/no-floating-promises": "error",\r\n "@typescript-eslint/no-require-imports": "off",\r\n "@typescript-eslint/no-empty-object-type": "off",\r\n },\r\n },\r\n ],\r\n};\r\n'
|
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 -- --simultaneous 16\n\n - name: EsLint\n run: npm run eslint\n"
|
51
|
+
content: "name: build\r\non:\r\n pull_request:\r\n paths:\r\n - 'src/**'\r\n - 'test/**'\r\n - 'package.json'\r\njobs:\r\n Ubuntu:\r\n runs-on: ubuntu-latest\r\n steps:\r\n - uses: actions/checkout@v4\r\n - uses: actions/setup-node@v4\r\n with:\r\n node-version: 20.x\r\n - uses: pnpm/action-setup@v4\r\n with:\r\n version: 8\r\n \r\n - name: Install Backend-Server\r\n run: pnpm install\r\n\r\n - name: Build Swagger\r\n run: npm run build:swagger\r\n\r\n - name: Build SDK\r\n run: npm run build:sdk\r\n\r\n - name: Compile Backend-Server\r\n run: npm run build\r\n\r\n - name: Run Test Program\r\n run: npm run test -- --simultaneous 16\r\n\r\n - name: EsLint\r\n run: npm run eslint\r\n"
|
52
52
|
}, {
|
53
53
|
location: ".github/workflows",
|
54
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"
|
55
|
+
content: "name: typos\r\non:\r\n pull_request:\r\n\r\njobs:\r\n typos:\r\n runs-on: ubuntu-latest\r\n steps:\r\n - name: Checkout Actions Repository\r\n uses: actions/checkout@v4\r\n\r\n - uses: crate-ci/typos@master\r\n with:\r\n config: ./typos.toml\r\n"
|
56
56
|
}, {
|
57
57
|
location: "",
|
58
58
|
file: ".gitignore",
|
59
|
-
content: ".git/\nbin/\ndist/\nlib/\nnode_modules/\npackages/api/lib/\n\npackage-lock.json\npnpm-lock.yaml"
|
59
|
+
content: ".git/\r\nbin/\r\ndist/\r\nlib/\r\nnode_modules/\r\npackages/api/lib/\r\n\r\n.env\r\npackage-lock.json\r\npnpm-lock.yaml"
|
60
60
|
}, {
|
61
61
|
location: "",
|
62
62
|
file: ".prettierignore",
|
63
|
-
content: "dist\nbin\nnode_modules\npackages\nsrc/api/functional\nsrc/api/utils/NestiaSimulator.ts\nREADME.md\ntsconfig.json"
|
63
|
+
content: "dist\r\nbin\r\nnode_modules\r\npackages\r\nsrc/api/functional\r\nsrc/api/utils/NestiaSimulator.ts\r\nREADME.md\r\ntsconfig.json"
|
64
64
|
}, {
|
65
65
|
location: ".vscode",
|
66
66
|
file: "launch.json",
|
67
|
-
content: '{\n // Use IntelliSense to learn about possible Node.js debug attributes.\n // Hover to view descriptions of existing attributes.\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\n "version": "0.2.0",\n "configurations": [\n {\n "type": "node",\n "request": "launch",\n "name": "Backend Test",\n "program": "${workspaceRoot}/test/index.ts",\n "cwd": "${workspaceRoot}",\n "args": [\n // //----\n // // Not possible to reset DB in debugging mode\n // //\n // // Therefore, if you need DB reset, then do it \n // // through `npm run reset-for-debugging` command\n // //----\n // "--reset", "false",\n // "--mode", "local",\n \n //----\n // You can run specific test functions\n //\n // If you want to include or exclude multiple words,\n // then separate them with space character\n //----\n // "--include", "some-words-to-include",\n // "--exclude", "some-word another-word",\n ],\n "outFiles": ["${workspaceRoot}/bin/**/*.js"],\n }\n]\n}'
|
67
|
+
content: '{\r\n // Use IntelliSense to learn about possible Node.js debug attributes.\r\n // Hover to view descriptions of existing attributes.\r\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\r\n "version": "0.2.0",\r\n "configurations": [\r\n {\r\n "type": "node",\r\n "request": "launch",\r\n "name": "Backend Test",\r\n "program": "${workspaceRoot}/test/index.ts",\r\n "cwd": "${workspaceRoot}",\r\n "args": [\r\n // //----\r\n // // Not possible to reset DB in debugging mode\r\n // //\r\n // // Therefore, if you need DB reset, then do it \r\n // // through `npm run reset-for-debugging` command\r\n // //----\r\n // "--reset", "false",\r\n // "--mode", "local",\r\n \r\n //----\r\n // You can run specific test functions\r\n //\r\n // If you want to include or exclude multiple words,\r\n // then separate them with space character\r\n //----\r\n // "--include", "some-words-to-include",\r\n // "--exclude", "some-word another-word",\r\n ],\r\n "outFiles": ["${workspaceRoot}/bin/**/*.js"],\r\n }\r\n]\r\n}'
|
68
68
|
}, {
|
69
69
|
location: ".vscode",
|
70
70
|
file: "settings.json",
|
71
|
-
content: '{\n "editor.tabSize": 2,\n "editor.formatOnSave": true,\n "[javascript][typescript]": {\n "editor.defaultFormatter": "esbenp.prettier-vscode",\n "editor.codeActionsOnSave": {\n "source.fixAll.eslint": "explicit"\n },\n }\n}'
|
71
|
+
content: '{\r\n "editor.tabSize": 2,\r\n "editor.formatOnSave": true,\r\n "[javascript][typescript]": {\r\n "editor.defaultFormatter": "esbenp.prettier-vscode",\r\n "editor.codeActionsOnSave": {\r\n "source.fixAll.eslint": "explicit"\r\n },\r\n }\r\n}'
|
72
72
|
}, {
|
73
|
-
location: "",
|
74
|
-
file: "
|
75
|
-
content: '
|
76
|
-
}, {
|
77
|
-
location: "",
|
78
|
-
file: "README.md",
|
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)'
|
73
|
+
location: "build",
|
74
|
+
file: "env.ts",
|
75
|
+
content: 'import fs from "fs";\r\n\r\nif (fs.existsSync(`${__dirname}/../.env`) === false)\r\n fs.copyFileSync(`${__dirname}/../.env.local`, `${__dirname}/../.env`);\r\n'
|
80
76
|
}, {
|
81
77
|
location: "docs/benchmarks",
|
82
78
|
file: "AMD Ryzen 9 7940HS w Radeon 780M Graphics.md",
|
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-------|------|-------|----------'
|
79
|
+
content: '# Benchmark Report\r\n> Generated by [`@nestia/benchmark`](https://github.com/samchon/nestia)\r\n\r\n - Specifications\r\n - CPU: AMD Ryzen 9 7940HS w/ Radeon 780M Graphics \r\n - RAM: 31 GB\r\n - NodeJS Version: v20.10.0\r\n - Backend Server: 1 core / 1 thread\r\n - Arguments\r\n - Count: 40,000\r\n - Threads: 4\r\n - Simultaneous: 32\r\n - Time\r\n - Start: 2024-10-29T19:14:35.941Z\r\n - Complete: 2024-10-29T19:16:11.418Z\r\n - Elapsed: 95,477 ms\r\n\r\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\r\n----|----|----|----|----|----|----\r\nTotal | 41,586 | 41,586 | 69.24 | 73.05 | 5 | 546\r\n\r\n> Unit: milliseconds\r\n\r\n## Memory Consumptions\r\n```mermaid\r\nxychart-beta\r\n x-axis "Time (second)"\r\n y-axis "Memory (MB)"\r\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]\r\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]\r\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]\r\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]\r\n```\r\n\r\n> - 🟦 Resident Set Size\r\n> - 🟢 Heap Total\r\n> - 🔴 Heap Used + External\r\n> - 🟡 Heap Used Only\r\n\r\n## Endpoints\r\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\r\n----|----|----|----|----|----|----\r\nPATCH /bbs/articles/:section | 6,439 | 6,439 | 108.37 | 76.56 | 6 | 546\r\nPUT /bbs/articles/:section/:id | 380 | 380 | 78.52 | 69.03 | 6 | 296\r\nGET /bbs/articles/:section/:id | 917 | 917 | 77.65 | 69.84 | 6 | 463\r\nDELETE /bbs/articles/:section/:id | 201 | 201 | 73.89 | 63.55 | 7 | 307\r\nPOST /bbs/articles/:section | 33,649 | 33,649 | 61.39 | 70.04 | 5 | 546\r\n\r\n> Unit: milliseconds\r\n\r\n## Failures\r\nMethod | Path | Count | Failures\r\n-------|------|-------|----------'
|
80
|
+
}, {
|
81
|
+
location: "",
|
82
|
+
file: "LICENSE",
|
83
|
+
content: 'MIT License\r\n\r\nCopyright (c) 2022 Jeongho Nam\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the "Software"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n'
|
84
84
|
}, {
|
85
85
|
location: "",
|
86
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'
|
87
|
+
content: '{\r\n "$schema": "https://json.schemastore.org/nest-cli",\r\n "collection": "@nestjs/schematics",\r\n "sourceRoot": "src",\r\n "entryFile": "executable/server",\r\n "compilerOptions": {\r\n "deleteOutDir": true\r\n }\r\n}\r\n'
|
88
88
|
}, {
|
89
89
|
location: "",
|
90
90
|
file: "nestia.config.ts",
|
91
|
-
content: '// nestia configuration file\nimport type sdk from "@nestia/sdk";\nimport { NestFactory } from "@nestjs/core";\n\nimport { MyModule } from "./src/MyModule";\n\nconst NESTIA_CONFIG: sdk.INestiaConfig = {\n input: () => NestFactory.create(MyModule),\n output: "src/api",\n swagger: {\n output: "packages/api/swagger.json",\n servers: [\n {\n url: "http://localhost:37001",\n description: "Local Server",\n },\n ],\n beautify: true,\n },\n distribute: "packages/api",\n primitive: false,\n simulate: true,\n};\nexport default NESTIA_CONFIG;\n'
|
91
|
+
content: '// nestia configuration file\r\nimport type sdk from "@nestia/sdk";\r\nimport { NestFactory } from "@nestjs/core";\r\n\r\nimport { MyModule } from "./src/MyModule";\r\n\r\nconst NESTIA_CONFIG: sdk.INestiaConfig = {\r\n input: () => NestFactory.create(MyModule),\r\n output: "src/api",\r\n swagger: {\r\n output: "packages/api/swagger.json",\r\n servers: [\r\n {\r\n url: "http://localhost:37001",\r\n description: "Local Server",\r\n },\r\n ],\r\n beautify: true,\r\n },\r\n distribute: "packages/api",\r\n primitive: false,\r\n simulate: true,\r\n};\r\nexport default NESTIA_CONFIG;\r\n'
|
92
92
|
}, {
|
93
93
|
location: "",
|
94
94
|
file: "package.json",
|
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 &&
|
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 && ts-node build/env.ts",\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": "^6.0.0",\n "@nestia/e2e": "^6.0.0",\n "@nestia/sdk": "^6.0.0",\n "@nestjs/cli": "^11.0.6",\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": "^7.0.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.8.3",\n "typescript-transform-paths": "^3.5.5",\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": "^6.0.0",\n "@nestia/fetcher": "^6.0.0",\n "@nestjs/common": "^11.0.13",\n "@nestjs/core": "^11.0.13",\n "@nestjs/platform-express": "^11.0.13",\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.1.0",\n "tstl": "^3.0.0",\n "typia": "^9.0.0",\n "uuid": "^9.0.0"\n },\n "stackblitz": {\n "startCommand": "npm run prepare && npm run build:test && npm run test"\n }\n}'
|
96
96
|
}, {
|
97
97
|
location: "packages/api",
|
98
98
|
file: ".gitignore",
|
99
|
-
content: "lib/\nnode_modules/\n\nswagger.json\nopenai.json"
|
99
|
+
content: "lib/\r\nnode_modules/\r\n\r\nswagger.json\r\nopenai.json"
|
100
100
|
}, {
|
101
101
|
location: "packages/api",
|
102
102
|
file: "LICENSE",
|
103
|
-
content: 'MIT License\n\nCopyright (c) 2021 ORGANIZATION\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.'
|
103
|
+
content: 'MIT License\r\n\r\nCopyright (c) 2021 ORGANIZATION\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the "Software"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.'
|
104
104
|
}, {
|
105
105
|
location: "packages/api",
|
106
|
-
file: "
|
107
|
-
content: "
|
106
|
+
file: "package.json",
|
107
|
+
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": "^6.0.0",\n "tgrid": "^1.1.0",\n "typia": "^9.0.0"\n }\n}'
|
108
108
|
}, {
|
109
109
|
location: "packages/api",
|
110
|
-
file: "
|
111
|
-
content:
|
110
|
+
file: "README.md",
|
111
|
+
content: "# SDK Library\r\nThis is a SDK library generated by [`nestia`](https://nestia.io).\r\n\r\nWith this SDK library, you can easily and safely interact with backend server.\r\n\r\nJust import and call some API functions like gif image below:\r\n\r\n\r\n\r\n> Left is server code, and right is client code utilizing the SDK\r\n\r\n\r\n\r\n\r\n# What [`Nestia`](https://nestia.io) is:\r\n\r\n\r\n[](https://github.com/samchon/nestia/blob/master/LICENSE)\r\n[](https://www.npmjs.com/package/@nestia/core)\r\n[](https://www.npmjs.com/package/@nestia/core)\r\n[](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\r\n[](https://nestia.io/docs/)\r\n\r\nNestia is a set of helper libraries for NestJS, supporting below features:\r\n\r\n - `@nestia/core`: super-fast decorators\r\n - `@nestia/sdk`:\r\n - Swagger generator evolved than ever\r\n - SDK library generator for clients\r\n - Mockup Simulator for client applications\r\n - Automatic E2E test functions generator\r\n - `@nestia/migrate`: migration from Swagger to NestJS\r\n - `nestia`: just CLI (command line interface) tool\r\n\r\n> **Note**\r\n> \r\n> - **Only one line** required, with pure TypeScript type\r\n> - Enhance performance **30x** up\r\n> - Runtime validator is **20,000x faster** than `class-validator`\r\n> - JSON serialization is **200x faster** than `class-transformer`\r\n> - Software Development Kit\r\n> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://trpc.io/)\r\n> - Mockup simulator means embedded backend simulator in SDK\r\n> - similar with [msw](https://mswjs.io/), but fully automated"
|
112
112
|
}, {
|
113
113
|
location: "packages/api",
|
114
114
|
file: "rollup.config.js",
|
115
|
-
content: 'const typescript = require("@rollup/plugin-typescript");\nconst terser = require("@rollup/plugin-terser");\n\nmodule.exports = {\n input: `${__dirname}/../../src/api/index.ts`,\n output: {\n dir: `${__dirname}/lib`,\n format: "esm",\n entryFileNames: "[name].mjs",\n sourcemap: true,\n },\n plugins: [\n typescript({\n tsconfig: `${__dirname}/tsconfig.json`,\n module: "ESNext",\n target: "ESNext",\n }),\n terser({\n format: {\n comments: "some",\n beautify: true,\n ecma: "2020",\n },\n compress: false,\n mangle: false,\n module: true,\n }),\n ],\n};\n'
|
115
|
+
content: 'const typescript = require("@rollup/plugin-typescript");\r\nconst terser = require("@rollup/plugin-terser");\r\n\r\nmodule.exports = {\r\n input: `${__dirname}/../../src/api/index.ts`,\r\n output: {\r\n dir: `${__dirname}/lib`,\r\n format: "esm",\r\n entryFileNames: "[name].mjs",\r\n sourcemap: true,\r\n },\r\n plugins: [\r\n typescript({\r\n tsconfig: `${__dirname}/tsconfig.json`,\r\n module: "ESNext",\r\n target: "ESNext",\r\n }),\r\n terser({\r\n format: {\r\n comments: "some",\r\n beautify: true,\r\n ecma: "2020",\r\n },\r\n compress: false,\r\n mangle: false,\r\n module: true,\r\n }),\r\n ],\r\n};\r\n'
|
116
116
|
}, {
|
117
117
|
location: "packages/api",
|
118
118
|
file: "tsconfig.json",
|
119
|
-
content: '{\n "compilerOptions": {\n /* Visit https://aka.ms/tsconfig to read more about this file */\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 /* Language and Environment */\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\n "lib": [\n "DOM",\n "ES2015"\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "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 /* Modules */\n "module": "commonjs", /* Specify what module code is generated. */// "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": {}, /* 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 /* 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 /* Emit */\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "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. */// "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. */// "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. */// "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. */// "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 /* 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. */// "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. *//* Type Checking */\n "strict": true, /* Enable all strict type-checking options. */// "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 /* 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 {\n "transform": "typia/lib/transform"\n }\n ],\n "strictNullChecks": true\n },\n "include": [\n "../../src/api"\n ]\n}'
|
119
|
+
content: '{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n /* Language and Environment */\r\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n "lib": [\r\n "DOM",\r\n "ES2015"\r\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "jsx": "preserve", /* Specify what JSX code is generated. */\r\n // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */// "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n // "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'<reference>\'s from expanding the number of files TypeScript should add to a project. */\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n /* Emit */\r\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */// "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. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */// "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */// "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. *//* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n // "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n // "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n {\r\n "transform": "typia/lib/transform"\r\n }\r\n ],\r\n "strictNullChecks": true\r\n },\r\n "include": [\r\n "../../src/api"\r\n ]\r\n}'
|
120
120
|
}, {
|
121
121
|
location: "",
|
122
122
|
file: "prettier.config.js",
|
123
|
-
content: 'module.exports = {\n // DEFAULT CONFIGURATIONS\n parser: "typescript",\n printWidth: 80,\n semi: true,\n tabWidth: 2,\n trailingComma: "all",\n\n // PLUG-IN CONFIGURATIONS\n plugins: ["@trivago/prettier-plugin-sort-imports"],\n importOrder: [\n "<THIRD_PARTY_MODULES>",\n "^@ORGANIZATION/PROJECT-api(.*)$",\n "^[./]",\n ],\n importOrderSeparation: true,\n importOrderSortSpecifiers: true,\n importOrderParserPlugins: ["decorators-legacy", "typescript"],\n};\n'
|
124
|
-
}, {
|
125
|
-
location: "src",
|
126
|
-
file: "MyBackend.ts",
|
127
|
-
content: 'import { INestApplication } from "@nestjs/common";\nimport { NestFactory } from "@nestjs/core";\n\nimport { MyConfiguration } from "./MyConfiguration";\nimport { MyModule } from "./MyModule";\n\nexport class MyBackend {\n private application_?: INestApplication;\n\n public async open(): Promise<void> {\n //----\n // OPEN THE BACKEND SERVER\n //----\n // MOUNT CONTROLLERS\n this.application_ = await NestFactory.create(MyModule, { logger: false });\n\n // DO OPEN\n this.application_.enableCors();\n await this.application_.listen(MyConfiguration.API_PORT(), "0.0.0.0");\n\n //----\n // POST-PROCESSES\n //----\n // INFORM TO THE PM2\n if (process.send) process.send("ready");\n\n // WHEN KILL COMMAND COMES\n process.on("SIGINT", async () => {\n await this.close();\n process.exit(0);\n });\n }\n\n public async close(): Promise<void> {\n if (this.application_ === undefined) return;\n\n // DO CLOSE\n await this.application_.close();\n delete this.application_;\n }\n}\n'
|
128
|
-
}, {
|
129
|
-
location: "src",
|
130
|
-
file: "MyConfiguration.ts",
|
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'
|
123
|
+
content: 'module.exports = {\r\n // DEFAULT CONFIGURATIONS\r\n parser: "typescript",\r\n printWidth: 80,\r\n semi: true,\r\n tabWidth: 2,\r\n trailingComma: "all",\r\n\r\n // PLUG-IN CONFIGURATIONS\r\n plugins: ["@trivago/prettier-plugin-sort-imports"],\r\n importOrder: [\r\n "<THIRD_PARTY_MODULES>",\r\n "^@ORGANIZATION/PROJECT-api(.*)$",\r\n "^[./]",\r\n ],\r\n importOrderSeparation: true,\r\n importOrderSortSpecifiers: true,\r\n importOrderParserPlugins: ["decorators-legacy", "typescript"],\r\n};\r\n'
|
132
124
|
}, {
|
133
|
-
location: "
|
134
|
-
file: "
|
135
|
-
content: '
|
125
|
+
location: "",
|
126
|
+
file: "README.md",
|
127
|
+
content: '# Nestia Template\r\n## Outline\r\n[](https://github.com/samchon/nestia-start/actions?query=workflow%3Abuild)\r\n\r\nA template repository for backend projects using [nestia](https://github.com/samchon/nestia).\r\n\r\nYou can create a new project from this boilerplate by running below command:\r\n\r\n```bash\r\nnpx nestia start <directory>\r\n```\r\n\r\nFor reference, this is a minimal boilerplate project concentrating only on [nestia](https://github.com/samchon/nestia) SDK generation. \r\n\r\nIf you wanna much detailed boilerplate project, visit [`@samchon/backend`](https://github.com/samchon/backend).\r\n\r\n\r\n\r\n\r\n## Directories and Files\r\nThis template project has categorized directories like below.\r\n\r\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.\r\n\r\n - [packages/api/](packages/api): SDK module built by `npm run build:api`\r\n - [src/](src): Backend source directory\r\n - [src/api/](src/api/): Client SDK that would be published to the `@ORGANIZATION/PROJECT-api`\r\n - [**src/api/functional/**](src/api/functional/): API functions generated by the [`nestia`](https://github.com/samchon/nestia)\r\n - [**src/api/structures/**](src/api/structures/): DTO structures\r\n - [src/controllers/](src/controllers/): Controller classes of the Main Program\r\n - [**test/**](test): Test Automation Program\r\n - [nestia.config.ts](nestia.config.ts): Configuration file of [`nestia`](https://github.com/samchon/nestia)\r\n - [package.json](package.json): NPM configuration\r\n - [tsconfig.json](tsconfig.json): TypeScript configuration for the main program\r\n - [tsconfig.api.json](tsconfig.api.json): TypeScript configuration for the SDK generation\r\n\r\n\r\n\r\n\r\n## NPM Run Commands\r\nList of the run commands defined in the [package.json](package.json) are like below:\r\n\r\n - Test\r\n - **`test`**: Run test automation program\r\n - `benchmark`: Run performance benchmark program\r\n - Build\r\n - `build`: Build everything\r\n - `build:main`: Build main program (`src` directory)\r\n - `build:test` Build test automation program (`test` directory)\r\n - `build:sdk`: Build SDK into main program only\r\n - `build:swagger`: Build Swagger Documents\r\n - **`dev`**: Incremental build for development (test program)\r\n - Deploy\r\n - `package:api`: Build and deploy the SDK library to the NPM\r\n - `start`: Start the backend server\r\n - `start:dev`: Start the backend server with incremental build and reload\r\n - Webpack\r\n - `webpack`: Run webpack bundler\r\n - `webpack:start`: Start the backend server built by webpack\r\n - `webpack:test`: Run test program to the webpack built\r\n\r\n\r\n\r\n\r\n## Specialization\r\nTransform this template project to be yours.\r\n\r\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.\r\n\r\n| Before | After\r\n|-----------------|----------------------------------------\r\n| ORGANIZATION | Your account or corporation name\r\n| PROJECT | Your own project name\r\n| AUTHOR | Author name\r\n| https://github.com/samchon/nestia-start | Your repository URL\r\n\r\n\r\n\r\n\r\n## Test Driven Development\r\nWith [nestia](https://github.com/samchon/nestia) helps to accomplish TDD (Test Driven Development). \r\n\r\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.\r\n\r\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.\r\n\r\n> Visit the [samchon/backend](https://github.com/samchon/backend), then you may find much detailed story about this TDD.\r\n>\r\n> 1. Definitions\r\n> 2. SDK\r\n> 3. Test Automation Program\r\n> 4. Main Program\r\n\r\n```typescript\r\nimport {\r\n ArrayUtil,\r\n GaffComparator,\r\n RandomGenerator,\r\n TestValidator,\r\n} from "@nestia/e2e";\r\n\r\nimport api from "@ORGANIZATION/PROJECT-api/lib/index";\r\nimport { IBbsArticle } from "@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle";\r\nimport { IPage } from "@ORGANIZATION/PROJECT-api/lib/structures/common/IPage";\r\n\r\nexport async function test_api_bbs_article_index_sort(\r\n connection: api.IConnection,\r\n): Promise<void> {\r\n // GENERATE 100 ARTICLES\r\n const section: string = "general";\r\n await ArrayUtil.asyncRepeat(100)(() =>\r\n api.functional.bbs.articles.create(connection, section, {\r\n writer: RandomGenerator.name(),\r\n title: RandomGenerator.paragraph(5)(),\r\n body: RandomGenerator.content(8)()(),\r\n format: "txt",\r\n files: [],\r\n password: RandomGenerator.alphabets(8),\r\n }),\r\n );\r\n\r\n // PREPARE VALIDATOR\r\n const validator = TestValidator.sort("BbsArticleProvider.index()")(async (\r\n sort: IPage.Sort<IBbsArticle.IRequest.SortableColumns>,\r\n ) => {\r\n const page: IPage<IBbsArticle.ISummary> =\r\n await api.functional.bbs.articles.index(connection, section, {\r\n limit: 100,\r\n sort,\r\n });\r\n return page.data;\r\n });\r\n\r\n // DO VALIDATE\r\n const components = [\r\n validator("created_at")(GaffComparator.dates((x) => x.created_at)),\r\n validator("updated_at")(GaffComparator.dates((x) => x.updated_at)),\r\n validator("title")(GaffComparator.strings((x) => x.title)),\r\n validator("writer")(GaffComparator.strings((x) => x.writer)),\r\n validator(\r\n "writer",\r\n "title",\r\n )(GaffComparator.strings((x) => [x.writer, x.title])),\r\n ];\r\n for (const comp of components) {\r\n await comp("+", false);\r\n await comp("-", false);\r\n }\r\n}\r\n```\r\n\r\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:\r\n\r\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)'
|
136
128
|
}, {
|
137
129
|
location: "src/api",
|
138
130
|
file: "HttpError.ts",
|
139
|
-
content: 'export { HttpError } from "@nestia/fetcher";\n'
|
131
|
+
content: 'export { HttpError } from "@nestia/fetcher";\r\n'
|
140
132
|
}, {
|
141
133
|
location: "src/api",
|
142
134
|
file: "IConnection.ts",
|
143
|
-
content: 'export type { IConnection } from "@nestia/fetcher";\n'
|
135
|
+
content: 'export type { IConnection } from "@nestia/fetcher";\r\n'
|
144
136
|
}, {
|
145
137
|
location: "src/api",
|
146
|
-
file: "
|
147
|
-
content: '
|
138
|
+
file: "index.ts",
|
139
|
+
content: 'import * as api from "./module";\r\n\r\nexport * from "./module";\r\nexport default api;\r\n'
|
148
140
|
}, {
|
149
141
|
location: "src/api",
|
150
|
-
file: "
|
151
|
-
content: 'export type
|
142
|
+
file: "module.ts",
|
143
|
+
content: 'export type * from "./IConnection";\r\nexport * from "./HttpError";\r\n\r\nexport * as functional from "./functional";\r\n'
|
152
144
|
}, {
|
153
145
|
location: "src/api",
|
154
|
-
file: "
|
155
|
-
content: '
|
146
|
+
file: "Primitive.ts",
|
147
|
+
content: 'export type { Primitive } from "typia";\r\n'
|
156
148
|
}, {
|
157
149
|
location: "src/api",
|
158
|
-
file: "
|
159
|
-
content: 'export type
|
150
|
+
file: "Resolved.ts",
|
151
|
+
content: 'export type { Resolved } from "typia";\r\n'
|
160
152
|
}, {
|
161
153
|
location: "src/api/structures/bbs",
|
162
154
|
file: "IBbsArticle.ts",
|
163
|
-
content: 'import { tags } from "typia";\n\nimport { IAttachmentFile } from "../common/IAttachmentFile";\nimport { IPage } from "../common/IPage";\n\n/**\n * BBS article.\n */\nexport interface IBbsArticle {\n /**\n * Primary Key.\n */\n id: string & tags.Format<"uuid">;\n\n /**\n * Section code.\n */\n section: string;\n\n /**\n * Name of nickname of writer.\n */\n writer: string;\n\n /**\n * List of snapshot contents.\n *\n * Whenever updating an article, its contents would be accumulated.\n */\n snapshots: IBbsArticle.ISnapshot[];\n\n /**\n * Creation time of the article.\n */\n created_at: string & tags.Format<"date-time">;\n}\n\nexport namespace IBbsArticle {\n /**\n * Page request info with some options.\n */\n export interface IRequest extends IPage.IRequest {\n /**\n * Searching options.\n */\n search?: IRequest.ISearch;\n\n /**\n * Sorting options.\n *\n * The plus sign means ASC and minus sign means DESC.\n */\n sort?: IPage.Sort<IRequest.SortableColumns>;\n }\n export namespace IRequest {\n /**\n * Searching options.\n */\n export interface ISearch {\n writer?: string;\n title?: string;\n body?: string;\n }\n\n /**\n * List of sortable columns.\n */\n export type SortableColumns =\n | "writer"\n | "title"\n | "created_at"\n | "updated_at";\n }\n\n /**\n * Summarized info.\n */\n export interface ISummary {\n id: string;\n writer: string;\n title: string;\n created_at: string;\n updated_at: string;\n }\n\n /**\n * Content info.\n */\n export interface ISnapshot extends Omit<IUpdate, "password"> {\n /**\n * Primary key of individual content.\n */\n id: string & tags.Format<"uuid">;\n\n /**\n * Creation time of this content.\n */\n created_at: string & tags.Format<"date-time">;\n }\n\n /**\n * Store info.\n */\n export interface ICreate extends IUpdate {\n /**\n * Name or nickname of the writer.\n */\n writer: string;\n }\n\n /**\n * Update info.\n */\n export interface IUpdate {\n /**\n * Title of the article.\n */\n title: string;\n\n /**\n * Content body.\n */\n body: string;\n\n /**\n * Format of the content body.\n */\n format: "md" | "html" | "txt";\n\n /**\n * List of files (to be) attached.\n */\n files: IAttachmentFile[];\n\n /**\n * Password of the article.\n */\n password: string;\n }\n\n /**\n * Erase info.\n */\n export interface IErase {\n /**\n * Password of the article.\n */\n password: string;\n }\n}\n'
|
155
|
+
content: 'import { tags } from "typia";\r\n\r\nimport { IAttachmentFile } from "../common/IAttachmentFile";\r\nimport { IPage } from "../common/IPage";\r\n\r\n/**\r\n * BBS article.\r\n */\r\nexport interface IBbsArticle {\r\n /**\r\n * Primary Key.\r\n */\r\n id: string & tags.Format<"uuid">;\r\n\r\n /**\r\n * Section code.\r\n */\r\n section: string;\r\n\r\n /**\r\n * Name of nickname of writer.\r\n */\r\n writer: string;\r\n\r\n /**\r\n * List of snapshot contents.\r\n *\r\n * Whenever updating an article, its contents would be accumulated.\r\n */\r\n snapshots: IBbsArticle.ISnapshot[];\r\n\r\n /**\r\n * Creation time of the article.\r\n */\r\n created_at: string & tags.Format<"date-time">;\r\n}\r\n\r\nexport namespace IBbsArticle {\r\n /**\r\n * Page request info with some options.\r\n */\r\n export interface IRequest extends IPage.IRequest {\r\n /**\r\n * Searching options.\r\n */\r\n search?: IRequest.ISearch;\r\n\r\n /**\r\n * Sorting options.\r\n *\r\n * The plus sign means ASC and minus sign means DESC.\r\n */\r\n sort?: IPage.Sort<IRequest.SortableColumns>;\r\n }\r\n export namespace IRequest {\r\n /**\r\n * Searching options.\r\n */\r\n export interface ISearch {\r\n writer?: string;\r\n title?: string;\r\n body?: string;\r\n }\r\n\r\n /**\r\n * List of sortable columns.\r\n */\r\n export type SortableColumns =\r\n | "writer"\r\n | "title"\r\n | "created_at"\r\n | "updated_at";\r\n }\r\n\r\n /**\r\n * Summarized info.\r\n */\r\n export interface ISummary {\r\n id: string;\r\n writer: string;\r\n title: string;\r\n created_at: string;\r\n updated_at: string;\r\n }\r\n\r\n /**\r\n * Content info.\r\n */\r\n export interface ISnapshot extends Omit<IUpdate, "password"> {\r\n /**\r\n * Primary key of individual content.\r\n */\r\n id: string & tags.Format<"uuid">;\r\n\r\n /**\r\n * Creation time of this content.\r\n */\r\n created_at: string & tags.Format<"date-time">;\r\n }\r\n\r\n /**\r\n * Store info.\r\n */\r\n export interface ICreate extends IUpdate {\r\n /**\r\n * Name or nickname of the writer.\r\n */\r\n writer: string;\r\n }\r\n\r\n /**\r\n * Update info.\r\n */\r\n export interface IUpdate {\r\n /**\r\n * Title of the article.\r\n */\r\n title: string;\r\n\r\n /**\r\n * Content body.\r\n */\r\n body: string;\r\n\r\n /**\r\n * Format of the content body.\r\n */\r\n format: "md" | "html" | "txt";\r\n\r\n /**\r\n * List of files (to be) attached.\r\n */\r\n files: IAttachmentFile[];\r\n\r\n /**\r\n * Password of the article.\r\n */\r\n password: string;\r\n }\r\n\r\n /**\r\n * Erase info.\r\n */\r\n export interface IErase {\r\n /**\r\n * Password of the article.\r\n */\r\n password: string;\r\n }\r\n}\r\n'
|
164
156
|
}, {
|
165
157
|
location: "src/api/structures/common",
|
166
158
|
file: "IAttachmentFile.ts",
|
167
|
-
content: 'import { tags } from "typia";\n\nexport interface IAttachmentFile {\n name: null | (string & tags.MinLength<1> & tags.MaxLength<255>);\n extension: null | (string & tags.MinLength<1> & tags.MaxLength<8>);\n url: string & tags.Format<"url">;\n}\n'
|
159
|
+
content: 'import { tags } from "typia";\r\n\r\nexport interface IAttachmentFile {\r\n name: null | (string & tags.MinLength<1> & tags.MaxLength<255>);\r\n extension: null | (string & tags.MinLength<1> & tags.MaxLength<8>);\r\n url: string & tags.Format<"url">;\r\n}\r\n'
|
168
160
|
}, {
|
169
161
|
location: "src/api/structures/common",
|
170
162
|
file: "IPage.ts",
|
171
|
-
content: 'import { tags } from "typia";\n\n/**\n * A page.\n *\n * Collection of records with pagination indformation.\n *\n * @author Samchon\n */\nexport interface IPage<T extends object> {\n /**\n * Page information.\n */\n pagination: IPage.IPagination;\n\n /**\n * List of records.\n */\n data: T[];\n}\nexport namespace IPage {\n /**\n * Page information.\n */\n export interface IPagination {\n /**\n * Current page number.\n */\n current: number & tags.Type<"uint32">;\n\n /**\n * Limitation of records per a page.\n *\n * @default 100\n */\n limit: number & tags.Type<"uint32">;\n\n /**\n * Count of total records in database.\n */\n records: number & tags.Type<"uint32">;\n\n /**\n * Number of total pages.\n *\n * Equal to {@link records} / {@link limit} with ceiling.\n */\n pages: number & tags.Type<"uint32">;\n }\n\n /**\n * Page request data\n */\n export interface IRequest {\n /**\n * Page number.\n */\n page?: number & tags.Type<"uint32">;\n\n /**\n * Limitation of records per a page.\n */\n limit?: number & tags.Type<"uint32">;\n }\n\n /**\n * Sorting column specialization.\n *\n * The plus means ascending order and the minus means descending order.\n */\n export type Sort<Literal extends string> = Array<\n `-${Literal}` | `+${Literal}`\n >;\n}\n'
|
163
|
+
content: 'import { tags } from "typia";\r\n\r\n/**\r\n * A page.\r\n *\r\n * Collection of records with pagination indformation.\r\n *\r\n * @author Samchon\r\n */\r\nexport interface IPage<T extends object> {\r\n /**\r\n * Page information.\r\n */\r\n pagination: IPage.IPagination;\r\n\r\n /**\r\n * List of records.\r\n */\r\n data: T[];\r\n}\r\nexport namespace IPage {\r\n /**\r\n * Page information.\r\n */\r\n export interface IPagination {\r\n /**\r\n * Current page number.\r\n */\r\n current: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Limitation of records per a page.\r\n *\r\n * @default 100\r\n */\r\n limit: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Count of total records in database.\r\n */\r\n records: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Number of total pages.\r\n *\r\n * Equal to {@link records} / {@link limit} with ceiling.\r\n */\r\n pages: number & tags.Type<"uint32">;\r\n }\r\n\r\n /**\r\n * Page request data\r\n */\r\n export interface IRequest {\r\n /**\r\n * Page number.\r\n */\r\n page?: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Limitation of records per a page.\r\n */\r\n limit?: number & tags.Type<"uint32">;\r\n }\r\n\r\n /**\r\n * Sorting column specialization.\r\n *\r\n * The plus means ascending order and the minus means descending order.\r\n */\r\n export type Sort<Literal extends string> = Array<\r\n `-${Literal}` | `+${Literal}`\r\n >;\r\n}\r\n'
|
172
164
|
}, {
|
173
165
|
location: "src/executable",
|
174
166
|
file: "server.ts",
|
175
|
-
content: 'import { MyBackend } from "../MyBackend";\n\nconst EXTENSION = __filename.substring(__filename.length - 2);\nif (EXTENSION === "js") require("source-map-support/register");\n\nasync function main(): Promise<void> {\n // BACKEND SEVER\n const backend: MyBackend = new MyBackend();\n await backend.open();\n\n // UNEXPECTED ERRORS\n global.process.on("uncaughtException", console.error);\n global.process.on("unhandledRejection", console.error);\n}\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n'
|
167
|
+
content: 'import { MyBackend } from "../MyBackend";\r\n\r\nconst EXTENSION = __filename.substring(__filename.length - 2);\r\nif (EXTENSION === "js") require("source-map-support/register");\r\n\r\nasync function main(): Promise<void> {\r\n // BACKEND SEVER\r\n const backend: MyBackend = new MyBackend();\r\n await backend.open();\r\n\r\n // UNEXPECTED ERRORS\r\n global.process.on("uncaughtException", console.error);\r\n global.process.on("unhandledRejection", console.error);\r\n}\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'
|
176
168
|
}, {
|
177
169
|
location: "src/executable",
|
178
170
|
file: "swagger.ts",
|
179
|
-
content: 'import cp from "child_process";\nimport express from "express";\n\nconst execute = (command: string): void => {\n console.log(`\\n$ ${command}\\n`);\n cp.execSync(command, { stdio: "inherit" });\n};\n\nconst main = async (): Promise<void> => {\n if (!process.argv.some((str) => str === "--skipBuild"))\n execute("npm run build:swagger");\n\n const docs = await import("../../packages/api/swagger.json" as any);\n\n const app = express();\n const swaggerUi = require("swagger-ui-express");\n app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(docs));\n app.listen(37810);\n\n console.log("\\n");\n console.log("-----------------------------------------------------------");\n console.log("\\n Swagger UI Address: http://127.0.0.1:37810/api-docs \\n");\n console.log("-----------------------------------------------------------");\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n'
|
171
|
+
content: 'import cp from "child_process";\r\nimport express from "express";\r\n\r\nconst execute = (command: string): void => {\r\n console.log(`\\n$ ${command}\\n`);\r\n cp.execSync(command, { stdio: "inherit" });\r\n};\r\n\r\nconst main = async (): Promise<void> => {\r\n if (!process.argv.some((str) => str === "--skipBuild"))\r\n execute("npm run build:swagger");\r\n\r\n const docs = await import("../../packages/api/swagger.json" as any);\r\n\r\n const app = express();\r\n const swaggerUi = require("swagger-ui-express");\r\n app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(docs));\r\n app.listen(37810);\r\n\r\n console.log("\\n");\r\n console.log("-----------------------------------------------------------");\r\n console.log("\\n Swagger UI Address: http://127.0.0.1:37810/api-docs \\n");\r\n console.log("-----------------------------------------------------------");\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'
|
172
|
+
}, {
|
173
|
+
location: "src",
|
174
|
+
file: "MyBackend.ts",
|
175
|
+
content: 'import { WebSocketAdaptor } from "@nestia/core";\r\nimport { INestApplication } from "@nestjs/common";\r\nimport { NestFactory } from "@nestjs/core";\r\n\r\nimport { MyConfiguration } from "./MyConfiguration";\r\nimport { MyModule } from "./MyModule";\r\n\r\nexport class MyBackend {\r\n private application_?: INestApplication;\r\n\r\n public async open(): Promise<void> {\r\n //----\r\n // OPEN THE BACKEND SERVER\r\n //----\r\n // MOUNT CONTROLLERS\r\n this.application_ = await NestFactory.create(MyModule, { logger: false });\r\n await WebSocketAdaptor.upgrade(this.application_);\r\n\r\n // DO OPEN\r\n this.application_.enableCors();\r\n await this.application_.listen(MyConfiguration.API_PORT(), "0.0.0.0");\r\n\r\n //----\r\n // POST-PROCESSES\r\n //----\r\n // INFORM TO THE PM2\r\n if (process.send) process.send("ready");\r\n\r\n // WHEN KILL COMMAND COMES\r\n process.on("SIGINT", async () => {\r\n await this.close();\r\n process.exit(0);\r\n });\r\n }\r\n\r\n public async close(): Promise<void> {\r\n if (this.application_ === undefined) return;\r\n\r\n // DO CLOSE\r\n await this.application_.close();\r\n delete this.application_;\r\n }\r\n}\r\n'
|
176
|
+
}, {
|
177
|
+
location: "src",
|
178
|
+
file: "MyConfiguration.ts",
|
179
|
+
content: 'import fs from "fs";\r\nimport path from "path";\r\n\r\nimport { MyGlobal } from "./MyGlobal";\r\n\r\nexport namespace MyConfiguration {\r\n export const API_PORT = () => Number(MyGlobal.env.API_PORT);\r\n\r\n export const ROOT = (() => {\r\n const split: string[] = __dirname.split(path.sep);\r\n return split.at(-1) === "src" && split.at(-2) === "bin"\r\n ? path.resolve(__dirname + "/../..")\r\n : fs.existsSync(__dirname + "/.env")\r\n ? __dirname\r\n : path.resolve(__dirname + "/..");\r\n })();\r\n}\r\n'
|
180
|
+
}, {
|
181
|
+
location: "src",
|
182
|
+
file: "MyGlobal.ts",
|
183
|
+
content: 'import dotenv from "dotenv";\r\nimport dotenvExpand from "dotenv-expand";\r\nimport { Singleton } from "tstl";\r\nimport typia from "typia";\r\n\r\n/* eslint-disable */\r\nexport class MyGlobal {\r\n public static testing: boolean = false;\r\n public static get env(): MyGlobal.IEnvironments {\r\n return environments.get();\r\n }\r\n}\r\nexport namespace MyGlobal {\r\n export interface IEnvironments {\r\n API_PORT: `${number}`;\r\n }\r\n}\r\n\r\nconst environments = new Singleton(() => {\r\n const env = dotenv.config();\r\n dotenvExpand.expand(env);\r\n return typia.assert<MyGlobal.IEnvironments>(process.env);\r\n});\r\n'
|
180
184
|
}, {
|
181
185
|
location: "src/utils",
|
182
186
|
file: "ErrorUtil.ts",
|
183
|
-
content: 'import serializeError = require("serialize-error");\n\nexport namespace ErrorUtil {\n export const toJSON = (err: any): object =>\n err instanceof Object && err.toJSON instanceof Function\n ? err.toJSON()\n : serializeError(err);\n}\n'
|
187
|
+
content: 'import serializeError = require("serialize-error");\r\n\r\nexport namespace ErrorUtil {\r\n export const toJSON = (err: any): object =>\r\n err instanceof Object && err.toJSON instanceof Function\r\n ? err.toJSON()\r\n : serializeError(err);\r\n}\r\n'
|
184
188
|
}, {
|
185
189
|
location: "src/utils",
|
186
190
|
file: "MapUtil.ts",
|
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'
|
191
|
+
content: "export namespace MapUtil {\r\n export function take<Key, T>(\r\n dict: Map<Key, T>,\r\n key: Key,\r\n generator: () => T,\r\n ): T {\r\n const oldbie: T | undefined = dict.get(key);\r\n if (oldbie) return oldbie;\r\n\r\n const value: T = generator();\r\n dict.set(key, value);\r\n return value;\r\n }\r\n}\r\n"
|
192
192
|
}, {
|
193
193
|
location: "test/benchmark",
|
194
194
|
file: "index.ts",
|
195
|
-
content: 'import { DynamicBenchmarker } from "@nestia/benchmark";\nimport cliProgress from "cli-progress";\nimport fs from "fs";\nimport os from "os";\nimport { IPointer } from "tstl";\n\nimport { MyBackend } from "../../src/MyBackend";\nimport { MyConfiguration } from "../../src/MyConfiguration";\nimport { MyGlobal } from "../../src/MyGlobal";\nimport { ArgumentParser } from "../helpers/ArgumentParser";\n\ninterface IOptions {\n include?: string[];\n exclude?: string[];\n count: number;\n threads: number;\n simultaneous: number;\n}\n\nconst getOptions = () =>\n ArgumentParser.parse<IOptions>(async (command, prompt, action) => {\n // command.option("--mode <string>", "target mode");\n // command.option("--reset <true|false>", "reset local DB or not");\n command.option("--include <string...>", "include feature files");\n command.option("--exclude <string...>", "exclude feature files");\n command.option("--count <number>", "number of requests to make");\n command.option("--threads <number>", "number of threads to use");\n command.option(\n "--simultaneous <number>",\n "number of simultaneous requests to make",\n );\n return action(async (options) => {\n // if (typeof options.reset === "string")\n // options.reset = options.reset === "true";\n // options.mode ??= await prompt.select("mode")("Select mode")([\n // "LOCAL",\n // "DEV",\n // "REAL",\n // ]);\n // options.reset ??= await prompt.boolean("reset")("Reset local DB");\n options.count = Number(\n options.count ??\n (await prompt.number("count")("Number of requests to make")),\n );\n options.threads = Number(\n options.threads ??\n (await prompt.number("threads")("Number of threads to use")),\n );\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 IOptions;\n });\n });\n\nconst main = async (): Promise<void> => {\n // CONFIGURATIONS\n const options: IOptions = await getOptions();\n MyGlobal.testing = true;\n\n // BACKEND SERVER\n const backend: MyBackend = new MyBackend();\n await backend.open();\n\n // DO BENCHMARK\n const prev: IPointer<number> = { value: 0 };\n const bar: cliProgress.SingleBar = new cliProgress.SingleBar(\n {},\n cliProgress.Presets.shades_classic,\n );\n bar.start(options.count, 0);\n\n const report: DynamicBenchmarker.IReport = await DynamicBenchmarker.master({\n servant: `${__dirname}/servant.js`,\n count: options.count,\n threads: options.threads,\n simultaneous: options.simultaneous,\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 progress: (value: number) => {\n if (value >= 100 + prev.value) {\n bar.update(value);\n prev.value = value;\n }\n },\n stdio: "ignore",\n });\n bar.stop();\n\n // DOCUMENTATION\n try {\n await fs.promises.mkdir(`${MyConfiguration.ROOT}/docs/benchmarks`, {\n recursive: true,\n });\n } catch {}\n await fs.promises.writeFile(\n `${MyConfiguration.ROOT}/docs/benchmarks/${os\n .cpus()[0]\n .model.trim()\n .split("\\\\")\n .join("")\n .split("/")\n .join("")}.md`,\n DynamicBenchmarker.markdown(report),\n "utf8",\n );\n\n // CLOSE\n await backend.close();\n};\nmain().catch((exp) => {\n console.error(exp);\n process.exit(-1);\n});\n'
|
195
|
+
content: 'import { DynamicBenchmarker } from "@nestia/benchmark";\r\nimport cliProgress from "cli-progress";\r\nimport fs from "fs";\r\nimport os from "os";\r\nimport { IPointer } from "tstl";\r\n\r\nimport { MyBackend } from "../../src/MyBackend";\r\nimport { MyConfiguration } from "../../src/MyConfiguration";\r\nimport { MyGlobal } from "../../src/MyGlobal";\r\nimport { ArgumentParser } from "../helpers/ArgumentParser";\r\n\r\ninterface IOptions {\r\n include?: string[];\r\n exclude?: string[];\r\n count: number;\r\n threads: number;\r\n simultaneous: number;\r\n}\r\n\r\nconst getOptions = () =>\r\n ArgumentParser.parse<IOptions>(async (command, prompt, action) => {\r\n // command.option("--mode <string>", "target mode");\r\n // command.option("--reset <true|false>", "reset local DB or not");\r\n command.option("--include <string...>", "include feature files");\r\n command.option("--exclude <string...>", "exclude feature files");\r\n command.option("--count <number>", "number of requests to make");\r\n command.option("--threads <number>", "number of threads to use");\r\n command.option(\r\n "--simultaneous <number>",\r\n "number of simultaneous requests to make",\r\n );\r\n return action(async (options) => {\r\n // if (typeof options.reset === "string")\r\n // options.reset = options.reset === "true";\r\n // options.mode ??= await prompt.select("mode")("Select mode")([\r\n // "LOCAL",\r\n // "DEV",\r\n // "REAL",\r\n // ]);\r\n // options.reset ??= await prompt.boolean("reset")("Reset local DB");\r\n options.count = Number(\r\n options.count ??\r\n (await prompt.number("count")("Number of requests to make")),\r\n );\r\n options.threads = Number(\r\n options.threads ??\r\n (await prompt.number("threads")("Number of threads to use")),\r\n );\r\n options.simultaneous = Number(\r\n options.simultaneous ??\r\n (await prompt.number("simultaneous")(\r\n "Number of simultaneous requests to make",\r\n )),\r\n );\r\n return options as IOptions;\r\n });\r\n });\r\n\r\nconst main = async (): Promise<void> => {\r\n // CONFIGURATIONS\r\n const options: IOptions = await getOptions();\r\n MyGlobal.testing = true;\r\n\r\n // BACKEND SERVER\r\n const backend: MyBackend = new MyBackend();\r\n await backend.open();\r\n\r\n // DO BENCHMARK\r\n const prev: IPointer<number> = { value: 0 };\r\n const bar: cliProgress.SingleBar = new cliProgress.SingleBar(\r\n {},\r\n cliProgress.Presets.shades_classic,\r\n );\r\n bar.start(options.count, 0);\r\n\r\n const report: DynamicBenchmarker.IReport = await DynamicBenchmarker.master({\r\n servant: `${__dirname}/servant.js`,\r\n count: options.count,\r\n threads: options.threads,\r\n simultaneous: options.simultaneous,\r\n filter: (func) =>\r\n (!options.include?.length ||\r\n (options.include ?? []).some((str) => func.includes(str))) &&\r\n (!options.exclude?.length ||\r\n (options.exclude ?? []).every((str) => !func.includes(str))),\r\n progress: (value: number) => {\r\n if (value >= 100 + prev.value) {\r\n bar.update(value);\r\n prev.value = value;\r\n }\r\n },\r\n stdio: "ignore",\r\n });\r\n bar.stop();\r\n\r\n // DOCUMENTATION\r\n try {\r\n await fs.promises.mkdir(`${MyConfiguration.ROOT}/docs/benchmarks`, {\r\n recursive: true,\r\n });\r\n } catch {}\r\n await fs.promises.writeFile(\r\n `${MyConfiguration.ROOT}/docs/benchmarks/${os\r\n .cpus()[0]\r\n .model.trim()\r\n .split("\\\\")\r\n .join("")\r\n .split("/")\r\n .join("")}.md`,\r\n DynamicBenchmarker.markdown(report),\r\n "utf8",\r\n );\r\n\r\n // CLOSE\r\n await backend.close();\r\n};\r\nmain().catch((exp) => {\r\n console.error(exp);\r\n process.exit(-1);\r\n});\r\n'
|
196
196
|
}, {
|
197
197
|
location: "test/benchmark",
|
198
198
|
file: "servant.ts",
|
199
|
-
content: 'import { DynamicBenchmarker } from "@nestia/benchmark";\n\nimport { MyConfiguration } from "../../src/MyConfiguration";\n\nDynamicBenchmarker.servant({\n connection: {\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\n },\n location: `${__dirname}/../features`,\n parameters: (connection) => [connection],\n prefix: "test_api_",\n}).catch((exp) => {\n console.error(exp);\n process.exit(-1);\n});\n'
|
199
|
+
content: 'import { DynamicBenchmarker } from "@nestia/benchmark";\r\n\r\nimport { MyConfiguration } from "../../src/MyConfiguration";\r\n\r\nDynamicBenchmarker.servant({\r\n connection: {\r\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\r\n },\r\n location: `${__dirname}/../features`,\r\n parameters: (connection) => [connection],\r\n prefix: "test_api_",\r\n}).catch((exp) => {\r\n console.error(exp);\r\n process.exit(-1);\r\n});\r\n'
|
200
200
|
}, {
|
201
201
|
location: "test/helpers",
|
202
202
|
file: "ArgumentParser.ts",
|
203
|
-
content: 'import commander from "commander";\nimport * as inquirer from "inquirer";\n\nexport namespace ArgumentParser {\n export type Inquiry<T> = (\n command: commander.Command,\n prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule,\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\n ) => Promise<T>;\n\n export interface Prompt {\n select: (\n name: string,\n ) => (\n message: string,\n ) => <Choice extends string>(choices: Choice[]) => Promise<Choice>;\n boolean: (name: string) => (message: string) => Promise<boolean>;\n number: (name: string) => (message: string) => Promise<number>;\n }\n\n export const parse = async <T>(\n inquiry: (\n command: commander.Command,\n prompt: Prompt,\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\n ) => Promise<T>,\n ): Promise<T> => {\n // TAKE OPTIONS\n const action = (closure: (options: Partial<T>) => Promise<T>) =>\n new Promise<T>((resolve, reject) => {\n commander.program.action(async (options) => {\n try {\n resolve(await closure(options));\n } catch (exp) {\n reject(exp);\n }\n });\n commander.program.parseAsync().catch(reject);\n });\n\n const select =\n (name: string) =>\n (message: string) =>\n async <Choice extends string>(choices: Choice[]): Promise<Choice> =>\n (\n await inquirer.createPromptModule()({\n type: "list",\n name,\n message,\n choices,\n })\n )[name];\n const boolean = (name: string) => async (message: string) =>\n (\n await inquirer.createPromptModule()({\n type: "confirm",\n name,\n message,\n })\n )[name] as boolean;\n const number = (name: string) => async (message: string) =>\n Number(\n (\n await inquirer.createPromptModule()({\n type: "number",\n name,\n message,\n })\n )[name],\n );\n\n const output: T | Error = await (async () => {\n try {\n return await inquiry(\n commander.program,\n { select, boolean, number },\n action,\n );\n } catch (error) {\n return error as Error;\n }\n })();\n\n // RETURNS\n if (output instanceof Error) throw output;\n return output;\n };\n}\n'
|
203
|
+
content: 'import commander from "commander";\r\nimport * as inquirer from "inquirer";\r\n\r\nexport namespace ArgumentParser {\r\n export type Inquiry<T> = (\r\n command: commander.Command,\r\n prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule,\r\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\r\n ) => Promise<T>;\r\n\r\n export interface Prompt {\r\n select: (\r\n name: string,\r\n ) => (\r\n message: string,\r\n ) => <Choice extends string>(choices: Choice[]) => Promise<Choice>;\r\n boolean: (name: string) => (message: string) => Promise<boolean>;\r\n number: (name: string) => (message: string) => Promise<number>;\r\n }\r\n\r\n export const parse = async <T>(\r\n inquiry: (\r\n command: commander.Command,\r\n prompt: Prompt,\r\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\r\n ) => Promise<T>,\r\n ): Promise<T> => {\r\n // TAKE OPTIONS\r\n const action = (closure: (options: Partial<T>) => Promise<T>) =>\r\n new Promise<T>((resolve, reject) => {\r\n commander.program.action(async (options) => {\r\n try {\r\n resolve(await closure(options));\r\n } catch (exp) {\r\n reject(exp);\r\n }\r\n });\r\n commander.program.parseAsync().catch(reject);\r\n });\r\n\r\n const select =\r\n (name: string) =>\r\n (message: string) =>\r\n async <Choice extends string>(choices: Choice[]): Promise<Choice> =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "list",\r\n name,\r\n message,\r\n choices,\r\n })\r\n )[name];\r\n const boolean = (name: string) => async (message: string) =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "confirm",\r\n name,\r\n message,\r\n })\r\n )[name] as boolean;\r\n const number = (name: string) => async (message: string) =>\r\n Number(\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "number",\r\n name,\r\n message,\r\n })\r\n )[name],\r\n );\r\n\r\n const output: T | Error = await (async () => {\r\n try {\r\n return await inquiry(\r\n commander.program,\r\n { select, boolean, number },\r\n action,\r\n );\r\n } catch (error) {\r\n return error as Error;\r\n }\r\n })();\r\n\r\n // RETURNS\r\n if (output instanceof Error) throw output;\r\n return output;\r\n };\r\n}\r\n'
|
204
204
|
}, {
|
205
205
|
location: "test",
|
206
206
|
file: "index.ts",
|
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'
|
207
|
+
content: 'import { MyBackend } from "../src/MyBackend";\r\nimport { MyGlobal } from "../src/MyGlobal";\r\nimport { TestAutomation } from "./TestAutomation";\r\n\r\nconst main = async (): Promise<void> => {\r\n MyGlobal.testing = true;\r\n await TestAutomation.execute({\r\n open: async () => {\r\n const backend: MyBackend = new MyBackend();\r\n await backend.open();\r\n return backend;\r\n },\r\n close: (backend) => backend.close(),\r\n });\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'
|
208
|
+
}, {
|
209
|
+
location: "test",
|
210
|
+
file: "TestAutomation.ts",
|
211
|
+
content: 'import { DynamicExecutor } from "@nestia/e2e";\r\nimport chalk from "chalk";\r\nimport { sleep_for } from "tstl";\r\n\r\nimport { MyConfiguration } from "../src/MyConfiguration";\r\nimport api from "../src/api";\r\nimport { ArgumentParser } from "./helpers/ArgumentParser";\r\n\r\nexport namespace TestAutomation {\r\n export interface IProps<T> {\r\n open(options: IOptions): Promise<T>;\r\n close(backend: T): Promise<void>;\r\n }\r\n\r\n export interface IOptions {\r\n simultaneous: number;\r\n include?: string[];\r\n exclude?: string[];\r\n }\r\n\r\n export const execute = async <T>(props: IProps<T>): Promise<void> => {\r\n // OPEN BACKEND\r\n const options: IOptions = await getOptions();\r\n const backend: T = await props.open(options);\r\n\r\n // DO TEST\r\n const connection: api.IConnection = {\r\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\r\n };\r\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\r\n prefix: "test",\r\n location: __dirname + "/features",\r\n parameters: () => [\r\n {\r\n host: connection.host,\r\n encryption: connection.encryption,\r\n },\r\n ],\r\n filter: (func) =>\r\n (!options.include?.length ||\r\n (options.include ?? []).some((str) => func.includes(str))) &&\r\n (!options.exclude?.length ||\r\n (options.exclude ?? []).every((str) => !func.includes(str))),\r\n onComplete: (exec) => {\r\n const trace = (str: string) =>\r\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\r\n if (exec.error === null) {\r\n const elapsed: number =\r\n new Date(exec.completed_at).getTime() -\r\n new Date(exec.started_at).getTime();\r\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\r\n } else trace(chalk.red(exec.error.name));\r\n },\r\n simultaneous: options.simultaneous,\r\n });\r\n\r\n // TERMINATE - WAIT FOR BACKGROUND EVENTS\r\n await sleep_for(2500);\r\n await props.close(backend);\r\n\r\n const failures: DynamicExecutor.IExecution[] = report.executions.filter(\r\n (exec) => exec.error !== null,\r\n );\r\n if (failures.length === 0) {\r\n console.log("Success");\r\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\r\n } else {\r\n for (const f of failures) console.log(f.error);\r\n process.exit(-1);\r\n }\r\n\r\n console.log(\r\n [\r\n `All: #${report.executions.length}`,\r\n `Success: #${report.executions.length - failures.length}`,\r\n `Failed: #${failures.length}`,\r\n ].join("\\n"),\r\n );\r\n };\r\n}\r\n\r\nconst getOptions = () =>\r\n ArgumentParser.parse<TestAutomation.IOptions>(\r\n async (command, prompt, action) => {\r\n command.option(\r\n "--simultaneous <number>",\r\n "number of simultaneous requests",\r\n );\r\n command.option("--include <string...>", "include feature files");\r\n command.option("--exclude <string...>", "exclude feature files");\r\n\r\n return action(async (options) => {\r\n options.simultaneous = Number(\r\n options.simultaneous ??\r\n (await prompt.number("simultaneous")(\r\n "Number of simultaneous requests to make",\r\n )),\r\n );\r\n if (isNaN(options.simultaneous) || options.simultaneous <= 0)\r\n options.simultaneous = 1;\r\n return options as TestAutomation.IOptions;\r\n });\r\n },\r\n );\r\n'
|
208
212
|
}, {
|
209
213
|
location: "test",
|
210
214
|
file: "tsconfig.json",
|
211
|
-
content: '{\n "extends": "../tsconfig.json",\n "compilerOptions": {\n "outDir": "../bin",\n },\n "include": [".", "../src"]\n}'
|
215
|
+
content: '{\r\n "extends": "../tsconfig.json",\r\n "compilerOptions": {\r\n "outDir": "../bin",\r\n },\r\n "include": [".", "../src"]\r\n}'
|
212
216
|
}, {
|
213
217
|
location: "test",
|
214
218
|
file: "webpack.ts",
|
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'
|
219
|
+
content: 'import cp from "child_process";\r\nimport { sleep_for } from "tstl";\r\n\r\nimport { MyConfiguration } from "../src/MyConfiguration";\r\nimport { MyGlobal } from "../src/MyGlobal";\r\nimport { TestAutomation } from "./TestAutomation";\r\n\r\nconst wait = async (): Promise<void> => {\r\n while (true)\r\n try {\r\n await fetch(`http://localhost:${MyConfiguration.API_PORT()}/dsafdsafsd`);\r\n return;\r\n } catch (exp) {\r\n await sleep_for(100);\r\n }\r\n};\r\n\r\nconst main = async (): Promise<void> => {\r\n MyGlobal.testing = true;\r\n await TestAutomation.execute({\r\n open: async () => {\r\n const backend: cp.ChildProcess = cp.fork(\r\n `${MyConfiguration.ROOT}/dist/server.js`,\r\n {\r\n cwd: `${MyConfiguration.ROOT}/dist`,\r\n },\r\n );\r\n await wait();\r\n return backend;\r\n },\r\n close: async (backend) => {\r\n backend.kill();\r\n },\r\n });\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'
|
216
220
|
}, {
|
217
221
|
location: "",
|
218
222
|
file: "tsconfig.json",
|
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'
|
223
|
+
content: '{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n\r\n /* Language and Environment */\r\n "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */\r\n // "jsx": "preserve", /* Specify what JSX code is generated. */\r\n "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */\r\n // "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n "paths": {\r\n "@ORGANIZATION/PROJECT-api/lib/*": ["./src/api/*"],\r\n "@ORGANIZATION/PROJECT-api": ["./src/api"],\r\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n // "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'<reference>\'s from expanding the number of files TypeScript should add to a project. */\r\n\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n\r\n /* Emit */\r\n // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */\r\n // "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */\r\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. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */\r\n // "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */\r\n // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */\r\n "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */\r\n // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */\r\n\r\n /* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */\r\n // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n { "transform": "typescript-transform-paths" },\r\n { "transform": "typia/lib/transform" },\r\n { \r\n "transform": "@nestia/core/lib/transform",\r\n /**\r\n * Validate request body.\r\n * \r\n * - "assert": Use typia.assert() function\r\n * - "is": Use typia.is() function\r\n * - "validate": Use typia.validate() function\r\n * - "assertEquals": Use typia.assertEquals() function\r\n * - "equals": Use typia.equals() function\r\n * - "validateEquals": Use typia.validateEquals() function\r\n */\r\n "validate": "validate",\r\n /**\r\n * Validate JSON typed response body.\r\n * \r\n * - "assert": Use typia.assertStringify() function\r\n * - "is": Use typia.isStringify() function\r\n * - "validate": Use typia.validateStringify() function\r\n * - "validate.log": typia.validateStringify(), but do not throw and just log it\r\n * - "stringify": Use typia.stringify() function, but dangerous\r\n * - null: Just use JSON.stringify() function, without boosting\r\n */\r\n "stringify": "assert",\r\n },\r\n ]\r\n },\r\n "include": [\r\n "src"\r\n ],\r\n "exclude": [\r\n "node_modules",\r\n "packages",\r\n ]\r\n}\r\n'
|
220
224
|
}, {
|
221
225
|
location: "",
|
222
226
|
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"]'
|
227
|
+
content: '[default]\r\nlocale = \'en-us\'\r\nextend-ignore-re = [\r\n "(?Rm)^.*(\x3c!--|#|//)\\\\s*spellchecker:disable-line(--\x3e|\\n)?$",\r\n "(?s)(\x3c!--|#|//)\\\\s*spellchecker:off\\\\s*(--\x3e|\\n).*?(\x3c!--|#|//)\\\\s*spellchecker:on",\r\n]\r\n\r\n[default.extend-words]\r\nJeongho = "Jeongho"\r\nNam = "Nam"\r\ntypia = "typia"\r\n\r\n[files]\r\nextend-exclude = ["*.json"]'
|
224
228
|
}, {
|
225
229
|
location: "",
|
226
230
|
file: "webpack.config.js",
|
227
|
-
content: 'const path = require("path");\n\nconst CopyWebpackPlugin = require("copy-webpack-plugin");\nconst WriteFilePlugin = require("write-file-webpack-plugin");\nconst { IgnorePlugin } = require("webpack");\n\nconst lazyImports = [\n "@fastify/static",\n "@fastify/view",\n "@nestjs/microservices",\n "@nestjs/websockets",\n "class-transformer",\n "class-validator",\n];\n\n// @reference https://tech-blog.s-yoshiki.com/entry/297\nmodule.exports = {\n // CUSTOMIZE HERE\n entry: {\n server: "./src/executable/server.ts",\n },\n output: {\n path: path.join(__dirname, "dist"),\n filename: "[name].js",\n },\n optimization: {\n minimize: true,\n },\n\n // JUST KEEP THEM\n mode: "production",\n target: "node",\n module: {\n rules: [\n {\n test: /\\.ts$/,\n exclude: /node_modules/,\n loader: "ts-loader",\n },\n ],\n },\n resolve: {\n extensions: [".tsx", ".ts", ".js"],\n },\n plugins: [\n new CopyWebpackPlugin({\n patterns: [\n {\n from: ".env",\n to: "[name][ext]",\n },\n // {\n // from: "./node_modules/.prisma/client/*.node",\n // to: () => Promise.resolve("[path][name][ext]"),\n // globOptions: {\n // dot: true,\n // },\n // },\n ],\n }),\n new WriteFilePlugin(),\n new IgnorePlugin({\n checkResource: (resource) => {\n if (lazyImports.some((modulo) => resource.startsWith(modulo))) {\n try {\n require.resolve(resource);\n } catch (err) {\n return true;\n }\n }\n return false;\n },\n }),\n ],\n};\n'
|
231
|
+
content: 'const path = require("path");\r\n\r\nconst CopyWebpackPlugin = require("copy-webpack-plugin");\r\nconst WriteFilePlugin = require("write-file-webpack-plugin");\r\nconst { IgnorePlugin } = require("webpack");\r\n\r\nconst lazyImports = [\r\n "@fastify/static",\r\n "@fastify/view",\r\n "@nestjs/microservices",\r\n "@nestjs/websockets",\r\n "class-transformer",\r\n "class-validator",\r\n];\r\n\r\n// @reference https://tech-blog.s-yoshiki.com/entry/297\r\nmodule.exports = {\r\n // CUSTOMIZE HERE\r\n entry: {\r\n server: "./src/executable/server.ts",\r\n },\r\n output: {\r\n path: path.join(__dirname, "dist"),\r\n filename: "[name].js",\r\n },\r\n optimization: {\r\n minimize: true,\r\n },\r\n\r\n // JUST KEEP THEM\r\n mode: "production",\r\n target: "node",\r\n module: {\r\n rules: [\r\n {\r\n test: /\\.ts$/,\r\n exclude: /node_modules/,\r\n loader: "ts-loader",\r\n },\r\n ],\r\n },\r\n resolve: {\r\n extensions: [".tsx", ".ts", ".js"],\r\n },\r\n plugins: [\r\n new CopyWebpackPlugin({\r\n patterns: [\r\n {\r\n from: ".env",\r\n to: "[name][ext]",\r\n },\r\n // {\r\n // from: "./node_modules/.prisma/client/*.node",\r\n // to: () => Promise.resolve("[path][name][ext]"),\r\n // globOptions: {\r\n // dot: true,\r\n // },\r\n // },\r\n ],\r\n }),\r\n new WriteFilePlugin(),\r\n new IgnorePlugin({\r\n checkResource: (resource) => {\r\n if (lazyImports.some((modulo) => resource.startsWith(modulo))) {\r\n try {\r\n require.resolve(resource);\r\n } catch (err) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n },\r\n }),\r\n ],\r\n};\r\n'
|
228
232
|
} ];
|
229
233
|
|
230
234
|
const SDK_TEMPLATE = [ {
|
231
235
|
location: "",
|
232
236
|
file: ".gitignore",
|
233
|
-
content: ".git/\nbin/\nlib/\nnode_modules/\n\npackage-lock.json\npnpm-lock.yaml"
|
237
|
+
content: ".git/\r\nbin/\r\nlib/\r\nnode_modules/\r\n\r\npackage-lock.json\r\npnpm-lock.yaml"
|
234
238
|
}, {
|
235
239
|
location: ".vscode",
|
236
240
|
file: "launch.json",
|
237
|
-
content: '{\n // Use IntelliSense to learn about possible Node.js debug attributes.\n // Hover to view descriptions of existing attributes.\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\n "version": "0.2.0",\n "configurations": [\n {\n "type": "node",\n "request": "launch",\n "name": "JavaScript Test using SourceMap",\n "program": "${workspaceRoot}/test/index.ts",\n "cwd": "${workspaceRoot}",\n "args": [\n //----\n // You can run specific test functions\n //----\n // "--include", "something",\n // "--exclude", "nothing",\n ],\n "outFiles": ["${workspaceRoot}/bin/**/*.js"],\n }\n ]\n}'
|
241
|
+
content: '{\r\n // Use IntelliSense to learn about possible Node.js debug attributes.\r\n // Hover to view descriptions of existing attributes.\r\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\r\n "version": "0.2.0",\r\n "configurations": [\r\n {\r\n "type": "node",\r\n "request": "launch",\r\n "name": "JavaScript Test using SourceMap",\r\n "program": "${workspaceRoot}/test/index.ts",\r\n "cwd": "${workspaceRoot}",\r\n "args": [\r\n //----\r\n // You can run specific test functions\r\n //----\r\n // "--include", "something",\r\n // "--exclude", "nothing",\r\n ],\r\n "outFiles": ["${workspaceRoot}/bin/**/*.js"],\r\n }\r\n ]\r\n}'
|
238
242
|
}, {
|
239
243
|
location: ".vscode",
|
240
244
|
file: "settings.json",
|
241
|
-
content: '{\n "editor.tabSize": 2,\n "editor.formatOnSave": true,\n "[javascript][typescript]": {\n "editor.defaultFormatter": "esbenp.prettier-vscode",\n "editor.codeActionsOnSave": {\n "source.fixAll.eslint": "explicit"\n },\n },\n}'
|
242
|
-
}, {
|
243
|
-
location: "",
|
244
|
-
file: "LICENSE",
|
245
|
-
content: 'MIT License\n\nCopyright (c) 2024 Jeongho Nam\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n'
|
245
|
+
content: '{\r\n "editor.tabSize": 2,\r\n "editor.formatOnSave": true,\r\n "[javascript][typescript]": {\r\n "editor.defaultFormatter": "esbenp.prettier-vscode",\r\n "editor.codeActionsOnSave": {\r\n "source.fixAll.eslint": "explicit"\r\n },\r\n },\r\n}'
|
246
246
|
}, {
|
247
247
|
location: "",
|
248
|
-
file: "
|
249
|
-
content: '
|
248
|
+
file: "hello.js",
|
249
|
+
content: 'function print(command, description) {\r\n return console.log(`\\x1b[1m${command}\\x1b[2m: ${description}\\x1b[0m`);\r\n}\r\n\r\nconsole.log("-----------------------------------------");\r\nconsole.log("\\x1b[7mGenerated by \\x1b[2m@nestia/editor\\x1b[0m");\r\nconsole.log("");\r\nconsole.log(" - \\x1b[36mhttps://nestia.io/docs/editor\\x1b[0m");\r\nconsole.log(" - \\x1b[36mhttps://github.com/samchon/nestia\\x1b[0m");\r\nconsole.log("-----------------------------------------");\r\n\r\nprint("npm run start", "Run only test/start.ts");\r\nprint("npm run test", "Run every test/features/**/*.ts files");\r\nprint("npm run test:simulate", "Test with mockup simulator");\r\n'
|
250
250
|
}, {
|
251
251
|
location: "",
|
252
|
-
file: "
|
253
|
-
content: '
|
252
|
+
file: "LICENSE",
|
253
|
+
content: 'MIT License\r\n\r\nCopyright (c) 2024 Jeongho Nam\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the "Software"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n'
|
254
254
|
}, {
|
255
255
|
location: "",
|
256
256
|
file: "package.json",
|
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": "^
|
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": "^6.0.0",\n "tgrid": "^1.1.0",\n "typia": "^8.0.3"\n },\n "devDependencies": {\n "@nestia/e2e": "^0.8.3",\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.8.2",\n "typescript-transform-paths": "^3.5.5"\n }\n}'
|
258
258
|
}, {
|
259
259
|
location: "",
|
260
260
|
file: "prettier.config.js",
|
261
|
-
content: 'module.exports = {\n // DEFAULT CONFIGURATIONS\n parser: "typescript",\n printWidth: 80,\n semi: true,\n tabWidth: 2,\n trailingComma: "all",\n\n // PLUG-IN CONFIGURATIONS\n plugins: ["@trivago/prettier-plugin-sort-imports"],\n importOrder: ["<THIRD_PARTY_MODULES>", "^[./]"],\n importOrderSeparation: true,\n importOrderSortSpecifiers: true,\n importOrderParserPlugins: ["decorators-legacy", "typescript", "jsx"],\n};\n'
|
261
|
+
content: 'module.exports = {\r\n // DEFAULT CONFIGURATIONS\r\n parser: "typescript",\r\n printWidth: 80,\r\n semi: true,\r\n tabWidth: 2,\r\n trailingComma: "all",\r\n\r\n // PLUG-IN CONFIGURATIONS\r\n plugins: ["@trivago/prettier-plugin-sort-imports"],\r\n importOrder: ["<THIRD_PARTY_MODULES>", "^[./]"],\r\n importOrderSeparation: true,\r\n importOrderSortSpecifiers: true,\r\n importOrderParserPlugins: ["decorators-legacy", "typescript", "jsx"],\r\n};\r\n'
|
262
|
+
}, {
|
263
|
+
location: "",
|
264
|
+
file: "README.md",
|
265
|
+
content: '# Software Development Kit\r\nThis is a SDK library generated by [`@nestia/migrate`](https://nestia.io/docs/migrate) or [`@nestia/editor`](https://nestia.io/docs/editor).\r\n\r\nWith this SDK library, you can easily and safely interact with backend server.\r\n\r\nJust import and call some API functions like gif image below:\r\n\r\n\r\n\r\n> Left is server code, and right is client code utilizing the SDK\r\n\r\n\r\n\r\n\r\n## How to Test\r\n```bash\r\nnpm install\r\nnpm start # run only "test/start.ts" file\r\nnpm run test # everything under the "test/features" directory\r\nnpm run test:simulate # "test/features" with mockup simulation mode\r\n```\r\n\r\nIf you run `npm start` command, only [test/start.ts](test/start.ts) file would be executed.\r\n\r\nOtherwise you run `npm run test` command instead, run everything in the [test/features](test/features) directory.\r\n\r\nFor reference, the [test/features](test/features) directory and E2E test functions (for each API endpoints) would be automatically composed only when you\'ve configured the "E2E test function generation mode" of the `@nestia/migrate` (or `@nestia/editor`).\r\n\r\n```bash\r\nnpm install -g @nestia/migrate\r\nnpx @nestia/migrate\r\n? Migration mode (Use arrow keys):\r\n NestJS\r\n > SDK\r\n? Swagger file location: assets/input/clickhouse.json\r\n? Output directory path: assets/output/clickhouse-sdk-manual\r\n? Mokup Simulator: true\r\n? E2E Test Functions: true\r\n```\r\n\r\n\r\n\r\n\r\n## Deploy\r\n```bash\r\nnpm install\r\nnpm run deploy\r\n```\r\n\r\nJust run `npm run deploy` command, then your SDK library would be published.\r\n\r\nBy the way, the initial package name of this template repository is `@ORGANIZATION/PROJECT-api`. I think it would better to change the word to your own organization and project name. If you\'re utilizing `VsCode`, you can do it through `Edit > Replace in Files` (*Ctrl + Shift + H*) feature.\r\n\r\n-----------\r\n\r\n> ## What [`Nestia`](https://nestia.io) is:\r\n> \r\n> \r\n> [](https://github.com/samchon/nestia/blob/master/LICENSE)\r\n> [](https://www.npmjs.com/package/@nestia/core)\r\n> [](https://www.npmjs.com/package/@nestia/core)\r\n> [](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\r\n> [](https://nestia.io/docs/)\r\n> \r\n> Nestia is a set of helper libraries for NestJS, supporting below features:\r\n> \r\n> - `@nestia/core`: Super-fast decorators\r\n> - `@nestia/sdk`:\r\n> - Swagger generator evolved than ever\r\n> - SDK library generator for clients\r\n> - Mockup Simulator for client applications\r\n> - Automatic E2E test functions generator\r\n> - `@nestia/migrate`: Migration from Swagger to NestJS\r\n> - `@nestia/editor`: Online TypeScript Swagger Editor\r\n> - `nestia`: Just CLI (command line interface) tool\r\n> \r\n>> **Note**\r\n>> \r\n>> - **Only one line** required, with pure TypeScript type\r\n>> - Enhance performance **30x** up\r\n>> - Runtime validator is **20,000x faster** than `class-validator`\r\n>> - JSON serialization is **200x faster** than `class-transformer`\r\n>> - Software Development Kit\r\n>> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://> trpc.io/)\r\n>> - Mockup simulator means embedded backend simulator in SDK\r\n>> - similar with [msw](https://mswjs.io/), but fully automated'
|
262
266
|
}, {
|
263
267
|
location: "",
|
264
268
|
file: "rollup.config.js",
|
265
|
-
content: 'const typescript = require("@rollup/plugin-typescript");\nconst terser = require("@rollup/plugin-terser");\n\nmodule.exports = {\n input: "./src/index.ts",\n output: {\n dir: "lib",\n format: "esm",\n entryFileNames: "[name].mjs",\n sourcemap: true,\n },\n plugins: [\n typescript({\n tsconfig: "tsconfig.json",\n module: "ES2020",\n target: "ES2020",\n }),\n terser({\n format: {\n comments: "some",\n beautify: true,\n ecma: "2020",\n },\n compress: false,\n mangle: false,\n module: true,\n }),\n ],\n};\n'
|
269
|
+
content: 'const typescript = require("@rollup/plugin-typescript");\r\nconst terser = require("@rollup/plugin-terser");\r\n\r\nmodule.exports = {\r\n input: "./src/index.ts",\r\n output: {\r\n dir: "lib",\r\n format: "esm",\r\n entryFileNames: "[name].mjs",\r\n sourcemap: true,\r\n },\r\n plugins: [\r\n typescript({\r\n tsconfig: "tsconfig.json",\r\n module: "ES2020",\r\n target: "ES2020",\r\n }),\r\n terser({\r\n format: {\r\n comments: "some",\r\n beautify: true,\r\n ecma: "2020",\r\n },\r\n compress: false,\r\n mangle: false,\r\n module: true,\r\n }),\r\n ],\r\n};\r\n'
|
266
270
|
}, {
|
267
271
|
location: "src",
|
268
272
|
file: "HttpError.ts",
|
269
|
-
content: 'export { HttpError } from "@nestia/fetcher";\n'
|
273
|
+
content: 'export { HttpError } from "@nestia/fetcher";\r\n'
|
270
274
|
}, {
|
271
275
|
location: "src",
|
272
276
|
file: "IConnection.ts",
|
273
|
-
content: 'export type { IConnection } from "@nestia/fetcher";\n'
|
277
|
+
content: 'export type { IConnection } from "@nestia/fetcher";\r\n'
|
274
278
|
}, {
|
275
279
|
location: "src",
|
276
280
|
file: "index.ts",
|
277
|
-
content: 'import * as api from "./module";\n\nexport * from "./module";\nexport default api;\n'
|
281
|
+
content: 'import * as api from "./module";\r\n\r\nexport * from "./module";\r\nexport default api;\r\n'
|
278
282
|
}, {
|
279
283
|
location: "src",
|
280
284
|
file: "module.ts",
|
281
|
-
content: 'export type * from "./IConnection";\nexport * from "./HttpError";\n\nexport * as functional from "./functional";\n'
|
285
|
+
content: 'export type * from "./IConnection";\r\nexport * from "./HttpError";\r\n\r\nexport * as functional from "./functional";\r\n'
|
282
286
|
}, {
|
283
287
|
location: "",
|
284
288
|
file: "swagger.json",
|
285
|
-
content: '{\n "openapi": "3.0.1",\n "servers": [\n {\n "url": "http://localhost:37001",\n "description": "Local Server"\n }\n ],\n "info": {\n "version": "2.2.0",\n "title": "@samchon/bbs-backend",\n "description": "Backend for bbs",\n "license": {\n "name": "MIT"\n }\n },\n "paths": {\n "/bbs/articles": {\n "patch": {\n "tags": [\n "BBS"\n ],\n "parameters": [],\n "requestBody": {\n "description": "Request info of pagination and searching options.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": "Paginated summarized articles.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IPageIBbsArticle.ISummary"\n }\n }\n }\n }\n },\n "summary": "List up all summarized articles",\n "description": "List up all summarized articles.\\n\\nList up all summarized articles with pagination and searching options."\n },\n "post": {\n "tags": [\n "BBS"\n ],\n "parameters": [],\n "requestBody": {\n "description": "Article information to create.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.ICreate"\n }\n }\n },\n "required": true\n },\n "responses": {\n "201": {\n "description": "Newly created article.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle"\n }\n }\n }\n }\n },\n "summary": "Create a new article",\n "description": "Create a new article.\\n\\nCreate a new article with its first {@link IBbsArticle.ISnapshot snapshot}."\n }\n },\n "/bbs/articles/abridges": {\n "patch": {\n "tags": [\n "BBS"\n ],\n "parameters": [],\n "requestBody": {\n "description": "Request info of pagination and searching options.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": "Paginated abridged articles.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IPageIBbsArticle.IAbridge"\n }\n }\n }\n }\n },\n "summary": "List up all abridged articles",\n "description": "List up all abridged articles.\\n\\nList up all abridged articles with pagination and searching options."\n }\n },\n "/bbs/articles/{id}": {\n "get": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target article\'s ",\n "required": true\n }\n ],\n "responses": {\n "200": {\n "description": "Article information",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle"\n }\n }\n }\n }\n },\n "summary": "Read individual article",\n "description": "Read individual article.\\n\\nReads an article with its every {@link IBbsArticle.ISnapshot snapshots}."\n },\n "put": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target article\'s ",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Article information to update.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.IUpdate"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": "Newly accumulated snapshot information.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\n }\n }\n }\n }\n },\n "summary": "Update an article",\n "description": "Update an article.\\n\\nAccumulate a new {@link IBbsArticle.ISnapshot snapshot} record to the article."\n },\n "delete": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target article\'s ",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Password of the article.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticle.IErase"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": ""\n }\n },\n "summary": "Erase an article",\n "description": "Erase an article.\\n\\nPerforms soft deletion to the article."\n }\n },\n "/bbs/articles/{articleId}/comments": {\n "patch": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "articleId",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Request info of pagination and searching options.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": "Paginated summarized comments.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IPageIBbsArticleComment"\n }\n }\n }\n }\n },\n "summary": "List up all summarized comments",\n "description": "List up all summarized comments.\\n\\nList up all summarized comments with pagination and searching options."\n },\n "post": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "articleId",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Belonged article\'s ",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Comment information to create.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment.ICreate"\n }\n }\n },\n "required": true\n },\n "responses": {\n "201": {\n "description": "Newly created comment.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment"\n }\n }\n }\n }\n },\n "summary": "Create a new comment",\n "description": "Create a new comment.\\n\\nCreate a new comment with its first {@link IBbsArticleComment.ISnapshot snapshot}."\n }\n },\n "/bbs/articles/{articleId}/comments/{id}": {\n "get": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "articleId",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Belonged article\'s ",\n "required": true\n },\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target comment\'s ",\n "required": true\n }\n ],\n "responses": {\n "200": {\n "description": "Comment information",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment"\n }\n }\n }\n }\n },\n "summary": "Read individual comment",\n "description": "Read individual comment.\\n\\nReads a comment with its every {@link IBbsArticleComment.ISnapshot snapshots}."\n },\n "put": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "articleId",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Belonged article\'s ",\n "required": true\n },\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target comment\'s ",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Comment information to update.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment.IUpdate"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": "Newly accumulated snapshot information.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\n }\n }\n }\n }\n },\n "summary": "Update a comment",\n "description": "Update a comment.\\n\\nAccumulate a new {@link IBbsArticleComment.ISnapshot snapshot} record to the comment."\n },\n "delete": {\n "tags": [\n "BBS"\n ],\n "parameters": [\n {\n "name": "articleId",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Belonged article\'s ",\n "required": true\n },\n {\n "name": "id",\n "in": "path",\n "schema": {\n "type": "string",\n "format": "uuid"\n },\n "description": "Target comment\'s ",\n "required": true\n }\n ],\n "requestBody": {\n "description": "Password of the comment.",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IBbsArticleComment.IErase"\n }\n }\n },\n "required": true\n },\n "responses": {\n "200": {\n "description": ""\n }\n },\n "summary": "Erase a comment",\n "description": "Erase a comment.\\n\\nPerforms soft deletion to the comment."\n }\n },\n "/monitors/health": {\n "get": {\n "tags": [\n "Monitor"\n ],\n "parameters": [],\n "responses": {\n "200": {\n "description": ""\n }\n },\n "summary": "Health check API",\n "description": "Health check API."\n }\n },\n "/monitors/performance": {\n "get": {\n "tags": [\n "Monitor"\n ],\n "parameters": [],\n "responses": {\n "200": {\n "description": "Performance info",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/IPerformance"\n }\n }\n }\n }\n },\n "summary": "Get performance information",\n "description": "Get performance information.\\n\\nGet perofmration information composed with CPU, memory and resource usage."\n }\n },\n "/monitors/system": {\n "get": {\n "tags": [\n "Monitor"\n ],\n "parameters": [],\n "responses": {\n "200": {\n "description": "System info",\n "content": {\n "application/json": {\n "schema": {\n "$ref": "#/components/schemas/ISystem"\n }\n }\n }\n }\n },\n "summary": "Get system information",\n "description": "Get system information.\\n\\nGet system information with commit and package information."\n }\n }\n },\n "components": {\n "schemas": {\n "IBbsArticle.IRequest": {\n "type": "object",\n "properties": {\n "search": {\n "$ref": "#/components/schemas/IBbsArticle.IRequest.ISearch",\n "title": "Search condition",\n "description": "Search condition."\n },\n "sort": {\n "type": "array",\n "items": {\n "type": "string",\n "enum": [\n "+created_at",\n "+title",\n "+updated_at",\n "+writer",\n "-created_at",\n "-title",\n "-updated_at",\n "-writer"\n ]\n },\n "title": "Sort condition",\n "description": "Sort condition."\n },\n "page": {\n "type": "integer",\n "title": "Page number",\n "description": "Page number."\n },\n "limit": {\n "type": "integer",\n "default": 100,\n "title": "Limitation of records per a page",\n "description": "Limitation of records per a page."\n }\n },\n "nullable": false\n },\n "IBbsArticle.IRequest.ISearch": {\n "type": "object",\n "properties": {\n "writer": {\n "type": "string"\n },\n "title": {\n "type": "string"\n },\n "body": {\n "type": "string"\n },\n "title_or_body": {\n "type": "string"\n },\n "from": {\n "type": "string",\n "format": "date-time"\n },\n "to": {\n "type": "string",\n "format": "date-time"\n }\n },\n "nullable": false,\n "description": "검색 정보."\n },\n "IPageIBbsArticle.ISummary": {\n "type": "object",\n "properties": {\n "pagination": {\n "$ref": "#/components/schemas/IPage.IPagination",\n "title": "Page information",\n "description": "Page information."\n },\n "data": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IBbsArticle.ISummary"\n },\n "title": "List of records",\n "description": "List of records."\n }\n },\n "nullable": false,\n "required": [\n "pagination",\n "data"\n ],\n "description": "A page.\\n\\nCollection of records with pagination indformation."\n },\n "IPage.IPagination": {\n "type": "object",\n "properties": {\n "current": {\n "type": "integer",\n "title": "Current page number",\n "description": "Current page number."\n },\n "limit": {\n "type": "integer",\n "default": 100,\n "title": "Limitation of records per a page",\n "description": "Limitation of records per a page."\n },\n "records": {\n "type": "integer",\n "title": "Total records in the database",\n "description": "Total records in the database."\n },\n "pages": {\n "type": "integer",\n "title": "Total pages",\n "description": "Total pages.\\n\\nEqual to {@link records } / {@link limit } with ceiling."\n }\n },\n "nullable": false,\n "required": [\n "current",\n "limit",\n "records",\n "pages"\n ],\n "description": "Page information."\n },\n "IBbsArticle.ISummary": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "writer": {\n "type": "string",\n "title": "Writer of the article",\n "description": "Writer of the article."\n },\n "title": {\n "type": "string",\n "title": "Title of the last snapshot",\n "description": "Title of the last snapshot."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of the article",\n "description": "Creation time of the article."\n },\n "updated_at": {\n "type": "string",\n "format": "date-time",\n "title": "Modification time of the article",\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "writer",\n "title",\n "created_at",\n "updated_at"\n ],\n "description": "Summarized information of the article."\n },\n "IPageIBbsArticle.IAbridge": {\n "type": "object",\n "properties": {\n "pagination": {\n "$ref": "#/components/schemas/IPage.IPagination",\n "title": "Page information",\n "description": "Page information."\n },\n "data": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IBbsArticle.IAbridge"\n },\n "title": "List of records",\n "description": "List of records."\n }\n },\n "nullable": false,\n "required": [\n "pagination",\n "data"\n ],\n "description": "A page.\\n\\nCollection of records with pagination indformation."\n },\n "IBbsArticle.IAbridge": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "writer": {\n "type": "string",\n "title": "Writer of the article",\n "description": "Writer of the article."\n },\n "title": {\n "type": "string",\n "title": "Title of the last snapshot",\n "description": "Title of the last snapshot."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of the article",\n "description": "Creation time of the article."\n },\n "updated_at": {\n "type": "string",\n "format": "date-time",\n "title": "Modification time of the article",\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\n },\n "format": {\n "$ref": "#/components/schemas/IBbsArticle.Format",\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "body": {\n "type": "string",\n "title": "Content body of article",\n "description": "Content body of article."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "writer",\n "title",\n "created_at",\n "updated_at",\n "format",\n "body",\n "files"\n ],\n "description": "Abriged information of the article."\n },\n "IBbsArticle.Format": {\n "type": "string",\n "enum": [\n "txt",\n "md",\n "html"\n ]\n },\n "IAttachmentFile.ICreate": {\n "type": "object",\n "properties": {\n "name": {\n "type": "string",\n "maxLength": 255,\n "title": "File name, except extension",\n "description": "File name, except extension."\n },\n "extension": {\n "type": "string",\n "maxLength": 8,\n "minLength": 1,\n "nullable": true,\n "title": "Extension",\n "description": "Extension.\\n\\nPossible to omit like `README` case."\n },\n "url": {\n "type": "string",\n "format": "uri",\n "title": "URL path of the real file",\n "description": "URL path of the real file."\n }\n },\n "nullable": false,\n "required": [\n "name",\n "extension",\n "url"\n ]\n },\n "IBbsArticle": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "writer": {\n "type": "string",\n "title": "Writer of article",\n "description": "Writer of article."\n },\n "snapshots": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\n },\n "minItems": 1,\n "title": "List of snapshot contents",\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when an article is created, and is\\naccumulated every time the article is modified."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of article",\n "description": "Creation time of article."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "writer",\n "snapshots",\n "created_at"\n ],\n "description": "Article entity.\\n\\n`IBbsArticle* is a super-type entity of all kinds of articles in the current\\nbackend system, literally shaping individual articles of the bulletin board.\\n\\nAnd, as you can see, the elements that must inevitably exist in the article,\\nsuch as the `title` or the `body`, do not exist in the `IBbsArticle`, but exist\\nin the subsidiary entity, {@link IBbsArticle.ISnapshot }, as a 1: N relationship,\\nwhich is because a new snapshot record is published every time the article is\\nmodified.\\n\\nThe reason why a new snapshot record is published every time the article is\\nmodified is to preserve the evidence. Due to the nature of e-community, there\\nis always a threat of dispute among the participants. And it can happen that\\ndisputes arise through articles or {@link IBbsArticleComment comments}, and to\\nprevent such things as modifying existing articles to manipulate the situation,\\nthe article is designed in this structure.\\n\\nIn other words, to keep evidence, and prevent fraud."\n },\n "IBbsArticle.ISnapshot": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of snapshot record",\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or article."\n },\n "format": {\n "$ref": "#/components/schemas/IBbsArticle.Format",\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "body": {\n "type": "string",\n "title": "Content body of article",\n "description": "Content body of article."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n },\n "title": {\n "type": "string",\n "title": "Title of article",\n "description": "Title of article."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "created_at",\n "format",\n "body",\n "files",\n "title"\n ],\n "description": "Snapshot of article.\\n\\n`IBbsArticle.ISnapshot` is a snapshot entity that contains the contents of\\nthe article, as mentioned in {@link IBbsArticle }, the contents of the article\\nare separated from the article record to keep evidence and prevent fraud."\n },\n "IBbsArticle.ICreate": {\n "type": "object",\n "properties": {\n "writer": {\n "type": "string"\n },\n "format": {\n "type": "string",\n "enum": [\n "html",\n "md",\n "txt"\n ],\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "title": {\n "type": "string",\n "title": "Title of article",\n "description": "Title of article."\n },\n "body": {\n "type": "string",\n "title": "Content body of article",\n "description": "Content body of article."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n },\n "password": {\n "type": "string",\n "title": "Password for modification",\n "description": "Password for modification."\n }\n },\n "nullable": false,\n "required": [\n "writer",\n "format",\n "title",\n "body",\n "files",\n "password"\n ],\n "description": "Store content type of the article."\n },\n "IBbsArticle.IUpdate": {\n "type": "object",\n "properties": {\n "format": {\n "type": "string",\n "enum": [\n "html",\n "md",\n "txt"\n ],\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "title": {\n "type": "string",\n "title": "Title of article",\n "description": "Title of article."\n },\n "body": {\n "type": "string",\n "title": "Content body of article",\n "description": "Content body of article."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n },\n "password": {\n "type": "string",\n "title": "Password for modification",\n "description": "Password for modification."\n }\n },\n "nullable": false,\n "required": [\n "format",\n "title",\n "body",\n "files",\n "password"\n ]\n },\n "IBbsArticle.IErase": {\n "type": "object",\n "properties": {\n "password": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "password"\n ]\n },\n "IBbsArticleComment.IRequest": {\n "type": "object",\n "properties": {\n "search": {\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest.ISearch"\n },\n "sort": {\n "type": "array",\n "items": {\n "type": "string",\n "enum": [\n "+created_at",\n "+writer",\n "-created_at",\n "-writer"\n ]\n }\n },\n "page": {\n "type": "integer",\n "title": "Page number",\n "description": "Page number."\n },\n "limit": {\n "type": "integer",\n "default": 100,\n "title": "Limitation of records per a page",\n "description": "Limitation of records per a page."\n }\n },\n "nullable": false\n },\n "IBbsArticleComment.IRequest.ISearch": {\n "type": "object",\n "properties": {\n "writer": {\n "type": "string"\n },\n "body": {\n "type": "string"\n }\n },\n "nullable": false\n },\n "IPageIBbsArticleComment": {\n "type": "object",\n "properties": {\n "pagination": {\n "$ref": "#/components/schemas/IPage.IPagination",\n "title": "Page information",\n "description": "Page information."\n },\n "data": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IBbsArticleComment"\n },\n "title": "List of records",\n "description": "List of records."\n }\n },\n "nullable": false,\n "required": [\n "pagination",\n "data"\n ],\n "description": "A page.\\n\\nCollection of records with pagination indformation."\n },\n "IBbsArticleComment": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "parent_id": {\n "type": "string",\n "format": "uuid",\n "nullable": true,\n "title": "Parent comment\'s ID",\n "description": "Parent comment\'s ID."\n },\n "writer": {\n "type": "string",\n "title": "Writer of comment",\n "description": "Writer of comment."\n },\n "snapshots": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\n },\n "minItems": 1,\n "title": "List of snapshot contents",\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when a comment being created, and is\\naccumulated every time the comment is modified."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of comment",\n "description": "Creation time of comment."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "parent_id",\n "writer",\n "snapshots",\n "created_at"\n ],\n "description": "Comment written on an article.\\n\\n`IBbsArticleComment` is an entity that shapes the comments written on an article.\\n\\nAnd for this comment, as in the previous relationship between\\n{@link IBbsArticle } and {@link IBbsArticle.ISnapshot }, the content body of the\\ncomment is stored in the sub {@link IBbsArticleComment.ISnapshot } table for\\nevidentialism, and a new snapshot record is issued every time the comment is modified.\\n\\nAlso, `IBbsArticleComment` is expressing the relationship of the hierarchical reply\\nstructure through the {@link IBbsArticleComment.parent_id } attribute."\n },\n "IBbsArticleComment.ISnapshot": {\n "type": "object",\n "properties": {\n "id": {\n "type": "string",\n "format": "uuid",\n "title": "Primary Key",\n "description": "Primary Key."\n },\n "created_at": {\n "type": "string",\n "format": "date-time",\n "title": "Creation time of snapshot record",\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or comment."\n },\n "format": {\n "$ref": "#/components/schemas/IBbsArticleComment.Format",\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "body": {\n "type": "string",\n "title": "Content body of comment",\n "description": "Content body of comment."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n }\n },\n "nullable": false,\n "required": [\n "id",\n "created_at",\n "format",\n "body",\n "files"\n ],\n "description": "Snapshot of comment.\\n\\n`IBbsArticleComment.ISnapshot` is a snapshot entity that contains\\nthe contents of the comment.\\n\\nAs mentioned in {@link IBbsArticleComment }, designed to keep evidence\\nand prevent fraud."\n },\n "IBbsArticleComment.Format": {\n "type": "string",\n "enum": [\n "txt",\n "md",\n "html"\n ]\n },\n "IBbsArticleComment.ICreate": {\n "type": "object",\n "properties": {\n "writer": {\n "type": "string",\n "title": "Writer of comment",\n "description": "Writer of comment."\n },\n "format": {\n "type": "string",\n "enum": [\n "html",\n "md",\n "txt"\n ],\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "body": {\n "type": "string",\n "title": "Content body of comment",\n "description": "Content body of comment."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n },\n "password": {\n "type": "string",\n "title": "Password for modification",\n "description": "Password for modification."\n }\n },\n "nullable": false,\n "required": [\n "writer",\n "format",\n "body",\n "files",\n "password"\n ]\n },\n "IBbsArticleComment.IUpdate": {\n "type": "object",\n "properties": {\n "format": {\n "type": "string",\n "enum": [\n "html",\n "md",\n "txt"\n ],\n "title": "Format of body",\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\n },\n "body": {\n "type": "string",\n "title": "Content body of comment",\n "description": "Content body of comment."\n },\n "files": {\n "type": "array",\n "items": {\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\n },\n "title": "List of attachment files",\n "description": "List of attachment files."\n },\n "password": {\n "type": "string",\n "title": "Password for modification",\n "description": "Password for modification."\n }\n },\n "nullable": false,\n "required": [\n "format",\n "body",\n "files",\n "password"\n ]\n },\n "IBbsArticleComment.IErase": {\n "type": "object",\n "properties": {\n "password": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "password"\n ]\n },\n "IPerformance": {\n "type": "object",\n "properties": {\n "cpu": {\n "$ref": "#/components/schemas/process.global.NodeJS.CpuUsage"\n },\n "memory": {\n "$ref": "#/components/schemas/process.global.NodeJS.MemoryUsage"\n },\n "resource": {\n "$ref": "#/components/schemas/process.global.NodeJS.ResourceUsage"\n }\n },\n "nullable": false,\n "required": [\n "cpu",\n "memory",\n "resource"\n ]\n },\n "process.global.NodeJS.CpuUsage": {\n "type": "object",\n "properties": {\n "user": {\n "type": "number"\n },\n "system": {\n "type": "number"\n }\n },\n "nullable": false,\n "required": [\n "user",\n "system"\n ]\n },\n "process.global.NodeJS.MemoryUsage": {\n "type": "object",\n "properties": {\n "rss": {\n "type": "number"\n },\n "heapTotal": {\n "type": "number"\n },\n "heapUsed": {\n "type": "number"\n },\n "external": {\n "type": "number"\n },\n "arrayBuffers": {\n "type": "number"\n }\n },\n "nullable": false,\n "required": [\n "rss",\n "heapTotal",\n "heapUsed",\n "external",\n "arrayBuffers"\n ]\n },\n "process.global.NodeJS.ResourceUsage": {\n "type": "object",\n "properties": {\n "fsRead": {\n "type": "number"\n },\n "fsWrite": {\n "type": "number"\n },\n "involuntaryContextSwitches": {\n "type": "number"\n },\n "ipcReceived": {\n "type": "number"\n },\n "ipcSent": {\n "type": "number"\n },\n "majorPageFault": {\n "type": "number"\n },\n "maxRSS": {\n "type": "number"\n },\n "minorPageFault": {\n "type": "number"\n },\n "sharedMemorySize": {\n "type": "number"\n },\n "signalsCount": {\n "type": "number"\n },\n "swappedOut": {\n "type": "number"\n },\n "systemCPUTime": {\n "type": "number"\n },\n "unsharedDataSize": {\n "type": "number"\n },\n "unsharedStackSize": {\n "type": "number"\n },\n "userCPUTime": {\n "type": "number"\n },\n "voluntaryContextSwitches": {\n "type": "number"\n }\n },\n "nullable": false,\n "required": [\n "fsRead",\n "fsWrite",\n "involuntaryContextSwitches",\n "ipcReceived",\n "ipcSent",\n "majorPageFault",\n "maxRSS",\n "minorPageFault",\n "sharedMemorySize",\n "signalsCount",\n "swappedOut",\n "systemCPUTime",\n "unsharedDataSize",\n "unsharedStackSize",\n "userCPUTime",\n "voluntaryContextSwitches"\n ]\n },\n "ISystem": {\n "type": "object",\n "properties": {\n "uid": {\n "type": "number",\n "title": "Random Unique ID",\n "description": "Random Unique ID."\n },\n "arguments": {\n "type": "array",\n "items": {\n "type": "string"\n },\n "description": "`process.argv`"\n },\n "commit": {\n "$ref": "#/components/schemas/ISystem.ICommit",\n "title": "Git commit info",\n "description": "Git commit info."\n },\n "package": {\n "$ref": "#/components/schemas/ISystem.IPackage",\n "description": "`package.json`"\n },\n "created_at": {\n "type": "string",\n "title": "Creation time of this server",\n "description": "Creation time of this server."\n }\n },\n "nullable": false,\n "required": [\n "uid",\n "arguments",\n "commit",\n "package",\n "created_at"\n ],\n "description": "System Information."\n },\n "ISystem.ICommit": {\n "type": "object",\n "properties": {\n "shortHash": {\n "type": "string"\n },\n "branch": {\n "type": "string"\n },\n "hash": {\n "type": "string"\n },\n "subject": {\n "type": "string"\n },\n "sanitizedSubject": {\n "type": "string"\n },\n "body": {\n "type": "string"\n },\n "author": {\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\n },\n "committer": {\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\n },\n "authored_at": {\n "type": "string"\n },\n "commited_at": {\n "type": "string"\n },\n "notes": {\n "type": "string"\n },\n "tags": {\n "type": "array",\n "items": {\n "type": "string"\n }\n }\n },\n "nullable": false,\n "required": [\n "shortHash",\n "branch",\n "hash",\n "subject",\n "sanitizedSubject",\n "body",\n "author",\n "committer",\n "authored_at",\n "commited_at",\n "tags"\n ],\n "description": "Git commit info."\n },\n "ISystem.ICommit.IUser": {\n "type": "object",\n "properties": {\n "name": {\n "type": "string"\n },\n "email": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "name",\n "email"\n ],\n "description": "Git user account info."\n },\n "ISystem.IPackage": {\n "type": "object",\n "properties": {\n "name": {\n "type": "string"\n },\n "version": {\n "type": "string"\n },\n "description": {\n "type": "string"\n },\n "main": {\n "type": "string"\n },\n "typings": {\n "type": "string"\n },\n "scripts": {\n "$ref": "#/components/schemas/Recordstringstring"\n },\n "repository": {\n "type": "object",\n "properties": {\n "type": {\n "type": "string",\n "enum": [\n "git"\n ]\n },\n "url": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "type",\n "url"\n ]\n },\n "author": {\n "type": "string"\n },\n "license": {\n "type": "string"\n },\n "bugs": {\n "type": "object",\n "properties": {\n "url": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "url"\n ]\n },\n "homepage": {\n "type": "string"\n },\n "devDependencies": {\n "$ref": "#/components/schemas/Recordstringstring"\n },\n "dependencies": {\n "$ref": "#/components/schemas/Recordstringstring"\n },\n "publishConfig": {\n "type": "object",\n "properties": {\n "registry": {\n "type": "string"\n }\n },\n "nullable": false,\n "required": [\n "registry"\n ]\n },\n "files": {\n "type": "array",\n "items": {\n "type": "string"\n }\n }\n },\n "nullable": false,\n "required": [\n "name",\n "version",\n "description",\n "scripts",\n "repository",\n "author",\n "license",\n "bugs",\n "homepage",\n "dependencies"\n ],\n "description": "NPM package info."\n },\n "Recordstringstring": {\n "type": "object",\n "properties": {},\n "nullable": false,\n "description": "Construct a type with a set of properties K of type T"\n }\n }\n }\n}'
|
286
|
-
}, {
|
287
|
-
location: "test",
|
288
|
-
file: "TestGlobal.ts",
|
289
|
-
content: 'import api from "@ORGANIZATION/PROJECT-api";\n\nexport namespace TestGlobal {\n export const connection = (): api.IConnection => ({\n host: `http://127.0.0.1:37001`,\n });\n}\n'
|
289
|
+
content: '{\r\n "openapi": "3.0.1",\r\n "servers": [\r\n {\r\n "url": "http://localhost:37001",\r\n "description": "Local Server"\r\n }\r\n ],\r\n "info": {\r\n "version": "2.2.0",\r\n "title": "@samchon/bbs-backend",\r\n "description": "Backend for bbs",\r\n "license": {\r\n "name": "MIT"\r\n }\r\n },\r\n "paths": {\r\n "/bbs/articles": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated summarized articles.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticle.ISummary"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all summarized articles",\r\n "description": "List up all summarized articles.\\n\\nList up all summarized articles with pagination and searching options."\r\n },\r\n "post": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Article information to create.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.ICreate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "201": {\r\n "description": "Newly created article.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Create a new article",\r\n "description": "Create a new article.\\n\\nCreate a new article with its first {@link IBbsArticle.ISnapshot snapshot}."\r\n }\r\n },\r\n "/bbs/articles/abridges": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated abridged articles.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticle.IAbridge"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all abridged articles",\r\n "description": "List up all abridged articles.\\n\\nList up all abridged articles with pagination and searching options."\r\n }\r\n },\r\n "/bbs/articles/{id}": {\r\n "get": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "responses": {\r\n "200": {\r\n "description": "Article information",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Read individual article",\r\n "description": "Read individual article.\\n\\nReads an article with its every {@link IBbsArticle.ISnapshot snapshots}."\r\n },\r\n "put": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Article information to update.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IUpdate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Newly accumulated snapshot information.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Update an article",\r\n "description": "Update an article.\\n\\nAccumulate a new {@link IBbsArticle.ISnapshot snapshot} record to the article."\r\n },\r\n "delete": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Password of the article.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IErase"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Erase an article",\r\n "description": "Erase an article.\\n\\nPerforms soft deletion to the article."\r\n }\r\n },\r\n "/bbs/articles/{articleId}/comments": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated summarized comments.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all summarized comments",\r\n "description": "List up all summarized comments.\\n\\nList up all summarized comments with pagination and searching options."\r\n },\r\n "post": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Comment information to create.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ICreate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "201": {\r\n "description": "Newly created comment.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Create a new comment",\r\n "description": "Create a new comment.\\n\\nCreate a new comment with its first {@link IBbsArticleComment.ISnapshot snapshot}."\r\n }\r\n },\r\n "/bbs/articles/{articleId}/comments/{id}": {\r\n "get": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "responses": {\r\n "200": {\r\n "description": "Comment information",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Read individual comment",\r\n "description": "Read individual comment.\\n\\nReads a comment with its every {@link IBbsArticleComment.ISnapshot snapshots}."\r\n },\r\n "put": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Comment information to update.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IUpdate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Newly accumulated snapshot information.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Update a comment",\r\n "description": "Update a comment.\\n\\nAccumulate a new {@link IBbsArticleComment.ISnapshot snapshot} record to the comment."\r\n },\r\n "delete": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Password of the comment.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IErase"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Erase a comment",\r\n "description": "Erase a comment.\\n\\nPerforms soft deletion to the comment."\r\n }\r\n },\r\n "/monitors/health": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Health check API",\r\n "description": "Health check API."\r\n }\r\n },\r\n "/monitors/performance": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": "Performance info",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPerformance"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Get performance information",\r\n "description": "Get performance information.\\n\\nGet perofmration information composed with CPU, memory and resource usage."\r\n }\r\n },\r\n "/monitors/system": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": "System info",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/ISystem"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Get system information",\r\n "description": "Get system information.\\n\\nGet system information with commit and package information."\r\n }\r\n }\r\n },\r\n "components": {\r\n "schemas": {\r\n "IBbsArticle.IRequest": {\r\n "type": "object",\r\n "properties": {\r\n "search": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest.ISearch",\r\n "title": "Search condition",\r\n "description": "Search condition."\r\n },\r\n "sort": {\r\n "type": "array",\r\n "items": {\r\n "type": "string",\r\n "enum": [\r\n "+created_at",\r\n "+title",\r\n "+updated_at",\r\n "+writer",\r\n "-created_at",\r\n "-title",\r\n "-updated_at",\r\n "-writer"\r\n ]\r\n },\r\n "title": "Sort condition",\r\n "description": "Sort condition."\r\n },\r\n "page": {\r\n "type": "integer",\r\n "title": "Page number",\r\n "description": "Page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IBbsArticle.IRequest.ISearch": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "title": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n },\r\n "title_or_body": {\r\n "type": "string"\r\n },\r\n "from": {\r\n "type": "string",\r\n "format": "date-time"\r\n },\r\n "to": {\r\n "type": "string",\r\n "format": "date-time"\r\n }\r\n },\r\n "nullable": false,\r\n "description": "검색 정보."\r\n },\r\n "IPageIBbsArticle.ISummary": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISummary"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IPage.IPagination": {\r\n "type": "object",\r\n "properties": {\r\n "current": {\r\n "type": "integer",\r\n "title": "Current page number",\r\n "description": "Current page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n },\r\n "records": {\r\n "type": "integer",\r\n "title": "Total records in the database",\r\n "description": "Total records in the database."\r\n },\r\n "pages": {\r\n "type": "integer",\r\n "title": "Total pages",\r\n "description": "Total pages.\\n\\nEqual to {@link records } / {@link limit } with ceiling."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "current",\r\n "limit",\r\n "records",\r\n "pages"\r\n ],\r\n "description": "Page information."\r\n },\r\n "IBbsArticle.ISummary": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of the article",\r\n "description": "Writer of the article."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of the last snapshot",\r\n "description": "Title of the last snapshot."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of the article",\r\n "description": "Creation time of the article."\r\n },\r\n "updated_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Modification time of the article",\r\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "title",\r\n "created_at",\r\n "updated_at"\r\n ],\r\n "description": "Summarized information of the article."\r\n },\r\n "IPageIBbsArticle.IAbridge": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.IAbridge"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IBbsArticle.IAbridge": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of the article",\r\n "description": "Writer of the article."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of the last snapshot",\r\n "description": "Title of the last snapshot."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of the article",\r\n "description": "Creation time of the article."\r\n },\r\n "updated_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Modification time of the article",\r\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticle.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "title",\r\n "created_at",\r\n "updated_at",\r\n "format",\r\n "body",\r\n "files"\r\n ],\r\n "description": "Abriged information of the article."\r\n },\r\n "IBbsArticle.Format": {\r\n "type": "string",\r\n "enum": [\r\n "txt",\r\n "md",\r\n "html"\r\n ]\r\n },\r\n "IAttachmentFile.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string",\r\n "maxLength": 255,\r\n "title": "File name, except extension",\r\n "description": "File name, except extension."\r\n },\r\n "extension": {\r\n "type": "string",\r\n "maxLength": 8,\r\n "minLength": 1,\r\n "nullable": true,\r\n "title": "Extension",\r\n "description": "Extension.\\n\\nPossible to omit like `README` case."\r\n },\r\n "url": {\r\n "type": "string",\r\n "format": "uri",\r\n "title": "URL path of the real file",\r\n "description": "URL path of the real file."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "extension",\r\n "url"\r\n ]\r\n },\r\n "IBbsArticle": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of article",\r\n "description": "Writer of article."\r\n },\r\n "snapshots": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\r\n },\r\n "minItems": 1,\r\n "title": "List of snapshot contents",\r\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when an article is created, and is\\naccumulated every time the article is modified."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of article",\r\n "description": "Creation time of article."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "snapshots",\r\n "created_at"\r\n ],\r\n "description": "Article entity.\\n\\n`IBbsArticle* is a super-type entity of all kinds of articles in the current\\nbackend system, literally shaping individual articles of the bulletin board.\\n\\nAnd, as you can see, the elements that must inevitably exist in the article,\\nsuch as the `title` or the `body`, do not exist in the `IBbsArticle`, but exist\\nin the subsidiary entity, {@link IBbsArticle.ISnapshot }, as a 1: N relationship,\\nwhich is because a new snapshot record is published every time the article is\\nmodified.\\n\\nThe reason why a new snapshot record is published every time the article is\\nmodified is to preserve the evidence. Due to the nature of e-community, there\\nis always a threat of dispute among the participants. And it can happen that\\ndisputes arise through articles or {@link IBbsArticleComment comments}, and to\\nprevent such things as modifying existing articles to manipulate the situation,\\nthe article is designed in this structure.\\n\\nIn other words, to keep evidence, and prevent fraud."\r\n },\r\n "IBbsArticle.ISnapshot": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of snapshot record",\r\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or article."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticle.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "created_at",\r\n "format",\r\n "body",\r\n "files",\r\n "title"\r\n ],\r\n "description": "Snapshot of article.\\n\\n`IBbsArticle.ISnapshot` is a snapshot entity that contains the contents of\\nthe article, as mentioned in {@link IBbsArticle }, the contents of the article\\nare separated from the article record to keep evidence and prevent fraud."\r\n },\r\n "IBbsArticle.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "writer",\r\n "format",\r\n "title",\r\n "body",\r\n "files",\r\n "password"\r\n ],\r\n "description": "Store content type of the article."\r\n },\r\n "IBbsArticle.IUpdate": {\r\n "type": "object",\r\n "properties": {\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "format",\r\n "title",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticle.IErase": {\r\n "type": "object",\r\n "properties": {\r\n "password": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IRequest": {\r\n "type": "object",\r\n "properties": {\r\n "search": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest.ISearch"\r\n },\r\n "sort": {\r\n "type": "array",\r\n "items": {\r\n "type": "string",\r\n "enum": [\r\n "+created_at",\r\n "+writer",\r\n "-created_at",\r\n "-writer"\r\n ]\r\n }\r\n },\r\n "page": {\r\n "type": "integer",\r\n "title": "Page number",\r\n "description": "Page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IBbsArticleComment.IRequest.ISearch": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IPageIBbsArticleComment": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IBbsArticleComment": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "parent_id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "nullable": true,\r\n "title": "Parent comment\'s ID",\r\n "description": "Parent comment\'s ID."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of comment",\r\n "description": "Writer of comment."\r\n },\r\n "snapshots": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\r\n },\r\n "minItems": 1,\r\n "title": "List of snapshot contents",\r\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when a comment being created, and is\\naccumulated every time the comment is modified."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of comment",\r\n "description": "Creation time of comment."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "parent_id",\r\n "writer",\r\n "snapshots",\r\n "created_at"\r\n ],\r\n "description": "Comment written on an article.\\n\\n`IBbsArticleComment` is an entity that shapes the comments written on an article.\\n\\nAnd for this comment, as in the previous relationship between\\n{@link IBbsArticle } and {@link IBbsArticle.ISnapshot }, the content body of the\\ncomment is stored in the sub {@link IBbsArticleComment.ISnapshot } table for\\nevidentialism, and a new snapshot record is issued every time the comment is modified.\\n\\nAlso, `IBbsArticleComment` is expressing the relationship of the hierarchical reply\\nstructure through the {@link IBbsArticleComment.parent_id } attribute."\r\n },\r\n "IBbsArticleComment.ISnapshot": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of snapshot record",\r\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or comment."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "created_at",\r\n "format",\r\n "body",\r\n "files"\r\n ],\r\n "description": "Snapshot of comment.\\n\\n`IBbsArticleComment.ISnapshot` is a snapshot entity that contains\\nthe contents of the comment.\\n\\nAs mentioned in {@link IBbsArticleComment }, designed to keep evidence\\nand prevent fraud."\r\n },\r\n "IBbsArticleComment.Format": {\r\n "type": "string",\r\n "enum": [\r\n "txt",\r\n "md",\r\n "html"\r\n ]\r\n },\r\n "IBbsArticleComment.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of comment",\r\n "description": "Writer of comment."\r\n },\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "writer",\r\n "format",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IUpdate": {\r\n "type": "object",\r\n "properties": {\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "format",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IErase": {\r\n "type": "object",\r\n "properties": {\r\n "password": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "password"\r\n ]\r\n },\r\n "IPerformance": {\r\n "type": "object",\r\n "properties": {\r\n "cpu": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.CpuUsage"\r\n },\r\n "memory": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.MemoryUsage"\r\n },\r\n "resource": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.ResourceUsage"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "cpu",\r\n "memory",\r\n "resource"\r\n ]\r\n },\r\n "process.global.NodeJS.CpuUsage": {\r\n "type": "object",\r\n "properties": {\r\n "user": {\r\n "type": "number"\r\n },\r\n "system": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "user",\r\n "system"\r\n ]\r\n },\r\n "process.global.NodeJS.MemoryUsage": {\r\n "type": "object",\r\n "properties": {\r\n "rss": {\r\n "type": "number"\r\n },\r\n "heapTotal": {\r\n "type": "number"\r\n },\r\n "heapUsed": {\r\n "type": "number"\r\n },\r\n "external": {\r\n "type": "number"\r\n },\r\n "arrayBuffers": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "rss",\r\n "heapTotal",\r\n "heapUsed",\r\n "external",\r\n "arrayBuffers"\r\n ]\r\n },\r\n "process.global.NodeJS.ResourceUsage": {\r\n "type": "object",\r\n "properties": {\r\n "fsRead": {\r\n "type": "number"\r\n },\r\n "fsWrite": {\r\n "type": "number"\r\n },\r\n "involuntaryContextSwitches": {\r\n "type": "number"\r\n },\r\n "ipcReceived": {\r\n "type": "number"\r\n },\r\n "ipcSent": {\r\n "type": "number"\r\n },\r\n "majorPageFault": {\r\n "type": "number"\r\n },\r\n "maxRSS": {\r\n "type": "number"\r\n },\r\n "minorPageFault": {\r\n "type": "number"\r\n },\r\n "sharedMemorySize": {\r\n "type": "number"\r\n },\r\n "signalsCount": {\r\n "type": "number"\r\n },\r\n "swappedOut": {\r\n "type": "number"\r\n },\r\n "systemCPUTime": {\r\n "type": "number"\r\n },\r\n "unsharedDataSize": {\r\n "type": "number"\r\n },\r\n "unsharedStackSize": {\r\n "type": "number"\r\n },\r\n "userCPUTime": {\r\n "type": "number"\r\n },\r\n "voluntaryContextSwitches": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "fsRead",\r\n "fsWrite",\r\n "involuntaryContextSwitches",\r\n "ipcReceived",\r\n "ipcSent",\r\n "majorPageFault",\r\n "maxRSS",\r\n "minorPageFault",\r\n "sharedMemorySize",\r\n "signalsCount",\r\n "swappedOut",\r\n "systemCPUTime",\r\n "unsharedDataSize",\r\n "unsharedStackSize",\r\n "userCPUTime",\r\n "voluntaryContextSwitches"\r\n ]\r\n },\r\n "ISystem": {\r\n "type": "object",\r\n "properties": {\r\n "uid": {\r\n "type": "number",\r\n "title": "Random Unique ID",\r\n "description": "Random Unique ID."\r\n },\r\n "arguments": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n },\r\n "description": "`process.argv`"\r\n },\r\n "commit": {\r\n "$ref": "#/components/schemas/ISystem.ICommit",\r\n "title": "Git commit info",\r\n "description": "Git commit info."\r\n },\r\n "package": {\r\n "$ref": "#/components/schemas/ISystem.IPackage",\r\n "description": "`package.json`"\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "title": "Creation time of this server",\r\n "description": "Creation time of this server."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "uid",\r\n "arguments",\r\n "commit",\r\n "package",\r\n "created_at"\r\n ],\r\n "description": "System Information."\r\n },\r\n "ISystem.ICommit": {\r\n "type": "object",\r\n "properties": {\r\n "shortHash": {\r\n "type": "string"\r\n },\r\n "branch": {\r\n "type": "string"\r\n },\r\n "hash": {\r\n "type": "string"\r\n },\r\n "subject": {\r\n "type": "string"\r\n },\r\n "sanitizedSubject": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n },\r\n "author": {\r\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\r\n },\r\n "committer": {\r\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\r\n },\r\n "authored_at": {\r\n "type": "string"\r\n },\r\n "commited_at": {\r\n "type": "string"\r\n },\r\n "notes": {\r\n "type": "string"\r\n },\r\n "tags": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n }\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "shortHash",\r\n "branch",\r\n "hash",\r\n "subject",\r\n "sanitizedSubject",\r\n "body",\r\n "author",\r\n "committer",\r\n "authored_at",\r\n "commited_at",\r\n "tags"\r\n ],\r\n "description": "Git commit info."\r\n },\r\n "ISystem.ICommit.IUser": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string"\r\n },\r\n "email": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "email"\r\n ],\r\n "description": "Git user account info."\r\n },\r\n "ISystem.IPackage": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string"\r\n },\r\n "version": {\r\n "type": "string"\r\n },\r\n "description": {\r\n "type": "string"\r\n },\r\n "main": {\r\n "type": "string"\r\n },\r\n "typings": {\r\n "type": "string"\r\n },\r\n "scripts": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "repository": {\r\n "type": "object",\r\n "properties": {\r\n "type": {\r\n "type": "string",\r\n "enum": [\r\n "git"\r\n ]\r\n },\r\n "url": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "type",\r\n "url"\r\n ]\r\n },\r\n "author": {\r\n "type": "string"\r\n },\r\n "license": {\r\n "type": "string"\r\n },\r\n "bugs": {\r\n "type": "object",\r\n "properties": {\r\n "url": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "url"\r\n ]\r\n },\r\n "homepage": {\r\n "type": "string"\r\n },\r\n "devDependencies": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "dependencies": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "publishConfig": {\r\n "type": "object",\r\n "properties": {\r\n "registry": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "registry"\r\n ]\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n }\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "version",\r\n "description",\r\n "scripts",\r\n "repository",\r\n "author",\r\n "license",\r\n "bugs",\r\n "homepage",\r\n "dependencies"\r\n ],\r\n "description": "NPM package info."\r\n },\r\n "Recordstringstring": {\r\n "type": "object",\r\n "properties": {},\r\n "nullable": false,\r\n "description": "Construct a type with a set of properties K of type T"\r\n }\r\n }\r\n }\r\n}'
|
290
290
|
}, {
|
291
291
|
location: "test",
|
292
292
|
file: "index.ts",
|
293
|
-
content: 'import { DynamicExecutor } from "@nestia/e2e";\nimport chalk from "chalk";\n\nimport { TestGlobal } from "./TestGlobal";\nimport { ArgumentParser } from "./utils/ArgumentParser";\n\ninterface IOptions {\n simulate: boolean;\n include?: string[];\n exclude?: string[];\n trace: boolean;\n}\n\nconst getOptions = () =>\n ArgumentParser.parse<IOptions>(async (command, prompt, action) => {\n command.option("--simulate <boolean>", "Mockup Simultator");\n command.option("--include <string...>", "include feature files");\n command.option("--exclude <string...>", "exclude feature files");\n command.option("--trace <boolean>", "trace detailed errors");\n\n return action(async (options) => {\n if (typeof options.simulate === "string")\n options.simulate = options.simulate === "true";\n options.simulate ??= await prompt.boolean("simulate")("Mockup Simulator");\n options.trace = options.trace !== ("false" as any);\n return options as IOptions;\n });\n });\n\nconst main = async (): Promise<void> => {\n // DO TEST\n const options: IOptions = await getOptions();\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\n prefix: "test",\n location: __dirname + "/features",\n extension: __filename.substring(__filename.length - 2),\n parameters: () => [\n {\n ...TestGlobal.connection(),\n simulate: options.simulate,\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 });\n\n // REPORT EXCEPTIONS\n const exceptions: Error[] = report.executions\n .filter((exec) => exec.error !== null)\n .map((exec) => exec.error!);\n if (exceptions.length === 0) {\n console.log("Success");\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\n } else {\n if (options.trace !== false) for (const exp of exceptions) console.log(exp);\n console.log("Failed");\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\n }\n\n // TERMINATE\n if (exceptions.length) process.exit(-1);\n else process.exit(0);\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n'
|
293
|
+
content: 'import { DynamicExecutor } from "@nestia/e2e";\r\nimport chalk from "chalk";\r\n\r\nimport { TestGlobal } from "./TestGlobal";\r\nimport { ArgumentParser } from "./utils/ArgumentParser";\r\n\r\ninterface IOptions {\r\n simulate: boolean;\r\n include?: string[];\r\n exclude?: string[];\r\n trace: boolean;\r\n}\r\n\r\nconst getOptions = () =>\r\n ArgumentParser.parse<IOptions>(async (command, prompt, action) => {\r\n command.option("--simulate <boolean>", "Mockup Simultator");\r\n command.option("--include <string...>", "include feature files");\r\n command.option("--exclude <string...>", "exclude feature files");\r\n command.option("--trace <boolean>", "trace detailed errors");\r\n\r\n return action(async (options) => {\r\n if (typeof options.simulate === "string")\r\n options.simulate = options.simulate === "true";\r\n options.simulate ??= await prompt.boolean("simulate")("Mockup Simulator");\r\n options.trace = options.trace !== ("false" as any);\r\n return options as IOptions;\r\n });\r\n });\r\n\r\nconst main = async (): Promise<void> => {\r\n // DO TEST\r\n const options: IOptions = await getOptions();\r\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\r\n prefix: "test",\r\n location: __dirname + "/features",\r\n extension: __filename.substring(__filename.length - 2),\r\n parameters: () => [\r\n {\r\n ...TestGlobal.connection(),\r\n simulate: options.simulate,\r\n },\r\n ],\r\n filter: (func) =>\r\n (!options.include?.length ||\r\n (options.include ?? []).some((str) => func.includes(str))) &&\r\n (!options.exclude?.length ||\r\n (options.exclude ?? []).every((str) => !func.includes(str))),\r\n onComplete: (exec) => {\r\n const trace = (str: string) =>\r\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\r\n if (exec.error === null) {\r\n const elapsed: number =\r\n new Date(exec.completed_at).getTime() -\r\n new Date(exec.started_at).getTime();\r\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\r\n } else trace(chalk.red(exec.error.name));\r\n },\r\n });\r\n\r\n // REPORT EXCEPTIONS\r\n const exceptions: Error[] = report.executions\r\n .filter((exec) => exec.error !== null)\r\n .map((exec) => exec.error!);\r\n if (exceptions.length === 0) {\r\n console.log("Success");\r\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\r\n } else {\r\n if (options.trace !== false) for (const exp of exceptions) console.log(exp);\r\n console.log("Failed");\r\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\r\n }\r\n\r\n // TERMINATE\r\n if (exceptions.length) process.exit(-1);\r\n else process.exit(0);\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'
|
294
294
|
}, {
|
295
295
|
location: "test",
|
296
296
|
file: "start.ts",
|
297
|
-
content: 'import api from "@ORGANIZATION/PROJECT-api";\nimport { IBbsArticleComment } from "@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticleComment";\nimport typia from "typia";\nimport type { Format } from "typia/lib/tags/Format";\n\nimport { TestGlobal } from "./TestGlobal";\n\nconst main = async () => {\n const connection: api.IConnection = {\n ...TestGlobal.connection(),\n simulate: true,\n };\n const output: IBbsArticleComment =\n await api.functional.bbs.articles.comments.create(\n connection,\n typia.random<string & Format<"uuid">>(),\n typia.random<IBbsArticleComment.ICreate>(),\n );\n typia.assert(output);\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n'
|
297
|
+
content: 'import api from "@ORGANIZATION/PROJECT-api";\r\nimport { IBbsArticleComment } from "@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticleComment";\r\nimport typia from "typia";\r\nimport type { Format } from "typia/lib/tags/Format";\r\n\r\nimport { TestGlobal } from "./TestGlobal";\r\n\r\nconst main = async () => {\r\n const connection: api.IConnection = {\r\n ...TestGlobal.connection(),\r\n simulate: true,\r\n };\r\n const output: IBbsArticleComment =\r\n await api.functional.bbs.articles.comments.create(\r\n connection,\r\n typia.random<string & Format<"uuid">>(),\r\n typia.random<IBbsArticleComment.ICreate>(),\r\n );\r\n typia.assert(output);\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'
|
298
298
|
}, {
|
299
299
|
location: "test",
|
300
300
|
file: "swagger.ts",
|
301
|
-
content: 'import express from "express";\nimport ui from "swagger-ui-express";\n\nimport swagger from "../swagger.json";\n\nconst main = async (): Promise<void> => {\n const app = express();\n app.use("/", ui.serve, ui.setup(swagger));\n app.listen(3000);\n\n console.log("-----------------------------------------------------------");\n console.log("\\n Swagger UI Address: http://127.0.0.1:3000 \\n");\n console.log("-----------------------------------------------------------");\n};\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\n'
|
301
|
+
content: 'import express from "express";\r\nimport ui from "swagger-ui-express";\r\n\r\nimport swagger from "../swagger.json";\r\n\r\nconst main = async (): Promise<void> => {\r\n const app = express();\r\n app.use("/", ui.serve, ui.setup(swagger));\r\n app.listen(3000);\r\n\r\n console.log("-----------------------------------------------------------");\r\n console.log("\\n Swagger UI Address: http://127.0.0.1:3000 \\n");\r\n console.log("-----------------------------------------------------------");\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'
|
302
|
+
}, {
|
303
|
+
location: "test",
|
304
|
+
file: "TestGlobal.ts",
|
305
|
+
content: 'import api from "@ORGANIZATION/PROJECT-api";\r\n\r\nexport namespace TestGlobal {\r\n export const connection = (): api.IConnection => ({\r\n host: `http://127.0.0.1:37001`,\r\n });\r\n}\r\n'
|
302
306
|
}, {
|
303
307
|
location: "test",
|
304
308
|
file: "tsconfig.json",
|
305
|
-
content: '{\n "extends": "../tsconfig.json",\n "compilerOptions": {\n "outDir": "../bin",\n "paths": {\n "@ORGANIZATION/PROJECT-api": ["../src"],\n "@ORGANIZATION/PROJECT-api/lib/*": ["../src/*"],\n },\n "plugins": [\n { "transform": "typia/lib/transform" },\n { "transform": "typescript-transform-paths" },\n ],\n },\n "include": [\n ".", \n "../src",\n ],\n}'
|
309
|
+
content: '{\r\n "extends": "../tsconfig.json",\r\n "compilerOptions": {\r\n "outDir": "../bin",\r\n "paths": {\r\n "@ORGANIZATION/PROJECT-api": ["../src"],\r\n "@ORGANIZATION/PROJECT-api/lib/*": ["../src/*"],\r\n },\r\n "plugins": [\r\n { "transform": "typia/lib/transform" },\r\n { "transform": "typescript-transform-paths" },\r\n ],\r\n },\r\n "include": [\r\n ".", \r\n "../src",\r\n ],\r\n}'
|
306
310
|
}, {
|
307
311
|
location: "test/utils",
|
308
312
|
file: "ArgumentParser.ts",
|
309
|
-
content: 'import commander from "commander";\nimport * as inquirer from "inquirer";\n\nexport namespace ArgumentParser {\n export type Inquiry<T> = (\n command: commander.Command,\n prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule,\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\n ) => Promise<T>;\n\n export interface Prompt {\n select: (\n name: string,\n ) => (\n message: string,\n ) => <Choice extends string>(choices: Choice[]) => Promise<Choice>;\n boolean: (name: string) => (message: string) => Promise<boolean>;\n }\n\n export const parse = async <T>(\n inquiry: (\n command: commander.Command,\n prompt: Prompt,\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\n ) => Promise<T>,\n ): Promise<T> => {\n // TAKE OPTIONS\n const action = (closure: (options: Partial<T>) => Promise<T>) =>\n new Promise<T>((resolve, reject) => {\n commander.program.action(async (options) => {\n try {\n resolve(await closure(options));\n } catch (exp) {\n reject(exp);\n }\n });\n commander.program.parseAsync().catch(reject);\n });\n\n const select =\n (name: string) =>\n (message: string) =>\n async <Choice extends string>(choices: Choice[]): Promise<Choice> =>\n (\n await inquirer.createPromptModule()({\n type: "list",\n name,\n message,\n choices,\n })\n )[name];\n const boolean = (name: string) => async (message: string) =>\n (\n await inquirer.createPromptModule()({\n type: "confirm",\n name,\n message,\n })\n )[name] as boolean;\n\n const output: T | Error = await (async () => {\n try {\n return await inquiry(commander.program, { select, boolean }, action);\n } catch (error) {\n return error as Error;\n }\n })();\n\n // RETURNS\n if (output instanceof Error) throw output;\n return output;\n };\n}\n'
|
313
|
+
content: 'import commander from "commander";\r\nimport * as inquirer from "inquirer";\r\n\r\nexport namespace ArgumentParser {\r\n export type Inquiry<T> = (\r\n command: commander.Command,\r\n prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule,\r\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\r\n ) => Promise<T>;\r\n\r\n export interface Prompt {\r\n select: (\r\n name: string,\r\n ) => (\r\n message: string,\r\n ) => <Choice extends string>(choices: Choice[]) => Promise<Choice>;\r\n boolean: (name: string) => (message: string) => Promise<boolean>;\r\n }\r\n\r\n export const parse = async <T>(\r\n inquiry: (\r\n command: commander.Command,\r\n prompt: Prompt,\r\n action: (closure: (options: Partial<T>) => Promise<T>) => Promise<T>,\r\n ) => Promise<T>,\r\n ): Promise<T> => {\r\n // TAKE OPTIONS\r\n const action = (closure: (options: Partial<T>) => Promise<T>) =>\r\n new Promise<T>((resolve, reject) => {\r\n commander.program.action(async (options) => {\r\n try {\r\n resolve(await closure(options));\r\n } catch (exp) {\r\n reject(exp);\r\n }\r\n });\r\n commander.program.parseAsync().catch(reject);\r\n });\r\n\r\n const select =\r\n (name: string) =>\r\n (message: string) =>\r\n async <Choice extends string>(choices: Choice[]): Promise<Choice> =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "list",\r\n name,\r\n message,\r\n choices,\r\n })\r\n )[name];\r\n const boolean = (name: string) => async (message: string) =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "confirm",\r\n name,\r\n message,\r\n })\r\n )[name] as boolean;\r\n\r\n const output: T | Error = await (async () => {\r\n try {\r\n return await inquiry(commander.program, { select, boolean }, action);\r\n } catch (error) {\r\n return error as Error;\r\n }\r\n })();\r\n\r\n // RETURNS\r\n if (output instanceof Error) throw output;\r\n return output;\r\n };\r\n}\r\n'
|
310
314
|
}, {
|
311
315
|
location: "",
|
312
316
|
file: "tsconfig.json",
|
313
|
-
content: '{\n "compilerOptions": {\n /* Visit https://aka.ms/tsconfig to read more about this file */\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 /* Language and Environment */\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\n "lib": [\n "DOM",\n "ES2015"\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "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 /* Modules */\n "module": "commonjs", /* Specify what module code is generated. */// "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": ["../src"],\n "@ORGANIZATION/PROJECT-api/lib/*": ["../src/*"],\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 /* 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 /* Emit */\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "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. */// "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. */// "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. */// "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. */// "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 /* 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. */// "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. *//* Type Checking */\n "strict": true, /* Enable all strict type-checking options. */// "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 /* 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": "typia/lib/transform" },\n { "transform": "typescript-transform-paths" },\n ],\n },\n "include": ["src"],\n}'
|
317
|
+
content: '{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n /* Language and Environment */\r\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n "lib": [\r\n "DOM",\r\n "ES2015"\r\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "jsx": "preserve", /* Specify what JSX code is generated. */\r\n // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */// "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n "paths": {\r\n "@ORGANIZATION/PROJECT-api": ["../src"],\r\n "@ORGANIZATION/PROJECT-api/lib/*": ["../src/*"],\r\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'<reference>\'s from expanding the number of files TypeScript should add to a project. */\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n /* Emit */\r\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */// "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. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */// "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */// "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. *//* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n // "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n // "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n { "transform": "typia/lib/transform" },\r\n { "transform": "typescript-transform-paths" },\r\n ],\r\n },\r\n "include": ["src"],\r\n}'
|
314
318
|
} ];
|
315
319
|
|
316
320
|
var FilePrinter;
|
@@ -1049,7 +1053,7 @@ class MigrateApplication {
|
|
1049
1053
|
}
|
1050
1054
|
static create(document) {
|
1051
1055
|
const result = (() => {
|
1052
|
-
const _io0 = 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 && _io1(elem)))) && (undefined === input.info || "object" === typeof input.info && null !== input.info && _io4(input.info)) && ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && _io7(input.components)) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && _io34(input.paths)) && (undefined === input.webhooks || "object" === typeof input.webhooks && null !== input.webhooks && false === Array.isArray(input.webhooks) && _io34(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 && _io47(elem)))) && true === input["x-samchon-emended"];
|
1056
|
+
const _io0 = 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 && _io1(elem)))) && (undefined === input.info || "object" === typeof input.info && null !== input.info && _io4(input.info)) && ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && _io7(input.components)) && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && _io34(input.paths)) && (undefined === input.webhooks || "object" === typeof input.webhooks && null !== input.webhooks && false === Array.isArray(input.webhooks) && _io34(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 && _io47(elem)))) && true === input["x-samchon-emended-v4"];
|
1053
1057
|
const _io1 = 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) && _io2(input.variables));
|
1054
1058
|
const _io2 = input => Object.keys(input).every((key => {
|
1055
1059
|
const value = input[key];
|
@@ -1073,8 +1077,8 @@ class MigrateApplication {
|
|
1073
1077
|
return true;
|
1074
1078
|
}));
|
1075
1079
|
const _io11 = input => (undefined === input["default"] || "boolean" === typeof input["default"]) && "boolean" === input.type && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples));
|
1076
|
-
const _io12 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (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 || "
|
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 || "
|
1080
|
+
const _io12 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -0x8000000000000000 <= input["default"] && input["default"] <= 0x8000000000000000)) && (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) && (undefined === input.exclusiveMaximum || "number" === 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));
|
1081
|
+
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 || "number" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "number" === 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));
|
1078
1082
|
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));
|
1079
1083
|
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));
|
1080
1084
|
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));
|
@@ -1152,8 +1156,8 @@ class MigrateApplication {
|
|
1152
1156
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu2(value);
|
1153
1157
|
}));
|
1154
1158
|
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));
|
1159
|
+
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 || "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 && (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));
|
1160
|
+
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 || "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.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
1161
|
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
1162
|
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
1163
|
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));
|
@@ -1168,8 +1172,8 @@ class MigrateApplication {
|
|
1168
1172
|
return "object" === typeof value && null !== value && _iu10(value);
|
1169
1173
|
}));
|
1170
1174
|
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"];
|
1175
|
+
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 || "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 && (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"];
|
1176
|
+
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 || "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.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
1177
|
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
1178
|
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
1179
|
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"];
|
@@ -1229,19 +1233,19 @@ class MigrateApplication {
|
|
1229
1233
|
if (undefined === value) return true;
|
1230
1234
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu5(value);
|
1231
1235
|
}));
|
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))) &&
|
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)) &&
|
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) &&
|
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)) &&
|
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)) &&
|
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) &&
|
1238
|
-
const _io109 = input => "string" === typeof input.$ref && (undefined === 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.
|
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.
|
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.
|
1236
|
+
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))) && (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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1237
|
+
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 || "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 && (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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1238
|
+
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 || "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.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "number" === input.type && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1239
|
+
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)) && (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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1240
|
+
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)) && (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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1241
|
+
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) && (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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1242
|
+
const _io109 = input => "string" === typeof input.$ref && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1243
|
+
const _io110 = input => Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem))) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1244
|
+
const _io111 = input => Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu5(elem))) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1245
|
+
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)) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1242
1246
|
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"]) &&
|
1244
|
-
const _io115 = input =>
|
1247
|
+
const _io114 = input => (null === input["default"] || undefined === input["default"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "null" === input.type && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1248
|
+
const _io115 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (null !== input.type && undefined === input.type) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1245
1249
|
const _io116 = input => Object.keys(input).every((key => {
|
1246
1250
|
const value = input[key];
|
1247
1251
|
if (undefined === value) return true;
|
@@ -1260,14 +1264,14 @@ class MigrateApplication {
|
|
1260
1264
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu13(value);
|
1261
1265
|
}));
|
1262
1266
|
const _io121 = input => (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.externalValue || "string" === typeof input.externalValue);
|
1263
|
-
const _io122 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/examples\/(.*)/).test(input.$ref) && (undefined === input.
|
1267
|
+
const _io122 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/examples\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1264
1268
|
const _io123 = input => Object.keys(input).every((key => {
|
1265
1269
|
const value = input[key];
|
1266
1270
|
if (undefined === value) return true;
|
1267
1271
|
return "object" === typeof value && null !== value && _iu14(value);
|
1268
1272
|
}));
|
1269
1273
|
const _io124 = input => (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io120(input.examples)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.name || "string" === typeof input.name) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu5(input.schema));
|
1270
|
-
const _io125 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) && (undefined === input.
|
1274
|
+
const _io125 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1271
1275
|
const _io126 = input => Object.keys(input).every((key => {
|
1272
1276
|
const value = input[key];
|
1273
1277
|
if (undefined === value) return true;
|
@@ -1310,15 +1314,15 @@ class MigrateApplication {
|
|
1310
1314
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io143(value);
|
1311
1315
|
}));
|
1312
1316
|
const _io143 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu6(elem)))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io95(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) && _io145(input.head)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io145(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io145(input.post)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io145(input.put)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io145(input.patch)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io145(input["delete"])) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io145(input.options)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io145(input.trace));
|
1313
|
-
const _io144 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) && (undefined === input.
|
1317
|
+
const _io144 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1314
1318
|
const _io145 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu6(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _iu16(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io147(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io95(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);
|
1315
|
-
const _io146 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) && (undefined === input.
|
1319
|
+
const _io146 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1316
1320
|
const _io147 = input => Object.keys(input).every((key => {
|
1317
1321
|
const value = input[key];
|
1318
1322
|
if (undefined === value) return true;
|
1319
1323
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu17(value);
|
1320
1324
|
}));
|
1321
|
-
const _io148 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) && (undefined === input.
|
1325
|
+
const _io148 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1322
1326
|
const _io149 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
1323
1327
|
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))));
|
1324
1328
|
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));
|
@@ -1337,22 +1341,22 @@ class MigrateApplication {
|
|
1337
1341
|
if (undefined === value) return true;
|
1338
1342
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu7(value);
|
1339
1343
|
}));
|
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.
|
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.
|
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))) &&
|
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)) &&
|
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) &&
|
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)) &&
|
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)) &&
|
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) &&
|
1348
|
-
const _io167 = input => "string" === typeof input.$ref && (undefined === input.
|
1349
|
-
const _io168 = input => "string" === typeof input.$recursiveRef && (undefined === input.
|
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.
|
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.
|
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.
|
1344
|
+
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) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && (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;
|
1345
|
+
const _io160 = input => ("string" === typeof input["const"] || "number" === typeof input["const"] || "boolean" === typeof input["const"]) && (undefined === input.nullable || "boolean" === typeof input.nullable) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1346
|
+
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))) && (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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1347
|
+
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)) && (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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1348
|
+
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) && (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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1349
|
+
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)) && (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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1350
|
+
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)) && (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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1351
|
+
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) && (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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1352
|
+
const _io167 = input => "string" === typeof input.$ref && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1353
|
+
const _io168 = input => "string" === typeof input.$recursiveRef && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1354
|
+
const _io169 = input => Array.isArray(input.allOf) && input.allOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1355
|
+
const _io170 = input => Array.isArray(input.anyOf) && input.anyOf.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _iu7(elem))) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1356
|
+
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)) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1353
1357
|
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"]) &&
|
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));
|
1358
|
+
const _io173 = input => (null === input["default"] || undefined === input["default"]) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true && "null" === input.type && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1359
|
+
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 && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples))));
|
1356
1360
|
const _io175 = input => Object.keys(input).every((key => {
|
1357
1361
|
const value = input[key];
|
1358
1362
|
if (undefined === value) return true;
|
@@ -1366,9 +1370,9 @@ class MigrateApplication {
|
|
1366
1370
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu18(value);
|
1367
1371
|
}));
|
1368
1372
|
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.
|
1370
|
-
const _io181 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) && (undefined === input.
|
1371
|
-
const _io182 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) && (undefined === input.
|
1373
|
+
const _io180 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/examples\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1374
|
+
const _io181 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1375
|
+
const _io182 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1372
1376
|
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
1377
|
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
1378
|
const _io185 = input => Object.keys(input).every((key => {
|
@@ -1377,7 +1381,7 @@ class MigrateApplication {
|
|
1377
1381
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io186(value);
|
1378
1382
|
}));
|
1379
1383
|
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.
|
1384
|
+
const _io187 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1381
1385
|
const _io188 = input => Object.keys(input).every((key => {
|
1382
1386
|
const value = input[key];
|
1383
1387
|
if (undefined === value) return true;
|
@@ -1390,7 +1394,7 @@ class MigrateApplication {
|
|
1390
1394
|
return "object" === typeof value && null !== value && _iu21(value);
|
1391
1395
|
}));
|
1392
1396
|
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.
|
1397
|
+
const _io192 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/responses\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1394
1398
|
const _io193 = input => Object.keys(input).every((key => {
|
1395
1399
|
const value = input[key];
|
1396
1400
|
if (undefined === value) return true;
|
@@ -1435,7 +1439,7 @@ class MigrateApplication {
|
|
1435
1439
|
if (undefined === value) return true;
|
1436
1440
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _iu23(value);
|
1437
1441
|
}));
|
1438
|
-
const _io209 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/pathItems\/(.*)/).test(input.$ref) && (undefined === input.
|
1442
|
+
const _io209 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/pathItems\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io10(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
1439
1443
|
const _io210 = input => "string" === typeof input.name && (undefined === input.description || "string" === typeof input.description);
|
1440
1444
|
const _iu0 = input => (() => {
|
1441
1445
|
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);
|
@@ -1522,7 +1526,7 @@ class MigrateApplication {
|
|
1522
1526
|
if (undefined !== input.$ref) return _io209(input); else return _io176(input);
|
1523
1527
|
})();
|
1524
1528
|
const _iu24 = input => (() => {
|
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;
|
1529
|
+
if (undefined !== input["x-samchon-emended-v4"]) 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;
|
1526
1530
|
})();
|
1527
1531
|
const _vo0 = (input, _path, _exceptionable = true) => [ "string" === typeof input.openapi && RegExp(/^3\.1\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) || _report(_exceptionable, {
|
1528
1532
|
path: _path + ".openapi",
|
@@ -1608,10 +1612,10 @@ class MigrateApplication {
|
|
1608
1612
|
path: _path + ".tags",
|
1609
1613
|
expected: "(Array<OpenApi.IDocument.ITag> | undefined)",
|
1610
1614
|
value: input.tags
|
1611
|
-
}), true === input["x-samchon-emended"] || _report(_exceptionable, {
|
1612
|
-
path: _path + '["x-samchon-emended"]',
|
1615
|
+
}), true === input["x-samchon-emended-v4"] || _report(_exceptionable, {
|
1616
|
+
path: _path + '["x-samchon-emended-v4"]',
|
1613
1617
|
expected: "true",
|
1614
|
-
value: input["x-samchon-emended"]
|
1618
|
+
value: input["x-samchon-emended-v4"]
|
1615
1619
|
}) ].every((flag => flag));
|
1616
1620
|
const _vo1 = (input, _path, _exceptionable = true) => [ "string" === typeof input.url || _report(_exceptionable, {
|
1617
1621
|
path: _path + ".url",
|
@@ -1844,13 +1848,13 @@ class MigrateApplication {
|
|
1844
1848
|
path: _path + ".maximum",
|
1845
1849
|
expected: '((number & Type<"int64">) | undefined)',
|
1846
1850
|
value: input.maximum
|
1847
|
-
}), undefined === input.exclusiveMinimum || "
|
1851
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
1848
1852
|
path: _path + ".exclusiveMinimum",
|
1849
|
-
expected: "(
|
1853
|
+
expected: "(number | undefined)",
|
1850
1854
|
value: input.exclusiveMinimum
|
1851
|
-
}), undefined === input.exclusiveMaximum || "
|
1855
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
1852
1856
|
path: _path + ".exclusiveMaximum",
|
1853
|
-
expected: "(
|
1857
|
+
expected: "(number | undefined)",
|
1854
1858
|
value: input.exclusiveMaximum
|
1855
1859
|
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 || _report(_exceptionable, {
|
1856
1860
|
path: _path + ".multipleOf",
|
@@ -1901,13 +1905,13 @@ class MigrateApplication {
|
|
1901
1905
|
path: _path + ".maximum",
|
1902
1906
|
expected: "(number | undefined)",
|
1903
1907
|
value: input.maximum
|
1904
|
-
}), undefined === input.exclusiveMinimum || "
|
1908
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
1905
1909
|
path: _path + ".exclusiveMinimum",
|
1906
|
-
expected: "(
|
1910
|
+
expected: "(number | undefined)",
|
1907
1911
|
value: input.exclusiveMinimum
|
1908
|
-
}), undefined === input.exclusiveMaximum || "
|
1912
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
1909
1913
|
path: _path + ".exclusiveMaximum",
|
1910
|
-
expected: "(
|
1914
|
+
expected: "(number | undefined)",
|
1911
1915
|
value: input.exclusiveMaximum
|
1912
1916
|
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
|
1913
1917
|
path: _path + ".multipleOf",
|
@@ -3227,13 +3231,13 @@ class MigrateApplication {
|
|
3227
3231
|
path: _path + ".maximum",
|
3228
3232
|
expected: '((number & Type<"int64">) | undefined)',
|
3229
3233
|
value: input.maximum
|
3230
|
-
}), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
3234
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
3231
3235
|
path: _path + ".exclusiveMinimum",
|
3232
|
-
expected: "(boolean | undefined)",
|
3236
|
+
expected: "(boolean | number | undefined)",
|
3233
3237
|
value: input.exclusiveMinimum
|
3234
|
-
}), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
3238
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
3235
3239
|
path: _path + ".exclusiveMaximum",
|
3236
|
-
expected: "(boolean | undefined)",
|
3240
|
+
expected: "(boolean | number | undefined)",
|
3237
3241
|
value: input.exclusiveMaximum
|
3238
3242
|
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 || _report(_exceptionable, {
|
3239
3243
|
path: _path + ".multipleOf",
|
@@ -3296,13 +3300,13 @@ class MigrateApplication {
|
|
3296
3300
|
path: _path + ".maximum",
|
3297
3301
|
expected: "(number | undefined)",
|
3298
3302
|
value: input.maximum
|
3299
|
-
}), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
3303
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
3300
3304
|
path: _path + ".exclusiveMinimum",
|
3301
|
-
expected: "(boolean | undefined)",
|
3305
|
+
expected: "(boolean | number | undefined)",
|
3302
3306
|
value: input.exclusiveMinimum
|
3303
|
-
}), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
3307
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
3304
3308
|
path: _path + ".exclusiveMaximum",
|
3305
|
-
expected: "(boolean | undefined)",
|
3309
|
+
expected: "(boolean | number | undefined)",
|
3306
3310
|
value: input.exclusiveMaximum
|
3307
3311
|
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
|
3308
3312
|
path: _path + ".multipleOf",
|
@@ -3755,13 +3759,13 @@ class MigrateApplication {
|
|
3755
3759
|
path: _path + ".maximum",
|
3756
3760
|
expected: '((number & Type<"int64">) | undefined)',
|
3757
3761
|
value: input.maximum
|
3758
|
-
}), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
3762
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
3759
3763
|
path: _path + ".exclusiveMinimum",
|
3760
|
-
expected: "(boolean | undefined)",
|
3764
|
+
expected: "(boolean | number | undefined)",
|
3761
3765
|
value: input.exclusiveMinimum
|
3762
|
-
}), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
3766
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
3763
3767
|
path: _path + ".exclusiveMaximum",
|
3764
|
-
expected: "(boolean | undefined)",
|
3768
|
+
expected: "(boolean | number | undefined)",
|
3765
3769
|
value: input.exclusiveMaximum
|
3766
3770
|
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 || _report(_exceptionable, {
|
3767
3771
|
path: _path + ".multipleOf",
|
@@ -3832,13 +3836,13 @@ class MigrateApplication {
|
|
3832
3836
|
path: _path + ".maximum",
|
3833
3837
|
expected: "(number | undefined)",
|
3834
3838
|
value: input.maximum
|
3835
|
-
}), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
3839
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
3836
3840
|
path: _path + ".exclusiveMinimum",
|
3837
|
-
expected: "(boolean | undefined)",
|
3841
|
+
expected: "(boolean | number | undefined)",
|
3838
3842
|
value: input.exclusiveMinimum
|
3839
|
-
}), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
3843
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
3840
3844
|
path: _path + ".exclusiveMaximum",
|
3841
|
-
expected: "(boolean | undefined)",
|
3845
|
+
expected: "(boolean | number | undefined)",
|
3842
3846
|
value: input.exclusiveMaximum
|
3843
3847
|
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
|
3844
3848
|
path: _path + ".multipleOf",
|
@@ -5000,10 +5004,6 @@ class MigrateApplication {
|
|
5000
5004
|
path: _path + '["enum"]',
|
5001
5005
|
expected: "(Array<boolean | null> | undefined)",
|
5002
5006
|
value: input["enum"]
|
5003
|
-
}), "boolean" === input.type || _report(_exceptionable, {
|
5004
|
-
path: _path + ".type",
|
5005
|
-
expected: '"boolean"',
|
5006
|
-
value: input.type
|
5007
5007
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5008
5008
|
path: _path + ".title",
|
5009
5009
|
expected: "(string | undefined)",
|
@@ -5016,15 +5016,23 @@ class MigrateApplication {
|
|
5016
5016
|
path: _path + ".deprecated",
|
5017
5017
|
expected: "(boolean | undefined)",
|
5018
5018
|
value: input.deprecated
|
5019
|
-
}), true,
|
5019
|
+
}), true, "boolean" === input.type || _report(_exceptionable, {
|
5020
|
+
path: _path + ".type",
|
5021
|
+
expected: '"boolean"',
|
5022
|
+
value: input.type
|
5023
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5020
5024
|
path: _path + ".examples",
|
5021
|
-
expected: "(Record<string, any> | undefined)",
|
5025
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5022
5026
|
value: input.examples
|
5023
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5027
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5024
5028
|
path: _path + ".examples",
|
5025
|
-
expected: "(Record<string, any> | undefined)",
|
5029
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5026
5030
|
value: input.examples
|
5027
|
-
})
|
5031
|
+
})) || _report(_exceptionable, {
|
5032
|
+
path: _path + ".examples",
|
5033
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5034
|
+
value: input.examples
|
5035
|
+
})) ].every((flag => flag));
|
5028
5036
|
const _vo104 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5029
5037
|
path: _path + ".nullable",
|
5030
5038
|
expected: "(boolean | undefined)",
|
@@ -5065,13 +5073,13 @@ class MigrateApplication {
|
|
5065
5073
|
path: _path + ".maximum",
|
5066
5074
|
expected: '((number & Type<"int64">) | undefined)',
|
5067
5075
|
value: input.maximum
|
5068
|
-
}), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
5076
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
5069
5077
|
path: _path + ".exclusiveMinimum",
|
5070
|
-
expected: "(boolean | undefined)",
|
5078
|
+
expected: "(boolean | number | undefined)",
|
5071
5079
|
value: input.exclusiveMinimum
|
5072
|
-
}), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
5080
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
5073
5081
|
path: _path + ".exclusiveMaximum",
|
5074
|
-
expected: "(boolean | undefined)",
|
5082
|
+
expected: "(boolean | number | undefined)",
|
5075
5083
|
value: input.exclusiveMaximum
|
5076
5084
|
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 0x10000000000000000 || _report(_exceptionable, {
|
5077
5085
|
path: _path + ".multipleOf",
|
@@ -5085,10 +5093,6 @@ class MigrateApplication {
|
|
5085
5093
|
path: _path + ".multipleOf",
|
5086
5094
|
expected: '((number & Type<"uint64"> & ExclusiveMinimum<0>) | undefined)',
|
5087
5095
|
value: input.multipleOf
|
5088
|
-
}), "integer" === input.type || _report(_exceptionable, {
|
5089
|
-
path: _path + ".type",
|
5090
|
-
expected: '"integer"',
|
5091
|
-
value: input.type
|
5092
5096
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5093
5097
|
path: _path + ".title",
|
5094
5098
|
expected: "(string | undefined)",
|
@@ -5101,15 +5105,23 @@ class MigrateApplication {
|
|
5101
5105
|
path: _path + ".deprecated",
|
5102
5106
|
expected: "(boolean | undefined)",
|
5103
5107
|
value: input.deprecated
|
5104
|
-
}), true,
|
5108
|
+
}), true, "integer" === input.type || _report(_exceptionable, {
|
5109
|
+
path: _path + ".type",
|
5110
|
+
expected: '"integer"',
|
5111
|
+
value: input.type
|
5112
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5105
5113
|
path: _path + ".examples",
|
5106
|
-
expected: "(Record<string, any> | undefined)",
|
5114
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5107
5115
|
value: input.examples
|
5108
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5116
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5109
5117
|
path: _path + ".examples",
|
5110
|
-
expected: "(Record<string, any> | undefined)",
|
5118
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5111
5119
|
value: input.examples
|
5112
|
-
})
|
5120
|
+
})) || _report(_exceptionable, {
|
5121
|
+
path: _path + ".examples",
|
5122
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5123
|
+
value: input.examples
|
5124
|
+
})) ].every((flag => flag));
|
5113
5125
|
const _vo105 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5114
5126
|
path: _path + ".nullable",
|
5115
5127
|
expected: "(boolean | undefined)",
|
@@ -5138,13 +5150,13 @@ class MigrateApplication {
|
|
5138
5150
|
path: _path + ".maximum",
|
5139
5151
|
expected: "(number | undefined)",
|
5140
5152
|
value: input.maximum
|
5141
|
-
}), undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
5153
|
+
}), undefined === input.exclusiveMinimum || "number" === typeof input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || _report(_exceptionable, {
|
5142
5154
|
path: _path + ".exclusiveMinimum",
|
5143
|
-
expected: "(boolean | undefined)",
|
5155
|
+
expected: "(boolean | number | undefined)",
|
5144
5156
|
value: input.exclusiveMinimum
|
5145
|
-
}), undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
5157
|
+
}), undefined === input.exclusiveMaximum || "number" === typeof input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum || _report(_exceptionable, {
|
5146
5158
|
path: _path + ".exclusiveMaximum",
|
5147
|
-
expected: "(boolean | undefined)",
|
5159
|
+
expected: "(boolean | number | undefined)",
|
5148
5160
|
value: input.exclusiveMaximum
|
5149
5161
|
}), undefined === input.multipleOf || "number" === typeof input.multipleOf && (0 < input.multipleOf || _report(_exceptionable, {
|
5150
5162
|
path: _path + ".multipleOf",
|
@@ -5154,10 +5166,6 @@ class MigrateApplication {
|
|
5154
5166
|
path: _path + ".multipleOf",
|
5155
5167
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
5156
5168
|
value: input.multipleOf
|
5157
|
-
}), "number" === input.type || _report(_exceptionable, {
|
5158
|
-
path: _path + ".type",
|
5159
|
-
expected: '"number"',
|
5160
|
-
value: input.type
|
5161
5169
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5162
5170
|
path: _path + ".title",
|
5163
5171
|
expected: "(string | undefined)",
|
@@ -5170,15 +5178,23 @@ class MigrateApplication {
|
|
5170
5178
|
path: _path + ".deprecated",
|
5171
5179
|
expected: "(boolean | undefined)",
|
5172
5180
|
value: input.deprecated
|
5173
|
-
}), true,
|
5181
|
+
}), true, "number" === input.type || _report(_exceptionable, {
|
5182
|
+
path: _path + ".type",
|
5183
|
+
expected: '"number"',
|
5184
|
+
value: input.type
|
5185
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5174
5186
|
path: _path + ".examples",
|
5175
|
-
expected: "(Record<string, any> | undefined)",
|
5187
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5176
5188
|
value: input.examples
|
5177
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5189
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5178
5190
|
path: _path + ".examples",
|
5179
|
-
expected: "(Record<string, any> | undefined)",
|
5191
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5180
5192
|
value: input.examples
|
5181
|
-
})
|
5193
|
+
})) || _report(_exceptionable, {
|
5194
|
+
path: _path + ".examples",
|
5195
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5196
|
+
value: input.examples
|
5197
|
+
})) ].every((flag => flag));
|
5182
5198
|
const _vo106 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5183
5199
|
path: _path + ".nullable",
|
5184
5200
|
expected: "(boolean | undefined)",
|
@@ -5223,10 +5239,6 @@ class MigrateApplication {
|
|
5223
5239
|
path: _path + ".maxLength",
|
5224
5240
|
expected: '((number & Type<"uint64">) | undefined)',
|
5225
5241
|
value: input.maxLength
|
5226
|
-
}), "string" === input.type || _report(_exceptionable, {
|
5227
|
-
path: _path + ".type",
|
5228
|
-
expected: '"string"',
|
5229
|
-
value: input.type
|
5230
5242
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5231
5243
|
path: _path + ".title",
|
5232
5244
|
expected: "(string | undefined)",
|
@@ -5239,15 +5251,23 @@ class MigrateApplication {
|
|
5239
5251
|
path: _path + ".deprecated",
|
5240
5252
|
expected: "(boolean | undefined)",
|
5241
5253
|
value: input.deprecated
|
5242
|
-
}), true,
|
5254
|
+
}), true, "string" === input.type || _report(_exceptionable, {
|
5255
|
+
path: _path + ".type",
|
5256
|
+
expected: '"string"',
|
5257
|
+
value: input.type
|
5258
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5243
5259
|
path: _path + ".examples",
|
5244
|
-
expected: "(Record<string, any> | undefined)",
|
5260
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5245
5261
|
value: input.examples
|
5246
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5262
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5247
5263
|
path: _path + ".examples",
|
5248
|
-
expected: "(Record<string, any> | undefined)",
|
5264
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5249
5265
|
value: input.examples
|
5250
|
-
})
|
5266
|
+
})) || _report(_exceptionable, {
|
5267
|
+
path: _path + ".examples",
|
5268
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5269
|
+
value: input.examples
|
5270
|
+
})) ].every((flag => flag));
|
5251
5271
|
const _vo107 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5252
5272
|
path: _path + ".nullable",
|
5253
5273
|
expected: "(boolean | undefined)",
|
@@ -5280,10 +5300,6 @@ class MigrateApplication {
|
|
5280
5300
|
path: _path + ".maxItems",
|
5281
5301
|
expected: '((number & Type<"uint64">) | undefined)',
|
5282
5302
|
value: input.maxItems
|
5283
|
-
}), "array" === input.type || _report(_exceptionable, {
|
5284
|
-
path: _path + ".type",
|
5285
|
-
expected: '"array"',
|
5286
|
-
value: input.type
|
5287
5303
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5288
5304
|
path: _path + ".title",
|
5289
5305
|
expected: "(string | undefined)",
|
@@ -5296,15 +5312,23 @@ class MigrateApplication {
|
|
5296
5312
|
path: _path + ".deprecated",
|
5297
5313
|
expected: "(boolean | undefined)",
|
5298
5314
|
value: input.deprecated
|
5299
|
-
}), true,
|
5315
|
+
}), true, "array" === input.type || _report(_exceptionable, {
|
5316
|
+
path: _path + ".type",
|
5317
|
+
expected: '"array"',
|
5318
|
+
value: input.type
|
5319
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5300
5320
|
path: _path + ".examples",
|
5301
|
-
expected: "(Record<string, any> | undefined)",
|
5321
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5302
5322
|
value: input.examples
|
5303
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5323
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5304
5324
|
path: _path + ".examples",
|
5305
|
-
expected: "(Record<string, any> | undefined)",
|
5325
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5306
5326
|
value: input.examples
|
5307
|
-
})
|
5327
|
+
})) || _report(_exceptionable, {
|
5328
|
+
path: _path + ".examples",
|
5329
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5330
|
+
value: input.examples
|
5331
|
+
})) ].every((flag => flag));
|
5308
5332
|
const _vo108 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
5309
5333
|
path: _path + ".nullable",
|
5310
5334
|
expected: "(boolean | undefined)",
|
@@ -5349,10 +5373,6 @@ class MigrateApplication {
|
|
5349
5373
|
path: _path + ".minProperties",
|
5350
5374
|
expected: "(number | undefined)",
|
5351
5375
|
value: input.minProperties
|
5352
|
-
}), "object" === input.type || _report(_exceptionable, {
|
5353
|
-
path: _path + ".type",
|
5354
|
-
expected: '"object"',
|
5355
|
-
value: input.type
|
5356
5376
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5357
5377
|
path: _path + ".title",
|
5358
5378
|
expected: "(string | undefined)",
|
@@ -5365,20 +5385,40 @@ class MigrateApplication {
|
|
5365
5385
|
path: _path + ".deprecated",
|
5366
5386
|
expected: "(boolean | undefined)",
|
5367
5387
|
value: input.deprecated
|
5368
|
-
}), true,
|
5388
|
+
}), true, "object" === input.type || _report(_exceptionable, {
|
5389
|
+
path: _path + ".type",
|
5390
|
+
expected: '"object"',
|
5391
|
+
value: input.type
|
5392
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5369
5393
|
path: _path + ".examples",
|
5370
|
-
expected: "(Record<string, any> | undefined)",
|
5394
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5371
5395
|
value: input.examples
|
5372
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5396
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5373
5397
|
path: _path + ".examples",
|
5374
|
-
expected: "(Record<string, any> | undefined)",
|
5398
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5375
5399
|
value: input.examples
|
5376
|
-
})
|
5400
|
+
})) || _report(_exceptionable, {
|
5401
|
+
path: _path + ".examples",
|
5402
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5403
|
+
value: input.examples
|
5404
|
+
})) ].every((flag => flag));
|
5377
5405
|
const _vo109 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref || _report(_exceptionable, {
|
5378
5406
|
path: _path + ".$ref",
|
5379
5407
|
expected: "string",
|
5380
5408
|
value: input.$ref
|
5381
|
-
}),
|
5409
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5410
|
+
path: _path + ".examples",
|
5411
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5412
|
+
value: input.examples
|
5413
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5414
|
+
path: _path + ".examples",
|
5415
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5416
|
+
value: input.examples
|
5417
|
+
})) || _report(_exceptionable, {
|
5418
|
+
path: _path + ".examples",
|
5419
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5420
|
+
value: input.examples
|
5421
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5382
5422
|
path: _path + ".title",
|
5383
5423
|
expected: "(string | undefined)",
|
5384
5424
|
value: input.title
|
@@ -5390,15 +5430,7 @@ class MigrateApplication {
|
|
5390
5430
|
path: _path + ".deprecated",
|
5391
5431
|
expected: "(boolean | undefined)",
|
5392
5432
|
value: input.deprecated
|
5393
|
-
}), true
|
5394
|
-
path: _path + ".examples",
|
5395
|
-
expected: "(Record<string, any> | undefined)",
|
5396
|
-
value: input.examples
|
5397
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5398
|
-
path: _path + ".examples",
|
5399
|
-
expected: "(Record<string, any> | undefined)",
|
5400
|
-
value: input.examples
|
5401
|
-
}) ].every((flag => flag));
|
5433
|
+
}), true ].every((flag => flag));
|
5402
5434
|
const _vo110 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.allOf) || _report(_exceptionable, {
|
5403
5435
|
path: _path + ".allOf",
|
5404
5436
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
@@ -5415,7 +5447,19 @@ class MigrateApplication {
|
|
5415
5447
|
path: _path + ".allOf",
|
5416
5448
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
5417
5449
|
value: input.allOf
|
5418
|
-
}),
|
5450
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5451
|
+
path: _path + ".examples",
|
5452
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5453
|
+
value: input.examples
|
5454
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5455
|
+
path: _path + ".examples",
|
5456
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5457
|
+
value: input.examples
|
5458
|
+
})) || _report(_exceptionable, {
|
5459
|
+
path: _path + ".examples",
|
5460
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5461
|
+
value: input.examples
|
5462
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5419
5463
|
path: _path + ".title",
|
5420
5464
|
expected: "(string | undefined)",
|
5421
5465
|
value: input.title
|
@@ -5427,15 +5471,7 @@ class MigrateApplication {
|
|
5427
5471
|
path: _path + ".deprecated",
|
5428
5472
|
expected: "(boolean | undefined)",
|
5429
5473
|
value: input.deprecated
|
5430
|
-
}), true
|
5431
|
-
path: _path + ".examples",
|
5432
|
-
expected: "(Record<string, any> | undefined)",
|
5433
|
-
value: input.examples
|
5434
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5435
|
-
path: _path + ".examples",
|
5436
|
-
expected: "(Record<string, any> | undefined)",
|
5437
|
-
value: input.examples
|
5438
|
-
}) ].every((flag => flag));
|
5474
|
+
}), true ].every((flag => flag));
|
5439
5475
|
const _vo111 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
5440
5476
|
path: _path + ".anyOf",
|
5441
5477
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
@@ -5452,7 +5488,19 @@ class MigrateApplication {
|
|
5452
5488
|
path: _path + ".anyOf",
|
5453
5489
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
5454
5490
|
value: input.anyOf
|
5455
|
-
}),
|
5491
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5492
|
+
path: _path + ".examples",
|
5493
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5494
|
+
value: input.examples
|
5495
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5496
|
+
path: _path + ".examples",
|
5497
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5498
|
+
value: input.examples
|
5499
|
+
})) || _report(_exceptionable, {
|
5500
|
+
path: _path + ".examples",
|
5501
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5502
|
+
value: input.examples
|
5503
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5456
5504
|
path: _path + ".title",
|
5457
5505
|
expected: "(string | undefined)",
|
5458
5506
|
value: input.title
|
@@ -5464,15 +5512,7 @@ class MigrateApplication {
|
|
5464
5512
|
path: _path + ".deprecated",
|
5465
5513
|
expected: "(boolean | undefined)",
|
5466
5514
|
value: input.deprecated
|
5467
|
-
}), true
|
5468
|
-
path: _path + ".examples",
|
5469
|
-
expected: "(Record<string, any> | undefined)",
|
5470
|
-
value: input.examples
|
5471
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5472
|
-
path: _path + ".examples",
|
5473
|
-
expected: "(Record<string, any> | undefined)",
|
5474
|
-
value: input.examples
|
5475
|
-
}) ].every((flag => flag));
|
5515
|
+
}), true ].every((flag => flag));
|
5476
5516
|
const _vo112 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
5477
5517
|
path: _path + ".oneOf",
|
5478
5518
|
expected: "Array<OpenApiV3.IJsonSchema>",
|
@@ -5497,7 +5537,19 @@ class MigrateApplication {
|
|
5497
5537
|
path: _path + ".discriminator",
|
5498
5538
|
expected: "(OpenApiV3.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
5499
5539
|
value: input.discriminator
|
5500
|
-
}),
|
5540
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5541
|
+
path: _path + ".examples",
|
5542
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5543
|
+
value: input.examples
|
5544
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5545
|
+
path: _path + ".examples",
|
5546
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5547
|
+
value: input.examples
|
5548
|
+
})) || _report(_exceptionable, {
|
5549
|
+
path: _path + ".examples",
|
5550
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5551
|
+
value: input.examples
|
5552
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5501
5553
|
path: _path + ".title",
|
5502
5554
|
expected: "(string | undefined)",
|
5503
5555
|
value: input.title
|
@@ -5509,15 +5561,7 @@ class MigrateApplication {
|
|
5509
5561
|
path: _path + ".deprecated",
|
5510
5562
|
expected: "(boolean | undefined)",
|
5511
5563
|
value: input.deprecated
|
5512
|
-
}), true
|
5513
|
-
path: _path + ".examples",
|
5514
|
-
expected: "(Record<string, any> | undefined)",
|
5515
|
-
value: input.examples
|
5516
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5517
|
-
path: _path + ".examples",
|
5518
|
-
expected: "(Record<string, any> | undefined)",
|
5519
|
-
value: input.examples
|
5520
|
-
}) ].every((flag => flag));
|
5564
|
+
}), true ].every((flag => flag));
|
5521
5565
|
const _vo113 = (input, _path, _exceptionable = true) => [ "string" === typeof input.propertyName || _report(_exceptionable, {
|
5522
5566
|
path: _path + ".propertyName",
|
5523
5567
|
expected: "string",
|
@@ -5535,10 +5579,6 @@ class MigrateApplication {
|
|
5535
5579
|
path: _path + '["default"]',
|
5536
5580
|
expected: "(null | undefined)",
|
5537
5581
|
value: input["default"]
|
5538
|
-
}), "null" === input.type || _report(_exceptionable, {
|
5539
|
-
path: _path + ".type",
|
5540
|
-
expected: '"null"',
|
5541
|
-
value: input.type
|
5542
5582
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5543
5583
|
path: _path + ".title",
|
5544
5584
|
expected: "(string | undefined)",
|
@@ -5551,24 +5591,24 @@ class MigrateApplication {
|
|
5551
5591
|
path: _path + ".deprecated",
|
5552
5592
|
expected: "(boolean | undefined)",
|
5553
5593
|
value: input.deprecated
|
5554
|
-
}), true,
|
5594
|
+
}), true, "null" === input.type || _report(_exceptionable, {
|
5595
|
+
path: _path + ".type",
|
5596
|
+
expected: '"null"',
|
5597
|
+
value: input.type
|
5598
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5555
5599
|
path: _path + ".examples",
|
5556
|
-
expected: "(Record<string, any> | undefined)",
|
5600
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5557
5601
|
value: input.examples
|
5558
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5602
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5559
5603
|
path: _path + ".examples",
|
5560
|
-
expected: "(Record<string, any> | undefined)",
|
5604
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5561
5605
|
value: input.examples
|
5562
|
-
})
|
5563
|
-
|
5564
|
-
|
5565
|
-
|
5566
|
-
|
5567
|
-
|
5568
|
-
path: _path + ".type",
|
5569
|
-
expected: "undefined",
|
5570
|
-
value: input.type
|
5571
|
-
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5606
|
+
})) || _report(_exceptionable, {
|
5607
|
+
path: _path + ".examples",
|
5608
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5609
|
+
value: input.examples
|
5610
|
+
})) ].every((flag => flag));
|
5611
|
+
const _vo115 = (input, _path, _exceptionable = true) => [ true, undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5572
5612
|
path: _path + ".title",
|
5573
5613
|
expected: "(string | undefined)",
|
5574
5614
|
value: input.title
|
@@ -5580,15 +5620,27 @@ class MigrateApplication {
|
|
5580
5620
|
path: _path + ".deprecated",
|
5581
5621
|
expected: "(boolean | undefined)",
|
5582
5622
|
value: input.deprecated
|
5583
|
-
}), true,
|
5623
|
+
}), true, (null !== input.type || _report(_exceptionable, {
|
5624
|
+
path: _path + ".type",
|
5625
|
+
expected: "undefined",
|
5626
|
+
value: input.type
|
5627
|
+
})) && (undefined === input.type || _report(_exceptionable, {
|
5628
|
+
path: _path + ".type",
|
5629
|
+
expected: "undefined",
|
5630
|
+
value: input.type
|
5631
|
+
})), (null !== input.examples || _report(_exceptionable, {
|
5584
5632
|
path: _path + ".examples",
|
5585
|
-
expected: "(Record<string, any> | undefined)",
|
5633
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5586
5634
|
value: input.examples
|
5587
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5635
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5588
5636
|
path: _path + ".examples",
|
5589
|
-
expected: "(Record<string, any> | undefined)",
|
5637
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5590
5638
|
value: input.examples
|
5591
|
-
})
|
5639
|
+
})) || _report(_exceptionable, {
|
5640
|
+
path: _path + ".examples",
|
5641
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5642
|
+
value: input.examples
|
5643
|
+
})) ].every((flag => flag));
|
5592
5644
|
const _vo116 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
5593
5645
|
const value = input[key];
|
5594
5646
|
if (undefined === value) return true;
|
@@ -5683,7 +5735,19 @@ class MigrateApplication {
|
|
5683
5735
|
path: _path + ".$ref",
|
5684
5736
|
expected: "`#/components/examples/${string}`",
|
5685
5737
|
value: input.$ref
|
5686
|
-
}),
|
5738
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5739
|
+
path: _path + ".examples",
|
5740
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5741
|
+
value: input.examples
|
5742
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5743
|
+
path: _path + ".examples",
|
5744
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5745
|
+
value: input.examples
|
5746
|
+
})) || _report(_exceptionable, {
|
5747
|
+
path: _path + ".examples",
|
5748
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5749
|
+
value: input.examples
|
5750
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5687
5751
|
path: _path + ".title",
|
5688
5752
|
expected: "(string | undefined)",
|
5689
5753
|
value: input.title
|
@@ -5695,15 +5759,7 @@ class MigrateApplication {
|
|
5695
5759
|
path: _path + ".deprecated",
|
5696
5760
|
expected: "(boolean | undefined)",
|
5697
5761
|
value: input.deprecated
|
5698
|
-
}), true
|
5699
|
-
path: _path + ".examples",
|
5700
|
-
expected: "(Record<string, any> | undefined)",
|
5701
|
-
value: input.examples
|
5702
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5703
|
-
path: _path + ".examples",
|
5704
|
-
expected: "(Record<string, any> | undefined)",
|
5705
|
-
value: input.examples
|
5706
|
-
}) ].every((flag => flag));
|
5762
|
+
}), true ].every((flag => flag));
|
5707
5763
|
const _vo123 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
5708
5764
|
const value = input[key];
|
5709
5765
|
if (undefined === value) return true;
|
@@ -5750,7 +5806,19 @@ class MigrateApplication {
|
|
5750
5806
|
path: _path + ".$ref",
|
5751
5807
|
expected: "`#/components/headers/${string}`",
|
5752
5808
|
value: input.$ref
|
5753
|
-
}),
|
5809
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
5810
|
+
path: _path + ".examples",
|
5811
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5812
|
+
value: input.examples
|
5813
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5814
|
+
path: _path + ".examples",
|
5815
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5816
|
+
value: input.examples
|
5817
|
+
})) || _report(_exceptionable, {
|
5818
|
+
path: _path + ".examples",
|
5819
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
5820
|
+
value: input.examples
|
5821
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
5754
5822
|
path: _path + ".title",
|
5755
5823
|
expected: "(string | undefined)",
|
5756
5824
|
value: input.title
|
@@ -5762,15 +5830,7 @@ class MigrateApplication {
|
|
5762
5830
|
path: _path + ".deprecated",
|
5763
5831
|
expected: "(boolean | undefined)",
|
5764
5832
|
value: input.deprecated
|
5765
|
-
}), true
|
5766
|
-
path: _path + ".examples",
|
5767
|
-
expected: "(Record<string, any> | undefined)",
|
5768
|
-
value: input.examples
|
5769
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
5770
|
-
path: _path + ".examples",
|
5771
|
-
expected: "(Record<string, any> | undefined)",
|
5772
|
-
value: input.examples
|
5773
|
-
}) ].every((flag => flag));
|
5833
|
+
}), true ].every((flag => flag));
|
5774
5834
|
const _vo126 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
5775
5835
|
const value = input[key];
|
5776
5836
|
if (undefined === value) return true;
|
@@ -6173,7 +6233,19 @@ class MigrateApplication {
|
|
6173
6233
|
path: _path + ".$ref",
|
6174
6234
|
expected: "`#/components/parameters/${string}`",
|
6175
6235
|
value: input.$ref
|
6176
|
-
}),
|
6236
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
6237
|
+
path: _path + ".examples",
|
6238
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6239
|
+
value: input.examples
|
6240
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
6241
|
+
path: _path + ".examples",
|
6242
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6243
|
+
value: input.examples
|
6244
|
+
})) || _report(_exceptionable, {
|
6245
|
+
path: _path + ".examples",
|
6246
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6247
|
+
value: input.examples
|
6248
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
6177
6249
|
path: _path + ".title",
|
6178
6250
|
expected: "(string | undefined)",
|
6179
6251
|
value: input.title
|
@@ -6185,15 +6257,7 @@ class MigrateApplication {
|
|
6185
6257
|
path: _path + ".deprecated",
|
6186
6258
|
expected: "(boolean | undefined)",
|
6187
6259
|
value: input.deprecated
|
6188
|
-
}), true
|
6189
|
-
path: _path + ".examples",
|
6190
|
-
expected: "(Record<string, any> | undefined)",
|
6191
|
-
value: input.examples
|
6192
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
6193
|
-
path: _path + ".examples",
|
6194
|
-
expected: "(Record<string, any> | undefined)",
|
6195
|
-
value: input.examples
|
6196
|
-
}) ].every((flag => flag));
|
6260
|
+
}), true ].every((flag => flag));
|
6197
6261
|
const _vo145 = (input, _path, _exceptionable = true) => [ undefined === input.operationId || "string" === typeof input.operationId || _report(_exceptionable, {
|
6198
6262
|
path: _path + ".operationId",
|
6199
6263
|
expected: "(string | undefined)",
|
@@ -6291,7 +6355,19 @@ class MigrateApplication {
|
|
6291
6355
|
path: _path + ".$ref",
|
6292
6356
|
expected: "`#/components/requestBodies/${string}`",
|
6293
6357
|
value: input.$ref
|
6294
|
-
}),
|
6358
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
6359
|
+
path: _path + ".examples",
|
6360
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6361
|
+
value: input.examples
|
6362
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
6363
|
+
path: _path + ".examples",
|
6364
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6365
|
+
value: input.examples
|
6366
|
+
})) || _report(_exceptionable, {
|
6367
|
+
path: _path + ".examples",
|
6368
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6369
|
+
value: input.examples
|
6370
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
6295
6371
|
path: _path + ".title",
|
6296
6372
|
expected: "(string | undefined)",
|
6297
6373
|
value: input.title
|
@@ -6303,15 +6379,7 @@ class MigrateApplication {
|
|
6303
6379
|
path: _path + ".deprecated",
|
6304
6380
|
expected: "(boolean | undefined)",
|
6305
6381
|
value: input.deprecated
|
6306
|
-
}), true
|
6307
|
-
path: _path + ".examples",
|
6308
|
-
expected: "(Record<string, any> | undefined)",
|
6309
|
-
value: input.examples
|
6310
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
6311
|
-
path: _path + ".examples",
|
6312
|
-
expected: "(Record<string, any> | undefined)",
|
6313
|
-
value: input.examples
|
6314
|
-
}) ].every((flag => flag));
|
6382
|
+
}), true ].every((flag => flag));
|
6315
6383
|
const _vo147 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
6316
6384
|
const value = input[key];
|
6317
6385
|
if (undefined === value) return true;
|
@@ -6329,7 +6397,19 @@ class MigrateApplication {
|
|
6329
6397
|
path: _path + ".$ref",
|
6330
6398
|
expected: "`#/components/responses/${string}`",
|
6331
6399
|
value: input.$ref
|
6332
|
-
}),
|
6400
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
6401
|
+
path: _path + ".examples",
|
6402
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6403
|
+
value: input.examples
|
6404
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
6405
|
+
path: _path + ".examples",
|
6406
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6407
|
+
value: input.examples
|
6408
|
+
})) || _report(_exceptionable, {
|
6409
|
+
path: _path + ".examples",
|
6410
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6411
|
+
value: input.examples
|
6412
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
6333
6413
|
path: _path + ".title",
|
6334
6414
|
expected: "(string | undefined)",
|
6335
6415
|
value: input.title
|
@@ -6341,15 +6421,7 @@ class MigrateApplication {
|
|
6341
6421
|
path: _path + ".deprecated",
|
6342
6422
|
expected: "(boolean | undefined)",
|
6343
6423
|
value: input.deprecated
|
6344
|
-
}), true
|
6345
|
-
path: _path + ".examples",
|
6346
|
-
expected: "(Record<string, any> | undefined)",
|
6347
|
-
value: input.examples
|
6348
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
6349
|
-
path: _path + ".examples",
|
6350
|
-
expected: "(Record<string, any> | undefined)",
|
6351
|
-
value: input.examples
|
6352
|
-
}) ].every((flag => flag));
|
6424
|
+
}), true ].every((flag => flag));
|
6353
6425
|
const _vo149 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name || _report(_exceptionable, {
|
6354
6426
|
path: _path + ".name",
|
6355
6427
|
expected: "string",
|
@@ -6668,7 +6740,19 @@ class MigrateApplication {
|
|
6668
6740
|
path: _path + ".nullable",
|
6669
6741
|
expected: "(boolean | undefined)",
|
6670
6742
|
value: input.nullable
|
6671
|
-
}),
|
6743
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
6744
|
+
path: _path + ".examples",
|
6745
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6746
|
+
value: input.examples
|
6747
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
6748
|
+
path: _path + ".examples",
|
6749
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6750
|
+
value: input.examples
|
6751
|
+
})) || _report(_exceptionable, {
|
6752
|
+
path: _path + ".examples",
|
6753
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6754
|
+
value: input.examples
|
6755
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
6672
6756
|
path: _path + ".title",
|
6673
6757
|
expected: "(string | undefined)",
|
6674
6758
|
value: input.title
|
@@ -6680,15 +6764,7 @@ class MigrateApplication {
|
|
6680
6764
|
path: _path + ".deprecated",
|
6681
6765
|
expected: "(boolean | undefined)",
|
6682
6766
|
value: input.deprecated
|
6683
|
-
}), true, undefined === input.
|
6684
|
-
path: _path + ".examples",
|
6685
|
-
expected: "(Record<string, any> | undefined)",
|
6686
|
-
value: input.examples
|
6687
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
6688
|
-
path: _path + ".examples",
|
6689
|
-
expected: "(Record<string, any> | undefined)",
|
6690
|
-
value: input.examples
|
6691
|
-
}), undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
|
6767
|
+
}), true, undefined === input.minimum || "number" === typeof input.minimum || _report(_exceptionable, {
|
6692
6768
|
path: _path + ".minimum",
|
6693
6769
|
expected: "(number | undefined)",
|
6694
6770
|
value: input.minimum
|
@@ -6917,7 +6993,19 @@ class MigrateApplication {
|
|
6917
6993
|
path: _path + ".nullable",
|
6918
6994
|
expected: "(boolean | undefined)",
|
6919
6995
|
value: input.nullable
|
6920
|
-
}),
|
6996
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
6997
|
+
path: _path + ".examples",
|
6998
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6999
|
+
value: input.examples
|
7000
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7001
|
+
path: _path + ".examples",
|
7002
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7003
|
+
value: input.examples
|
7004
|
+
})) || _report(_exceptionable, {
|
7005
|
+
path: _path + ".examples",
|
7006
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7007
|
+
value: input.examples
|
7008
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
6921
7009
|
path: _path + ".title",
|
6922
7010
|
expected: "(string | undefined)",
|
6923
7011
|
value: input.title
|
@@ -6929,15 +7017,7 @@ class MigrateApplication {
|
|
6929
7017
|
path: _path + ".deprecated",
|
6930
7018
|
expected: "(boolean | undefined)",
|
6931
7019
|
value: input.deprecated
|
6932
|
-
}), true
|
6933
|
-
path: _path + ".examples",
|
6934
|
-
expected: "(Record<string, any> | undefined)",
|
6935
|
-
value: input.examples
|
6936
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
6937
|
-
path: _path + ".examples",
|
6938
|
-
expected: "(Record<string, any> | undefined)",
|
6939
|
-
value: input.examples
|
6940
|
-
}) ].every((flag => flag));
|
7020
|
+
}), true ].every((flag => flag));
|
6941
7021
|
const _vo161 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
6942
7022
|
path: _path + ".nullable",
|
6943
7023
|
expected: "(boolean | undefined)",
|
@@ -6958,10 +7038,6 @@ class MigrateApplication {
|
|
6958
7038
|
path: _path + '["enum"]',
|
6959
7039
|
expected: "(Array<boolean | null> | undefined)",
|
6960
7040
|
value: input["enum"]
|
6961
|
-
}), "boolean" === input.type || _report(_exceptionable, {
|
6962
|
-
path: _path + ".type",
|
6963
|
-
expected: '"boolean"',
|
6964
|
-
value: input.type
|
6965
7041
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
6966
7042
|
path: _path + ".title",
|
6967
7043
|
expected: "(string | undefined)",
|
@@ -6974,15 +7050,23 @@ class MigrateApplication {
|
|
6974
7050
|
path: _path + ".deprecated",
|
6975
7051
|
expected: "(boolean | undefined)",
|
6976
7052
|
value: input.deprecated
|
6977
|
-
}), true,
|
7053
|
+
}), true, "boolean" === input.type || _report(_exceptionable, {
|
7054
|
+
path: _path + ".type",
|
7055
|
+
expected: '"boolean"',
|
7056
|
+
value: input.type
|
7057
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
6978
7058
|
path: _path + ".examples",
|
6979
|
-
expected: "(Record<string, any> | undefined)",
|
7059
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6980
7060
|
value: input.examples
|
6981
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7061
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
6982
7062
|
path: _path + ".examples",
|
6983
|
-
expected: "(Record<string, any> | undefined)",
|
7063
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
6984
7064
|
value: input.examples
|
6985
|
-
})
|
7065
|
+
})) || _report(_exceptionable, {
|
7066
|
+
path: _path + ".examples",
|
7067
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7068
|
+
value: input.examples
|
7069
|
+
})) ].every((flag => flag));
|
6986
7070
|
const _vo162 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
6987
7071
|
path: _path + ".nullable",
|
6988
7072
|
expected: "(boolean | undefined)",
|
@@ -7051,10 +7135,6 @@ class MigrateApplication {
|
|
7051
7135
|
path: _path + ".multipleOf",
|
7052
7136
|
expected: '((number & Type<"uint64"> & ExclusiveMinimum<0>) | undefined)',
|
7053
7137
|
value: input.multipleOf
|
7054
|
-
}), "integer" === input.type || _report(_exceptionable, {
|
7055
|
-
path: _path + ".type",
|
7056
|
-
expected: '"integer"',
|
7057
|
-
value: input.type
|
7058
7138
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7059
7139
|
path: _path + ".title",
|
7060
7140
|
expected: "(string | undefined)",
|
@@ -7067,15 +7147,23 @@ class MigrateApplication {
|
|
7067
7147
|
path: _path + ".deprecated",
|
7068
7148
|
expected: "(boolean | undefined)",
|
7069
7149
|
value: input.deprecated
|
7070
|
-
}), true,
|
7150
|
+
}), true, "integer" === input.type || _report(_exceptionable, {
|
7151
|
+
path: _path + ".type",
|
7152
|
+
expected: '"integer"',
|
7153
|
+
value: input.type
|
7154
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7071
7155
|
path: _path + ".examples",
|
7072
|
-
expected: "(Record<string, any> | undefined)",
|
7156
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7073
7157
|
value: input.examples
|
7074
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7158
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7075
7159
|
path: _path + ".examples",
|
7076
|
-
expected: "(Record<string, any> | undefined)",
|
7160
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7077
7161
|
value: input.examples
|
7078
|
-
})
|
7162
|
+
})) || _report(_exceptionable, {
|
7163
|
+
path: _path + ".examples",
|
7164
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7165
|
+
value: input.examples
|
7166
|
+
})) ].every((flag => flag));
|
7079
7167
|
const _vo163 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7080
7168
|
path: _path + ".nullable",
|
7081
7169
|
expected: "(boolean | undefined)",
|
@@ -7120,10 +7208,6 @@ class MigrateApplication {
|
|
7120
7208
|
path: _path + ".multipleOf",
|
7121
7209
|
expected: "((number & ExclusiveMinimum<0>) | undefined)",
|
7122
7210
|
value: input.multipleOf
|
7123
|
-
}), "number" === input.type || _report(_exceptionable, {
|
7124
|
-
path: _path + ".type",
|
7125
|
-
expected: '"number"',
|
7126
|
-
value: input.type
|
7127
7211
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7128
7212
|
path: _path + ".title",
|
7129
7213
|
expected: "(string | undefined)",
|
@@ -7136,15 +7220,23 @@ class MigrateApplication {
|
|
7136
7220
|
path: _path + ".deprecated",
|
7137
7221
|
expected: "(boolean | undefined)",
|
7138
7222
|
value: input.deprecated
|
7139
|
-
}), true,
|
7223
|
+
}), true, "number" === input.type || _report(_exceptionable, {
|
7224
|
+
path: _path + ".type",
|
7225
|
+
expected: '"number"',
|
7226
|
+
value: input.type
|
7227
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7140
7228
|
path: _path + ".examples",
|
7141
|
-
expected: "(Record<string, any> | undefined)",
|
7229
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7142
7230
|
value: input.examples
|
7143
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7231
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7144
7232
|
path: _path + ".examples",
|
7145
|
-
expected: "(Record<string, any> | undefined)",
|
7233
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7146
7234
|
value: input.examples
|
7147
|
-
})
|
7235
|
+
})) || _report(_exceptionable, {
|
7236
|
+
path: _path + ".examples",
|
7237
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7238
|
+
value: input.examples
|
7239
|
+
})) ].every((flag => flag));
|
7148
7240
|
const _vo164 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7149
7241
|
path: _path + ".nullable",
|
7150
7242
|
expected: "(boolean | undefined)",
|
@@ -7193,10 +7285,6 @@ class MigrateApplication {
|
|
7193
7285
|
path: _path + ".maxLength",
|
7194
7286
|
expected: '((number & Type<"uint64">) | undefined)',
|
7195
7287
|
value: input.maxLength
|
7196
|
-
}), "string" === input.type || _report(_exceptionable, {
|
7197
|
-
path: _path + ".type",
|
7198
|
-
expected: '"string"',
|
7199
|
-
value: input.type
|
7200
7288
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7201
7289
|
path: _path + ".title",
|
7202
7290
|
expected: "(string | undefined)",
|
@@ -7209,15 +7297,23 @@ class MigrateApplication {
|
|
7209
7297
|
path: _path + ".deprecated",
|
7210
7298
|
expected: "(boolean | undefined)",
|
7211
7299
|
value: input.deprecated
|
7212
|
-
}), true,
|
7300
|
+
}), true, "string" === input.type || _report(_exceptionable, {
|
7301
|
+
path: _path + ".type",
|
7302
|
+
expected: '"string"',
|
7303
|
+
value: input.type
|
7304
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7213
7305
|
path: _path + ".examples",
|
7214
|
-
expected: "(Record<string, any> | undefined)",
|
7306
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7215
7307
|
value: input.examples
|
7216
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7308
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7217
7309
|
path: _path + ".examples",
|
7218
|
-
expected: "(Record<string, any> | undefined)",
|
7310
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7219
7311
|
value: input.examples
|
7220
|
-
})
|
7312
|
+
})) || _report(_exceptionable, {
|
7313
|
+
path: _path + ".examples",
|
7314
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7315
|
+
value: input.examples
|
7316
|
+
})) ].every((flag => flag));
|
7221
7317
|
const _vo165 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7222
7318
|
path: _path + ".nullable",
|
7223
7319
|
expected: "(boolean | undefined)",
|
@@ -7290,10 +7386,6 @@ class MigrateApplication {
|
|
7290
7386
|
path: _path + ".maxItems",
|
7291
7387
|
expected: '((number & Type<"uint64">) | undefined)',
|
7292
7388
|
value: input.maxItems
|
7293
|
-
}), "array" === input.type || _report(_exceptionable, {
|
7294
|
-
path: _path + ".type",
|
7295
|
-
expected: '"array"',
|
7296
|
-
value: input.type
|
7297
7389
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7298
7390
|
path: _path + ".title",
|
7299
7391
|
expected: "(string | undefined)",
|
@@ -7306,15 +7398,23 @@ class MigrateApplication {
|
|
7306
7398
|
path: _path + ".deprecated",
|
7307
7399
|
expected: "(boolean | undefined)",
|
7308
7400
|
value: input.deprecated
|
7309
|
-
}), true,
|
7401
|
+
}), true, "array" === input.type || _report(_exceptionable, {
|
7402
|
+
path: _path + ".type",
|
7403
|
+
expected: '"array"',
|
7404
|
+
value: input.type
|
7405
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7310
7406
|
path: _path + ".examples",
|
7311
|
-
expected: "(Record<string, any> | undefined)",
|
7407
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7312
7408
|
value: input.examples
|
7313
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7409
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7314
7410
|
path: _path + ".examples",
|
7315
|
-
expected: "(Record<string, any> | undefined)",
|
7411
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7316
7412
|
value: input.examples
|
7317
|
-
})
|
7413
|
+
})) || _report(_exceptionable, {
|
7414
|
+
path: _path + ".examples",
|
7415
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7416
|
+
value: input.examples
|
7417
|
+
})) ].every((flag => flag));
|
7318
7418
|
const _vo166 = (input, _path, _exceptionable = true) => [ undefined === input.nullable || "boolean" === typeof input.nullable || _report(_exceptionable, {
|
7319
7419
|
path: _path + ".nullable",
|
7320
7420
|
expected: "(boolean | undefined)",
|
@@ -7359,10 +7459,6 @@ class MigrateApplication {
|
|
7359
7459
|
path: _path + ".minProperties",
|
7360
7460
|
expected: "(number | undefined)",
|
7361
7461
|
value: input.minProperties
|
7362
|
-
}), "object" === input.type || _report(_exceptionable, {
|
7363
|
-
path: _path + ".type",
|
7364
|
-
expected: '"object"',
|
7365
|
-
value: input.type
|
7366
7462
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7367
7463
|
path: _path + ".title",
|
7368
7464
|
expected: "(string | undefined)",
|
@@ -7375,20 +7471,40 @@ class MigrateApplication {
|
|
7375
7471
|
path: _path + ".deprecated",
|
7376
7472
|
expected: "(boolean | undefined)",
|
7377
7473
|
value: input.deprecated
|
7378
|
-
}), true,
|
7474
|
+
}), true, "object" === input.type || _report(_exceptionable, {
|
7475
|
+
path: _path + ".type",
|
7476
|
+
expected: '"object"',
|
7477
|
+
value: input.type
|
7478
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7379
7479
|
path: _path + ".examples",
|
7380
|
-
expected: "(Record<string, any> | undefined)",
|
7480
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7381
7481
|
value: input.examples
|
7382
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7482
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7383
7483
|
path: _path + ".examples",
|
7384
|
-
expected: "(Record<string, any> | undefined)",
|
7484
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7385
7485
|
value: input.examples
|
7386
|
-
})
|
7486
|
+
})) || _report(_exceptionable, {
|
7487
|
+
path: _path + ".examples",
|
7488
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7489
|
+
value: input.examples
|
7490
|
+
})) ].every((flag => flag));
|
7387
7491
|
const _vo167 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref || _report(_exceptionable, {
|
7388
7492
|
path: _path + ".$ref",
|
7389
7493
|
expected: "string",
|
7390
7494
|
value: input.$ref
|
7391
|
-
}),
|
7495
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7496
|
+
path: _path + ".examples",
|
7497
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7498
|
+
value: input.examples
|
7499
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7500
|
+
path: _path + ".examples",
|
7501
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7502
|
+
value: input.examples
|
7503
|
+
})) || _report(_exceptionable, {
|
7504
|
+
path: _path + ".examples",
|
7505
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7506
|
+
value: input.examples
|
7507
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7392
7508
|
path: _path + ".title",
|
7393
7509
|
expected: "(string | undefined)",
|
7394
7510
|
value: input.title
|
@@ -7400,20 +7516,24 @@ class MigrateApplication {
|
|
7400
7516
|
path: _path + ".deprecated",
|
7401
7517
|
expected: "(boolean | undefined)",
|
7402
7518
|
value: input.deprecated
|
7403
|
-
}), true
|
7404
|
-
path: _path + ".examples",
|
7405
|
-
expected: "(Record<string, any> | undefined)",
|
7406
|
-
value: input.examples
|
7407
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7408
|
-
path: _path + ".examples",
|
7409
|
-
expected: "(Record<string, any> | undefined)",
|
7410
|
-
value: input.examples
|
7411
|
-
}) ].every((flag => flag));
|
7519
|
+
}), true ].every((flag => flag));
|
7412
7520
|
const _vo168 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$recursiveRef || _report(_exceptionable, {
|
7413
7521
|
path: _path + ".$recursiveRef",
|
7414
7522
|
expected: "string",
|
7415
7523
|
value: input.$recursiveRef
|
7416
|
-
}),
|
7524
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7525
|
+
path: _path + ".examples",
|
7526
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7527
|
+
value: input.examples
|
7528
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7529
|
+
path: _path + ".examples",
|
7530
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7531
|
+
value: input.examples
|
7532
|
+
})) || _report(_exceptionable, {
|
7533
|
+
path: _path + ".examples",
|
7534
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7535
|
+
value: input.examples
|
7536
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7417
7537
|
path: _path + ".title",
|
7418
7538
|
expected: "(string | undefined)",
|
7419
7539
|
value: input.title
|
@@ -7425,15 +7545,7 @@ class MigrateApplication {
|
|
7425
7545
|
path: _path + ".deprecated",
|
7426
7546
|
expected: "(boolean | undefined)",
|
7427
7547
|
value: input.deprecated
|
7428
|
-
}), true
|
7429
|
-
path: _path + ".examples",
|
7430
|
-
expected: "(Record<string, any> | undefined)",
|
7431
|
-
value: input.examples
|
7432
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7433
|
-
path: _path + ".examples",
|
7434
|
-
expected: "(Record<string, any> | undefined)",
|
7435
|
-
value: input.examples
|
7436
|
-
}) ].every((flag => flag));
|
7548
|
+
}), true ].every((flag => flag));
|
7437
7549
|
const _vo169 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.allOf) || _report(_exceptionable, {
|
7438
7550
|
path: _path + ".allOf",
|
7439
7551
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
@@ -7450,7 +7562,19 @@ class MigrateApplication {
|
|
7450
7562
|
path: _path + ".allOf",
|
7451
7563
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
7452
7564
|
value: input.allOf
|
7453
|
-
}),
|
7565
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7566
|
+
path: _path + ".examples",
|
7567
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7568
|
+
value: input.examples
|
7569
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7570
|
+
path: _path + ".examples",
|
7571
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7572
|
+
value: input.examples
|
7573
|
+
})) || _report(_exceptionable, {
|
7574
|
+
path: _path + ".examples",
|
7575
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7576
|
+
value: input.examples
|
7577
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7454
7578
|
path: _path + ".title",
|
7455
7579
|
expected: "(string | undefined)",
|
7456
7580
|
value: input.title
|
@@ -7462,15 +7586,7 @@ class MigrateApplication {
|
|
7462
7586
|
path: _path + ".deprecated",
|
7463
7587
|
expected: "(boolean | undefined)",
|
7464
7588
|
value: input.deprecated
|
7465
|
-
}), true
|
7466
|
-
path: _path + ".examples",
|
7467
|
-
expected: "(Record<string, any> | undefined)",
|
7468
|
-
value: input.examples
|
7469
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7470
|
-
path: _path + ".examples",
|
7471
|
-
expected: "(Record<string, any> | undefined)",
|
7472
|
-
value: input.examples
|
7473
|
-
}) ].every((flag => flag));
|
7589
|
+
}), true ].every((flag => flag));
|
7474
7590
|
const _vo170 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
7475
7591
|
path: _path + ".anyOf",
|
7476
7592
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
@@ -7487,7 +7603,19 @@ class MigrateApplication {
|
|
7487
7603
|
path: _path + ".anyOf",
|
7488
7604
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
7489
7605
|
value: input.anyOf
|
7490
|
-
}),
|
7606
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7607
|
+
path: _path + ".examples",
|
7608
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7609
|
+
value: input.examples
|
7610
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7611
|
+
path: _path + ".examples",
|
7612
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7613
|
+
value: input.examples
|
7614
|
+
})) || _report(_exceptionable, {
|
7615
|
+
path: _path + ".examples",
|
7616
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7617
|
+
value: input.examples
|
7618
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7491
7619
|
path: _path + ".title",
|
7492
7620
|
expected: "(string | undefined)",
|
7493
7621
|
value: input.title
|
@@ -7499,15 +7627,7 @@ class MigrateApplication {
|
|
7499
7627
|
path: _path + ".deprecated",
|
7500
7628
|
expected: "(boolean | undefined)",
|
7501
7629
|
value: input.deprecated
|
7502
|
-
}), true
|
7503
|
-
path: _path + ".examples",
|
7504
|
-
expected: "(Record<string, any> | undefined)",
|
7505
|
-
value: input.examples
|
7506
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7507
|
-
path: _path + ".examples",
|
7508
|
-
expected: "(Record<string, any> | undefined)",
|
7509
|
-
value: input.examples
|
7510
|
-
}) ].every((flag => flag));
|
7630
|
+
}), true ].every((flag => flag));
|
7511
7631
|
const _vo171 = (input, _path, _exceptionable = true) => [ (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
7512
7632
|
path: _path + ".oneOf",
|
7513
7633
|
expected: "Array<OpenApiV3_1.IJsonSchema>",
|
@@ -7532,7 +7652,19 @@ class MigrateApplication {
|
|
7532
7652
|
path: _path + ".discriminator",
|
7533
7653
|
expected: "(OpenApiV3_1.IJsonSchema.IOneOf.IDiscriminator | undefined)",
|
7534
7654
|
value: input.discriminator
|
7535
|
-
}),
|
7655
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7656
|
+
path: _path + ".examples",
|
7657
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7658
|
+
value: input.examples
|
7659
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7660
|
+
path: _path + ".examples",
|
7661
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7662
|
+
value: input.examples
|
7663
|
+
})) || _report(_exceptionable, {
|
7664
|
+
path: _path + ".examples",
|
7665
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7666
|
+
value: input.examples
|
7667
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7536
7668
|
path: _path + ".title",
|
7537
7669
|
expected: "(string | undefined)",
|
7538
7670
|
value: input.title
|
@@ -7544,15 +7676,7 @@ class MigrateApplication {
|
|
7544
7676
|
path: _path + ".deprecated",
|
7545
7677
|
expected: "(boolean | undefined)",
|
7546
7678
|
value: input.deprecated
|
7547
|
-
}), true
|
7548
|
-
path: _path + ".examples",
|
7549
|
-
expected: "(Record<string, any> | undefined)",
|
7550
|
-
value: input.examples
|
7551
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7552
|
-
path: _path + ".examples",
|
7553
|
-
expected: "(Record<string, any> | undefined)",
|
7554
|
-
value: input.examples
|
7555
|
-
}) ].every((flag => flag));
|
7679
|
+
}), true ].every((flag => flag));
|
7556
7680
|
const _vo172 = (input, _path, _exceptionable = true) => [ "string" === typeof input.propertyName || _report(_exceptionable, {
|
7557
7681
|
path: _path + ".propertyName",
|
7558
7682
|
expected: "string",
|
@@ -7570,10 +7694,6 @@ class MigrateApplication {
|
|
7570
7694
|
path: _path + '["default"]',
|
7571
7695
|
expected: "(null | undefined)",
|
7572
7696
|
value: input["default"]
|
7573
|
-
}), "null" === input.type || _report(_exceptionable, {
|
7574
|
-
path: _path + ".type",
|
7575
|
-
expected: '"null"',
|
7576
|
-
value: input.type
|
7577
7697
|
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7578
7698
|
path: _path + ".title",
|
7579
7699
|
expected: "(string | undefined)",
|
@@ -7586,15 +7706,23 @@ class MigrateApplication {
|
|
7586
7706
|
path: _path + ".deprecated",
|
7587
7707
|
expected: "(boolean | undefined)",
|
7588
7708
|
value: input.deprecated
|
7589
|
-
}), true,
|
7709
|
+
}), true, "null" === input.type || _report(_exceptionable, {
|
7710
|
+
path: _path + ".type",
|
7711
|
+
expected: '"null"',
|
7712
|
+
value: input.type
|
7713
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7590
7714
|
path: _path + ".examples",
|
7591
|
-
expected: "(Record<string, any> | undefined)",
|
7715
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7592
7716
|
value: input.examples
|
7593
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7717
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7594
7718
|
path: _path + ".examples",
|
7595
|
-
expected: "(Record<string, any> | undefined)",
|
7719
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7596
7720
|
value: input.examples
|
7597
|
-
})
|
7721
|
+
})) || _report(_exceptionable, {
|
7722
|
+
path: _path + ".examples",
|
7723
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7724
|
+
value: input.examples
|
7725
|
+
})) ].every((flag => flag));
|
7598
7726
|
const _vo174 = (input, _path, _exceptionable = true) => [ (null !== input.type || _report(_exceptionable, {
|
7599
7727
|
path: _path + ".type",
|
7600
7728
|
expected: "undefined",
|
@@ -7615,15 +7743,19 @@ class MigrateApplication {
|
|
7615
7743
|
path: _path + ".deprecated",
|
7616
7744
|
expected: "(boolean | undefined)",
|
7617
7745
|
value: input.deprecated
|
7618
|
-
}), true,
|
7746
|
+
}), true, (null !== input.examples || _report(_exceptionable, {
|
7619
7747
|
path: _path + ".examples",
|
7620
|
-
expected: "(Record<string, any> | undefined)",
|
7748
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7621
7749
|
value: input.examples
|
7622
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7750
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7623
7751
|
path: _path + ".examples",
|
7624
|
-
expected: "(Record<string, any> | undefined)",
|
7752
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7625
7753
|
value: input.examples
|
7626
|
-
})
|
7754
|
+
})) || _report(_exceptionable, {
|
7755
|
+
path: _path + ".examples",
|
7756
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7757
|
+
value: input.examples
|
7758
|
+
})) ].every((flag => flag));
|
7627
7759
|
const _vo175 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
7628
7760
|
const value = input[key];
|
7629
7761
|
if (undefined === value) return true;
|
@@ -7805,7 +7937,19 @@ class MigrateApplication {
|
|
7805
7937
|
path: _path + ".$ref",
|
7806
7938
|
expected: "`#/components/examples/${string}`",
|
7807
7939
|
value: input.$ref
|
7808
|
-
}),
|
7940
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7941
|
+
path: _path + ".examples",
|
7942
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7943
|
+
value: input.examples
|
7944
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7945
|
+
path: _path + ".examples",
|
7946
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7947
|
+
value: input.examples
|
7948
|
+
})) || _report(_exceptionable, {
|
7949
|
+
path: _path + ".examples",
|
7950
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7951
|
+
value: input.examples
|
7952
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7809
7953
|
path: _path + ".title",
|
7810
7954
|
expected: "(string | undefined)",
|
7811
7955
|
value: input.title
|
@@ -7817,20 +7961,24 @@ class MigrateApplication {
|
|
7817
7961
|
path: _path + ".deprecated",
|
7818
7962
|
expected: "(boolean | undefined)",
|
7819
7963
|
value: input.deprecated
|
7820
|
-
}), true
|
7821
|
-
path: _path + ".examples",
|
7822
|
-
expected: "(Record<string, any> | undefined)",
|
7823
|
-
value: input.examples
|
7824
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7825
|
-
path: _path + ".examples",
|
7826
|
-
expected: "(Record<string, any> | undefined)",
|
7827
|
-
value: input.examples
|
7828
|
-
}) ].every((flag => flag));
|
7964
|
+
}), true ].every((flag => flag));
|
7829
7965
|
const _vo181 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref && RegExp(/^#\/components\/headers\/(.*)/).test(input.$ref) || _report(_exceptionable, {
|
7830
7966
|
path: _path + ".$ref",
|
7831
7967
|
expected: "`#/components/headers/${string}`",
|
7832
7968
|
value: input.$ref
|
7833
|
-
}),
|
7969
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7970
|
+
path: _path + ".examples",
|
7971
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7972
|
+
value: input.examples
|
7973
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7974
|
+
path: _path + ".examples",
|
7975
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7976
|
+
value: input.examples
|
7977
|
+
})) || _report(_exceptionable, {
|
7978
|
+
path: _path + ".examples",
|
7979
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
7980
|
+
value: input.examples
|
7981
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7834
7982
|
path: _path + ".title",
|
7835
7983
|
expected: "(string | undefined)",
|
7836
7984
|
value: input.title
|
@@ -7842,20 +7990,24 @@ class MigrateApplication {
|
|
7842
7990
|
path: _path + ".deprecated",
|
7843
7991
|
expected: "(boolean | undefined)",
|
7844
7992
|
value: input.deprecated
|
7845
|
-
}), true
|
7846
|
-
path: _path + ".examples",
|
7847
|
-
expected: "(Record<string, any> | undefined)",
|
7848
|
-
value: input.examples
|
7849
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7850
|
-
path: _path + ".examples",
|
7851
|
-
expected: "(Record<string, any> | undefined)",
|
7852
|
-
value: input.examples
|
7853
|
-
}) ].every((flag => flag));
|
7993
|
+
}), true ].every((flag => flag));
|
7854
7994
|
const _vo182 = (input, _path, _exceptionable = true) => [ "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) || _report(_exceptionable, {
|
7855
7995
|
path: _path + ".$ref",
|
7856
7996
|
expected: "`#/components/parameters/${string}`",
|
7857
7997
|
value: input.$ref
|
7858
|
-
}),
|
7998
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
7999
|
+
path: _path + ".examples",
|
8000
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8001
|
+
value: input.examples
|
8002
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
8003
|
+
path: _path + ".examples",
|
8004
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8005
|
+
value: input.examples
|
8006
|
+
})) || _report(_exceptionable, {
|
8007
|
+
path: _path + ".examples",
|
8008
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8009
|
+
value: input.examples
|
8010
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
7859
8011
|
path: _path + ".title",
|
7860
8012
|
expected: "(string | undefined)",
|
7861
8013
|
value: input.title
|
@@ -7867,15 +8019,7 @@ class MigrateApplication {
|
|
7867
8019
|
path: _path + ".deprecated",
|
7868
8020
|
expected: "(boolean | undefined)",
|
7869
8021
|
value: input.deprecated
|
7870
|
-
}), true
|
7871
|
-
path: _path + ".examples",
|
7872
|
-
expected: "(Record<string, any> | undefined)",
|
7873
|
-
value: input.examples
|
7874
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
7875
|
-
path: _path + ".examples",
|
7876
|
-
expected: "(Record<string, any> | undefined)",
|
7877
|
-
value: input.examples
|
7878
|
-
}) ].every((flag => flag));
|
8022
|
+
}), true ].every((flag => flag));
|
7879
8023
|
const _vo183 = (input, _path, _exceptionable = true) => [ undefined === input.operationId || "string" === typeof input.operationId || _report(_exceptionable, {
|
7880
8024
|
path: _path + ".operationId",
|
7881
8025
|
expected: "(string | undefined)",
|
@@ -8020,7 +8164,19 @@ class MigrateApplication {
|
|
8020
8164
|
path: _path + ".$ref",
|
8021
8165
|
expected: "`#/components/requestBodies/${string}`",
|
8022
8166
|
value: input.$ref
|
8023
|
-
}),
|
8167
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
8168
|
+
path: _path + ".examples",
|
8169
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8170
|
+
value: input.examples
|
8171
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
8172
|
+
path: _path + ".examples",
|
8173
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8174
|
+
value: input.examples
|
8175
|
+
})) || _report(_exceptionable, {
|
8176
|
+
path: _path + ".examples",
|
8177
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8178
|
+
value: input.examples
|
8179
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
8024
8180
|
path: _path + ".title",
|
8025
8181
|
expected: "(string | undefined)",
|
8026
8182
|
value: input.title
|
@@ -8032,15 +8188,7 @@ class MigrateApplication {
|
|
8032
8188
|
path: _path + ".deprecated",
|
8033
8189
|
expected: "(boolean | undefined)",
|
8034
8190
|
value: input.deprecated
|
8035
|
-
}), true
|
8036
|
-
path: _path + ".examples",
|
8037
|
-
expected: "(Record<string, any> | undefined)",
|
8038
|
-
value: input.examples
|
8039
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
8040
|
-
path: _path + ".examples",
|
8041
|
-
expected: "(Record<string, any> | undefined)",
|
8042
|
-
value: input.examples
|
8043
|
-
}) ].every((flag => flag));
|
8191
|
+
}), true ].every((flag => flag));
|
8044
8192
|
const _vo188 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
8045
8193
|
const value = input[key];
|
8046
8194
|
if (undefined === value) return true;
|
@@ -8121,7 +8269,19 @@ class MigrateApplication {
|
|
8121
8269
|
path: _path + ".$ref",
|
8122
8270
|
expected: "`#/components/responses/${string}`",
|
8123
8271
|
value: input.$ref
|
8124
|
-
}),
|
8272
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
8273
|
+
path: _path + ".examples",
|
8274
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8275
|
+
value: input.examples
|
8276
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
8277
|
+
path: _path + ".examples",
|
8278
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8279
|
+
value: input.examples
|
8280
|
+
})) || _report(_exceptionable, {
|
8281
|
+
path: _path + ".examples",
|
8282
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8283
|
+
value: input.examples
|
8284
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
8125
8285
|
path: _path + ".title",
|
8126
8286
|
expected: "(string | undefined)",
|
8127
8287
|
value: input.title
|
@@ -8133,15 +8293,7 @@ class MigrateApplication {
|
|
8133
8293
|
path: _path + ".deprecated",
|
8134
8294
|
expected: "(boolean | undefined)",
|
8135
8295
|
value: input.deprecated
|
8136
|
-
}), true
|
8137
|
-
path: _path + ".examples",
|
8138
|
-
expected: "(Record<string, any> | undefined)",
|
8139
|
-
value: input.examples
|
8140
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
8141
|
-
path: _path + ".examples",
|
8142
|
-
expected: "(Record<string, any> | undefined)",
|
8143
|
-
value: input.examples
|
8144
|
-
}) ].every((flag => flag));
|
8296
|
+
}), true ].every((flag => flag));
|
8145
8297
|
const _vo193 = (input, _path, _exceptionable = true) => [ false === _exceptionable || Object.keys(input).map((key => {
|
8146
8298
|
const value = input[key];
|
8147
8299
|
if (undefined === value) return true;
|
@@ -8402,7 +8554,19 @@ class MigrateApplication {
|
|
8402
8554
|
path: _path + ".$ref",
|
8403
8555
|
expected: "`#/components/pathItems/${string}`",
|
8404
8556
|
value: input.$ref
|
8405
|
-
}),
|
8557
|
+
}), (null !== input.examples || _report(_exceptionable, {
|
8558
|
+
path: _path + ".examples",
|
8559
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8560
|
+
value: input.examples
|
8561
|
+
})) && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
8562
|
+
path: _path + ".examples",
|
8563
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8564
|
+
value: input.examples
|
8565
|
+
})) || _report(_exceptionable, {
|
8566
|
+
path: _path + ".examples",
|
8567
|
+
expected: "(Array<any> | Record<string, any> | undefined)",
|
8568
|
+
value: input.examples
|
8569
|
+
})), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
8406
8570
|
path: _path + ".title",
|
8407
8571
|
expected: "(string | undefined)",
|
8408
8572
|
value: input.title
|
@@ -8414,15 +8578,7 @@ class MigrateApplication {
|
|
8414
8578
|
path: _path + ".deprecated",
|
8415
8579
|
expected: "(boolean | undefined)",
|
8416
8580
|
value: input.deprecated
|
8417
|
-
}), true
|
8418
|
-
path: _path + ".examples",
|
8419
|
-
expected: "(Record<string, any> | undefined)",
|
8420
|
-
value: input.examples
|
8421
|
-
})) && _vo10(input.examples, _path + ".examples", _exceptionable) || _report(_exceptionable, {
|
8422
|
-
path: _path + ".examples",
|
8423
|
-
expected: "(Record<string, any> | undefined)",
|
8424
|
-
value: input.examples
|
8425
|
-
}) ].every((flag => flag));
|
8581
|
+
}), true ].every((flag => flag));
|
8426
8582
|
const _vo210 = (input, _path, _exceptionable = true) => [ "string" === typeof input.name || _report(_exceptionable, {
|
8427
8583
|
path: _path + ".name",
|
8428
8584
|
expected: "string",
|
@@ -8539,7 +8695,7 @@ class MigrateApplication {
|
|
8539
8695
|
if (undefined !== input.$ref) return _vo209(input, _path, _exceptionable); else return _vo176(input, _path, _exceptionable);
|
8540
8696
|
})();
|
8541
8697
|
const _vu24 = (input, _path, _exceptionable = true) => (() => {
|
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, {
|
8698
|
+
if (undefined !== input["x-samchon-emended-v4"]) 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, {
|
8543
8699
|
path: _path,
|
8544
8700
|
expected: "(OpenApi.IDocument | SwaggerV2.IDocument | OpenApiV3.IDocument | OpenApiV3_1.IDocument)",
|
8545
8701
|
value: input
|