@nestia/migrate 4.6.1-dev.20250117 → 4.6.2
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 -87
- package/lib/MigrateApplication.js +3 -3
- package/lib/bundles/NEST_TEMPLATE.js +84 -64
- 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 +118 -102
- package/lib/index.mjs.map +1 -1
- package/lib/programmers/MigrateApiNamespaceProgrammer.js +6 -6
- package/lib/programmers/MigrateApiNamespaceProgrammer.js.map +1 -1
- package/lib/programmers/{MigrateApiSimulatationProgrammer.d.ts → MigrateApiSimulationProgrammer.d.ts} +1 -1
- package/lib/programmers/{MigrateApiSimulatationProgrammer.js → MigrateApiSimulationProgrammer.js} +7 -7
- package/lib/programmers/MigrateApiSimulationProgrammer.js.map +1 -0
- package/lib/utils/openapi-down-convert/converter.js +2 -2
- package/package.json +6 -6
- 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 +84 -64
- 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/{MigrateApiSimulatationProgrammer.ts → 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/programmers/MigrateApiSimulatationProgrammer.js.map +0 -1
@@ -2,106 +2,106 @@ export const SDK_TEMPLATE = [
|
|
2
2
|
{
|
3
3
|
"location": "",
|
4
4
|
"file": ".gitignore",
|
5
|
-
"content": ".git/\
|
5
|
+
"content": ".git/\nbin/\nlib/\nnode_modules/\n\npackage-lock.json\npnpm-lock.yaml"
|
6
6
|
},
|
7
7
|
{
|
8
8
|
"location": ".vscode",
|
9
9
|
"file": "launch.json",
|
10
|
-
"content": "{\
|
10
|
+
"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}"
|
11
11
|
},
|
12
12
|
{
|
13
13
|
"location": ".vscode",
|
14
14
|
"file": "settings.json",
|
15
|
-
"content": "{\
|
15
|
+
"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}"
|
16
16
|
},
|
17
17
|
{
|
18
18
|
"location": "",
|
19
|
-
"file": "
|
20
|
-
"content": "
|
19
|
+
"file": "LICENSE",
|
20
|
+
"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"
|
21
21
|
},
|
22
22
|
{
|
23
23
|
"location": "",
|
24
|
-
"file": "
|
25
|
-
"content": "
|
24
|
+
"file": "README.md",
|
25
|
+
"content": "# Software Development Kit\nThis is a SDK library generated by [`@nestia/migrate`](https://nestia.io/docs/migrate) or [`@nestia/editor`](https://nestia.io/docs/editor).\n\nWith this SDK library, you can easily and safely interact with backend server.\n\nJust import and call some API functions like gif image below:\n\n\n\n> Left is server code, and right is client code utilizing the SDK\n\n\n\n\n## How to Test\n```bash\nnpm install\nnpm start # run only \"test/start.ts\" file\nnpm run test # everything under the \"test/features\" directory\nnpm run test:simulate # \"test/features\" with mockup simulation mode\n```\n\nIf you run `npm start` command, only [test/start.ts](test/start.ts) file would be executed.\n\nOtherwise you run `npm run test` command instead, run everything in the [test/features](test/features) directory.\n\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`).\n\n```bash\nnpm install -g @nestia/migrate\nnpx @nestia/migrate\n? Migration mode (Use arrow keys):\n NestJS\n > SDK\n? Swagger file location: assets/input/clickhouse.json\n? Output directory path: assets/output/clickhouse-sdk-manual\n? Mokup Simulator: true\n? E2E Test Functions: true\n```\n\n\n\n\n## Deploy\n```bash\nnpm install\nnpm run deploy\n```\n\nJust run `npm run deploy` command, then your SDK library would be published.\n\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.\n\n-----------\n\n> ## What [`Nestia`](https://nestia.io) is:\n> \n> \n> [](https://github.com/samchon/nestia/blob/master/LICENSE)\n> [](https://www.npmjs.com/package/@nestia/core)\n> [](https://www.npmjs.com/package/@nestia/core)\n> [](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\n> [](https://nestia.io/docs/)\n> \n> Nestia is a set of helper libraries for NestJS, supporting below features:\n> \n> - `@nestia/core`: Super-fast decorators\n> - `@nestia/sdk`:\n> - Swagger generator evolved than ever\n> - SDK library generator for clients\n> - Mockup Simulator for client applications\n> - Automatic E2E test functions generator\n> - `@nestia/migrate`: Migration from Swagger to NestJS\n> - `@nestia/editor`: Online TypeScript Swagger Editor\n> - `nestia`: Just CLI (command line interface) tool\n> \n>> **Note**\n>> \n>> - **Only one line** required, with pure TypeScript type\n>> - Enhance performance **30x** up\n>> - Runtime validator is **20,000x faster** than `class-validator`\n>> - JSON serialization is **200x faster** than `class-transformer`\n>> - Software Development Kit\n>> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://> trpc.io/)\n>> - Mockup simulator means embedded backend simulator in SDK\n>> - similar with [msw](https://mswjs.io/), but fully automated"
|
26
26
|
},
|
27
27
|
{
|
28
28
|
"location": "",
|
29
|
-
"file": "
|
30
|
-
"content": "
|
29
|
+
"file": "hello.js",
|
30
|
+
"content": "function print(command, description) {\n return console.log(`\\x1b[1m${command}\\x1b[2m: ${description}\\x1b[0m`);\n}\n\nconsole.log(\"-----------------------------------------\");\nconsole.log(\"\\x1b[7mGenerated by \\x1b[2m@nestia/editor\\x1b[0m\");\nconsole.log(\"\");\nconsole.log(\" - \\x1b[36mhttps://nestia.io/docs/editor\\x1b[0m\");\nconsole.log(\" - \\x1b[36mhttps://github.com/samchon/nestia\\x1b[0m\");\nconsole.log(\"-----------------------------------------\");\n\nprint(\"npm run start\", \"Run only test/start.ts\");\nprint(\"npm run test\", \"Run every test/features/**/*.ts files\");\nprint(\"npm run test:simulate\", \"Test with mockup simulator\");\n"
|
31
31
|
},
|
32
32
|
{
|
33
33
|
"location": "",
|
34
|
-
"file": "
|
35
|
-
"content": "module.
|
34
|
+
"file": "package.json",
|
35
|
+
"content": "{\n \"name\": \"@ORGANIZATION/PROJECT-api\",\n \"version\": \"0.1.0\",\n \"description\": \"SDK library generated by Nestia\",\n \"main\": \"lib/index.js\",\n \"module\": \"lib/index.mjs\",\n \"typings\": \"lib/index.d.ts\",\n \"scripts\": {\n \"build\": \"rimraf lib && tsc && rollup -c\",\n \"build:test\": \"rimraf bin && tsc --project test/tsconfig.json\",\n \"deploy\": \"npm run build && npm publish\",\n \"dev\": \"npm run build:test -- --watch\",\n \"hello\": \"node hello\",\n \"prepare\": \"ts-patch install && typia patch\",\n \"start\": \"ts-node test/start.ts\",\n \"swagger\": \"ts-node test/swagger.ts\",\n \"test\": \"ts-node test/index.ts\",\n \"test:simulate\": \"ts-node test/index.ts --simulate true\",\n \"test:manual\": \"ts-node test/manual.ts\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/samchon/nestia\"\n },\n \"author\": \"Jeongho Nam\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/samchon/nestia/issues\"\n },\n \"homepage\": \"https://nestia.io\",\n \"files\": [\n \"lib\",\n \"swagger.json\",\n \"package.json\",\n \"README.md\"\n ],\n \"dependencies\": {\n \"@nestia/fetcher\": \"^4.6.2\",\n \"tgrid\": \"^1.1.0\",\n \"typia\": \"^7.6.4\"\n },\n \"devDependencies\": {\n \"@nestia/e2e\": \"^0.8.0\",\n \"@rollup/plugin-terser\": \"^0.4.4\",\n \"@rollup/plugin-typescript\": \"^11.1.6\",\n \"@trivago/prettier-plugin-sort-imports\": \"^4.3.0\",\n \"@types/express\": \"^4.17.21\",\n \"@types/inquirer\": \"8.2.5\",\n \"@types/swagger-ui-express\": \"^4.1.6\",\n \"chalk\": \"4.1.2\",\n \"commander\": \"^10.0.0\",\n \"express\": \"^4.19.2\",\n \"inquirer\": \"8.2.5\",\n \"prettier\": \"^3.2.5\",\n \"rimraf\": \"^5.0.5\",\n \"rollup\": \"^4.13.2\",\n \"swagger-ui-express\": \"^5.0.0\",\n \"ts-node\": \"^10.9.2\",\n \"ts-patch\": \"^3.3.0\",\n \"typescript\": \"~5.7.3\",\n \"typescript-transform-paths\": \"^3.5.3\"\n }\n}"
|
36
36
|
},
|
37
37
|
{
|
38
38
|
"location": "",
|
39
|
-
"file": "
|
40
|
-
"content": "
|
39
|
+
"file": "prettier.config.js",
|
40
|
+
"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"
|
41
41
|
},
|
42
42
|
{
|
43
43
|
"location": "",
|
44
44
|
"file": "rollup.config.js",
|
45
|
-
"content": "const typescript = require(\"@rollup/plugin-typescript\");\
|
45
|
+
"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"
|
46
46
|
},
|
47
47
|
{
|
48
48
|
"location": "src",
|
49
49
|
"file": "HttpError.ts",
|
50
|
-
"content": "export { HttpError } from \"@nestia/fetcher\";\
|
50
|
+
"content": "export { HttpError } from \"@nestia/fetcher\";\n"
|
51
51
|
},
|
52
52
|
{
|
53
53
|
"location": "src",
|
54
54
|
"file": "IConnection.ts",
|
55
|
-
"content": "export type { IConnection } from \"@nestia/fetcher\";\
|
55
|
+
"content": "export type { IConnection } from \"@nestia/fetcher\";\n"
|
56
56
|
},
|
57
57
|
{
|
58
58
|
"location": "src",
|
59
59
|
"file": "index.ts",
|
60
|
-
"content": "import * as api from \"./module\";\
|
60
|
+
"content": "import * as api from \"./module\";\n\nexport * from \"./module\";\nexport default api;\n"
|
61
61
|
},
|
62
62
|
{
|
63
63
|
"location": "src",
|
64
64
|
"file": "module.ts",
|
65
|
-
"content": "export type * from \"./IConnection\";\
|
65
|
+
"content": "export type * from \"./IConnection\";\nexport * from \"./HttpError\";\n\nexport * as functional from \"./functional\";\n"
|
66
66
|
},
|
67
67
|
{
|
68
68
|
"location": "",
|
69
69
|
"file": "swagger.json",
|
70
|
-
"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}"
|
70
|
+
"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}"
|
71
71
|
},
|
72
72
|
{
|
73
73
|
"location": "test",
|
74
|
-
"file": "
|
75
|
-
"content": "import
|
74
|
+
"file": "TestGlobal.ts",
|
75
|
+
"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"
|
76
76
|
},
|
77
77
|
{
|
78
78
|
"location": "test",
|
79
|
-
"file": "
|
80
|
-
"content": "import
|
79
|
+
"file": "index.ts",
|
80
|
+
"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"
|
81
81
|
},
|
82
82
|
{
|
83
83
|
"location": "test",
|
84
|
-
"file": "
|
85
|
-
"content": "import
|
84
|
+
"file": "start.ts",
|
85
|
+
"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"
|
86
86
|
},
|
87
87
|
{
|
88
88
|
"location": "test",
|
89
|
-
"file": "
|
90
|
-
"content": "import
|
89
|
+
"file": "swagger.ts",
|
90
|
+
"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"
|
91
91
|
},
|
92
92
|
{
|
93
93
|
"location": "test",
|
94
94
|
"file": "tsconfig.json",
|
95
|
-
"content": "{\
|
95
|
+
"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}"
|
96
96
|
},
|
97
97
|
{
|
98
98
|
"location": "test/utils",
|
99
99
|
"file": "ArgumentParser.ts",
|
100
|
-
"content": "import commander from \"commander\";\
|
100
|
+
"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"
|
101
101
|
},
|
102
102
|
{
|
103
103
|
"location": "",
|
104
104
|
"file": "tsconfig.json",
|
105
|
-
"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}"
|
105
|
+
"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}"
|
106
106
|
}
|
107
107
|
]
|