@nestia/sdk 8.1.0 → 9.0.0-dev.20251107

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +93 -93
  3. package/assets/bundle/api/HttpError.ts +1 -1
  4. package/assets/bundle/api/IConnection.ts +1 -1
  5. package/assets/bundle/api/Primitive.ts +1 -1
  6. package/assets/bundle/api/Resolved.ts +1 -1
  7. package/assets/bundle/api/index.ts +4 -4
  8. package/assets/bundle/api/module.ts +6 -6
  9. package/assets/bundle/distribute/README.md +37 -37
  10. package/assets/bundle/distribute/package.json +28 -28
  11. package/assets/bundle/distribute/tsconfig.json +109 -109
  12. package/assets/bundle/e2e/index.ts +42 -42
  13. package/assets/config/nestia.config.ts +97 -97
  14. package/lib/executable/internal/NestiaConfigLoader.js +4 -4
  15. package/lib/executable/sdk.js +12 -12
  16. package/package.json +7 -7
  17. package/src/INestiaConfig.ts +267 -267
  18. package/src/NestiaSdkApplication.ts +307 -307
  19. package/src/NestiaSwaggerComposer.ts +138 -138
  20. package/src/analyses/AccessorAnalyzer.ts +67 -67
  21. package/src/analyses/ConfigAnalyzer.ts +155 -155
  22. package/src/analyses/DtoAnalyzer.ts +246 -246
  23. package/src/analyses/ExceptionAnalyzer.ts +154 -154
  24. package/src/analyses/GenericAnalyzer.ts +49 -49
  25. package/src/analyses/ImportAnalyzer.ts +126 -126
  26. package/src/analyses/PathAnalyzer.ts +69 -69
  27. package/src/analyses/ReflectControllerAnalyzer.ts +105 -105
  28. package/src/analyses/ReflectHttpOperationAnalyzer.ts +183 -183
  29. package/src/analyses/ReflectHttpOperationExceptionAnalyzer.ts +71 -71
  30. package/src/analyses/ReflectHttpOperationParameterAnalyzer.ts +348 -348
  31. package/src/analyses/ReflectHttpOperationResponseAnalyzer.ts +127 -127
  32. package/src/analyses/ReflectMetadataAnalyzer.ts +44 -44
  33. package/src/analyses/ReflectWebSocketOperationAnalyzer.ts +172 -172
  34. package/src/analyses/SecurityAnalyzer.ts +25 -25
  35. package/src/analyses/TypedHttpRouteAnalyzer.ts +204 -204
  36. package/src/analyses/TypedWebSocketRouteAnalyzer.ts +33 -33
  37. package/src/decorators/OperationMetadata.ts +15 -15
  38. package/src/executable/internal/CommandParser.ts +15 -15
  39. package/src/executable/internal/NestiaConfigLoader.ts +78 -78
  40. package/src/executable/internal/NestiaSdkCommand.ts +103 -103
  41. package/src/executable/sdk.ts +75 -75
  42. package/src/generates/CloneGenerator.ts +66 -66
  43. package/src/generates/E2eGenerator.ts +32 -32
  44. package/src/generates/SdkGenerator.ts +160 -160
  45. package/src/generates/SwaggerGenerator.ts +284 -284
  46. package/src/generates/internal/E2eFileProgrammer.ts +197 -197
  47. package/src/generates/internal/FilePrinter.ts +53 -53
  48. package/src/generates/internal/ImportDictionary.ts +192 -192
  49. package/src/generates/internal/SdkAliasCollection.ts +261 -261
  50. package/src/generates/internal/SdkDistributionComposer.ts +103 -103
  51. package/src/generates/internal/SdkFileProgrammer.ts +110 -110
  52. package/src/generates/internal/SdkHttpCloneProgrammer.ts +124 -124
  53. package/src/generates/internal/SdkHttpCloneReferencer.ts +77 -77
  54. package/src/generates/internal/SdkHttpFunctionProgrammer.ts +279 -279
  55. package/src/generates/internal/SdkHttpNamespaceProgrammer.ts +500 -500
  56. package/src/generates/internal/SdkHttpParameterProgrammer.ts +178 -178
  57. package/src/generates/internal/SdkHttpRouteProgrammer.ts +108 -108
  58. package/src/generates/internal/SdkHttpSimulationProgrammer.ts +310 -310
  59. package/src/generates/internal/SdkImportWizard.ts +62 -62
  60. package/src/generates/internal/SdkRouteDirectory.ts +18 -18
  61. package/src/generates/internal/SdkTypeProgrammer.ts +385 -385
  62. package/src/generates/internal/SdkTypeTagProgrammer.ts +104 -104
  63. package/src/generates/internal/SdkWebSocketNamespaceProgrammer.ts +381 -381
  64. package/src/generates/internal/SdkWebSocketParameterProgrammer.ts +87 -87
  65. package/src/generates/internal/SdkWebSocketRouteProgrammer.ts +302 -302
  66. package/src/generates/internal/SwaggerDescriptionComposer.ts +64 -64
  67. package/src/generates/internal/SwaggerOperationComposer.ts +119 -119
  68. package/src/generates/internal/SwaggerOperationParameterComposer.ts +177 -177
  69. package/src/generates/internal/SwaggerOperationResponseComposer.ts +110 -110
  70. package/src/index.ts +4 -4
  71. package/src/module.ts +3 -3
  72. package/src/structures/INestiaProject.ts +13 -13
  73. package/src/structures/INestiaSdkInput.ts +20 -20
  74. package/src/structures/IReflectApplication.ts +8 -8
  75. package/src/structures/IReflectController.ts +15 -15
  76. package/src/structures/IReflectHttpOperation.ts +26 -26
  77. package/src/structures/IReflectHttpOperationException.ts +19 -19
  78. package/src/structures/IReflectHttpOperationParameter.ts +77 -77
  79. package/src/structures/IReflectHttpOperationSuccess.ts +22 -22
  80. package/src/structures/IReflectImport.ts +6 -6
  81. package/src/structures/IReflectOperationError.ts +26 -26
  82. package/src/structures/IReflectType.ts +4 -4
  83. package/src/structures/IReflectWebSocketOperation.ts +17 -17
  84. package/src/structures/IReflectWebSocketOperationParameter.ts +36 -36
  85. package/src/structures/ITypedApplication.ts +11 -11
  86. package/src/structures/ITypedHttpRoute.ts +41 -41
  87. package/src/structures/ITypedHttpRouteException.ts +15 -15
  88. package/src/structures/ITypedHttpRouteParameter.ts +41 -41
  89. package/src/structures/ITypedHttpRouteSuccess.ts +22 -22
  90. package/src/structures/ITypedWebSocketRoute.ts +24 -24
  91. package/src/structures/ITypedWebSocketRouteParameter.ts +3 -3
  92. package/src/structures/MethodType.ts +5 -5
  93. package/src/structures/ParamCategory.ts +1 -1
  94. package/src/structures/TypeEntry.ts +22 -22
  95. package/src/transform.ts +9 -9
  96. package/src/transformers/IOperationMetadata.ts +44 -44
  97. package/src/transformers/ISdkOperationTransformerContext.ts +8 -8
  98. package/src/transformers/SdkOperationProgrammer.ts +238 -238
  99. package/src/transformers/SdkOperationTransformer.ts +252 -252
  100. package/src/transformers/TextPlainValidator.ts +17 -17
  101. package/src/typings/get-function-location.d.ts +7 -7
  102. package/src/utils/ArrayUtil.ts +26 -26
  103. package/src/utils/FileRetriever.ts +22 -22
  104. package/src/utils/MapUtil.ts +14 -14
  105. package/src/utils/MetadataUtil.ts +26 -26
  106. package/src/utils/PathUtil.ts +10 -10
  107. package/src/utils/SourceFinder.ts +63 -63
  108. package/src/utils/StringUtil.ts +17 -17
  109. package/src/utils/StripEnums.ts +5 -5
  110. package/src/utils/VersioningStrategy.ts +28 -28
  111. package/src/validators/HttpHeadersValidator.ts +34 -34
  112. package/src/validators/HttpQueryValidator.ts +34 -34
@@ -1,267 +1,267 @@
1
- import type { INestApplication } from "@nestjs/common";
2
- import type { OpenApi } from "@samchon/openapi";
3
-
4
- /**
5
- * Definition for the `nestia.config.ts` file.
6
- *
7
- * @author Jeongho Nam - https://github.com/samchon
8
- */
9
- export interface INestiaConfig {
10
- /**
11
- * Accessor of controller classes.
12
- *
13
- * You can specify target controller classes within two ways.
14
- *
15
- * - Asynchronous function returning `INestApplication` instance
16
- * - Specify the path or directory of controller class files
17
- */
18
- input:
19
- | (() => Promise<INestApplication>)
20
- | INestiaConfig.IInput
21
- | string[]
22
- | string;
23
-
24
- /**
25
- * Building `swagger.json` is also possible.
26
- *
27
- * If not specified, you can't build the `swagger.json`.
28
- */
29
- swagger?: INestiaConfig.ISwaggerConfig;
30
-
31
- /**
32
- * Response directory that SDK would be placed in.
33
- *
34
- * If not configured, you can't build the SDK library.
35
- */
36
- output?: string;
37
-
38
- /**
39
- * Target directory that SDK distribution files would be placed in.
40
- *
41
- * If you configure this property and runs `npx nestia sdk` command,
42
- * distribution environments for the SDK library would be generated.
43
- *
44
- * After the SDK library generation, move to the `distribute` directory, and
45
- * runs `npm publish` command, then you can share SDK library with other
46
- * client (frontend) developers.
47
- *
48
- * Recommend to use `"packages/api"` value.
49
- */
50
- distribute?: string;
51
-
52
- /** @default false */
53
- keyword?: boolean;
54
-
55
- /**
56
- * Allow simulation mode.
57
- *
58
- * If you configure this property to be `true`, the SDK library would be
59
- * contain simulation mode. In the simulation mode, the SDK library would not
60
- * communicate with the real backend server, but just returns random mock-up
61
- * data with requestion data validation.
62
- *
63
- * For reference, random mock-up data would be generated by
64
- * `typia.random<T>()` function.
65
- *
66
- * @default false
67
- */
68
- simulate?: boolean;
69
-
70
- /**
71
- * Target directory that e2e test functions would be placed in.
72
- *
73
- * If you configure this property and runs `npx nestia e2e` command,
74
- * `@nestia/sdk` will analyze your NestJS backend server code, and generates
75
- * e2e test functions for every API endpoints.
76
- *
77
- * If not configured, you can't run `npx nestia e2e` command.
78
- */
79
- e2e?: string;
80
-
81
- /**
82
- * Whether to use propagation mode or not.
83
- *
84
- * If being configured, interaction functions of the SDK library would perform
85
- * the propagation mode. The propagation mode means that never throwing
86
- * exception even when status code is not 200 (or 201), but just returning the
87
- * {@link IPropagation} typed instance, which can specify its body type through
88
- * discriminated union determined by status code.
89
- *
90
- * @default false
91
- */
92
- propagate?: boolean;
93
-
94
- /**
95
- * Whether to clone DTO structures or not.
96
- *
97
- * If being configured, all of DTOs used in the backend server would be cloned
98
- * into the `structures` directory, and the SDK library would be refer to the
99
- * cloned DTOs instead of the original.
100
- *
101
- * @default false
102
- */
103
- clone?: boolean;
104
-
105
- /**
106
- * Whether to wrap DTO by primitive type.
107
- *
108
- * If you don't configure this property as `false`, all of DTOs in the SDK
109
- * library would be automatically wrapped by {@link Primitive} type.
110
- *
111
- * For refenrece, if a DTO type be capsuled by the {@link Primitive} type, all
112
- * of methods in the DTO type would be automatically erased. Also, if the DTO
113
- * has a `toJSON()` method, the DTO type would be automatically converted to
114
- * return type of the `toJSON()` method.
115
- *
116
- * @default true
117
- */
118
- primitive?: boolean;
119
-
120
- /**
121
- * Whether to assert parameter types or not.
122
- *
123
- * If you configure this property to be `true`, all of the function parameters
124
- * of SDK library would be checked through [`typia.assert<T>()`
125
- * function](https://typia.io/docs/validators/assert/).
126
- *
127
- * This option would make your SDK library compilation time a little bit
128
- * slower, but would enahcne the type safety even in the runtime level.
129
- *
130
- * @default false
131
- */
132
- assert?: boolean;
133
-
134
- /**
135
- * Whether to optimize JSON string conversion 10x faster or not.
136
- *
137
- * If you configure this property to be `true`, the SDK library would utilize
138
- * the [`typia.assertStringify<T>()
139
- * function`](https://github.com/samchon/typia#enhanced-json) to boost up JSON
140
- * serialization speed and ensure type safety.
141
- *
142
- * This option would make your SDK library compilation time a little bit
143
- * slower, but would enhance JSON serialization speed 10x faster. Also, it can
144
- * ensure type safety even in the runtime level.
145
- *
146
- * @default false
147
- */
148
- json?: boolean;
149
- }
150
- export namespace INestiaConfig {
151
- /**
152
- * List of files or directories to include or exclude to specifying the NestJS
153
- * controllers.
154
- */
155
- export interface IInput {
156
- /** List of files or directories containing the NestJS controller classes. */
157
- include: string[];
158
-
159
- /** List of files or directories to be excluded. */
160
- exclude?: string[];
161
- }
162
-
163
- /** Building `swagger.json` is also possible. */
164
- export interface ISwaggerConfig {
165
- /**
166
- * Response path of the `swagger.json`.
167
- *
168
- * If you've configured only directory, the file name would be the
169
- * `swagger.json`. Otherwise you've configured the full path with file name
170
- * and extension, the `swagger.json` file would be renamed to it.
171
- */
172
- output: string;
173
-
174
- /**
175
- * OpenAPI version.
176
- *
177
- * If you configure this property to be `2.0` or `3.0`, the newly generated
178
- * `swagger.json` file would follow the specified OpenAPI version. The newly
179
- * generated `swagger.json` file would be downgraded from the OpenAPI v3.1
180
- * specification by {@link OpenApi.downgrade} method.
181
- *
182
- * @default 3.1
183
- */
184
- openapi?: "2.0" | "3.0" | "3.1";
185
-
186
- /**
187
- * Whether to beautify JSON content or not.
188
- *
189
- * If you configure this property to be `true`, the `swagger.json` file
190
- * would be beautified with indentation (2 spaces) and line breaks. If you
191
- * configure numeric value instead, the indentation would be specified by
192
- * the number.
193
- *
194
- * @default false
195
- */
196
- beautify?: boolean | number;
197
-
198
- /**
199
- * Whether to include additional information or not.
200
- *
201
- * If configured to be `true`, those properties would be added into each API
202
- * endpoinnt.
203
- *
204
- * - `x-nestia-method`
205
- * - `x-nestia-namespace` ` `x-nestia-jsDocTags`
206
- *
207
- * @default false
208
- */
209
- additional?: boolean;
210
-
211
- /**
212
- * API information.
213
- *
214
- * If omitted, `package.json` content would be used instead.
215
- */
216
- info?: Partial<OpenApi.IDocument.IInfo>;
217
-
218
- /** List of server addresses. */
219
- servers?: OpenApi.IServer[];
220
-
221
- /**
222
- * Security schemes.
223
- *
224
- * When generating `swagger.json` file through `nestia`, if your controllers
225
- * or theirs methods have a security key which is not enrolled in here
226
- * property, it would be an error.
227
- */
228
- security?: Record<string, OpenApi.ISecurityScheme>;
229
-
230
- /**
231
- * List of tag names with description.
232
- *
233
- * It is possible to omit this property or skip some tag name even if the
234
- * tag name is used in the API routes. In that case, the tag name would be
235
- * used without description.
236
- *
237
- * Of course, if you've written a comment like `@tag {name} {description}`,
238
- * you can entirely replace this property specification.
239
- */
240
- tags?: OpenApi.IDocument.ITag[];
241
-
242
- /**
243
- * Decompose query DTO.
244
- *
245
- * If you configure this property to be `true`, the query DTO would be
246
- * decomposed into individual query parameters per each property. Otherwise
247
- * you set it to be `false`, the query DTO would be one object type which
248
- * contains all of query parameters.
249
- *
250
- * @default true
251
- */
252
- decompose?: boolean;
253
-
254
- /**
255
- * Operation ID generator.
256
- *
257
- * @param props Properties of the API endpoint.
258
- * @returns Operation ID.
259
- */
260
- operationId?(props: {
261
- class: string;
262
- function: string;
263
- method: "HEAD" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
264
- path: string;
265
- }): string;
266
- }
267
- }
1
+ import type { INestApplication } from "@nestjs/common";
2
+ import type { OpenApi } from "@samchon/openapi";
3
+
4
+ /**
5
+ * Definition for the `nestia.config.ts` file.
6
+ *
7
+ * @author Jeongho Nam - https://github.com/samchon
8
+ */
9
+ export interface INestiaConfig {
10
+ /**
11
+ * Accessor of controller classes.
12
+ *
13
+ * You can specify target controller classes within two ways.
14
+ *
15
+ * - Asynchronous function returning `INestApplication` instance
16
+ * - Specify the path or directory of controller class files
17
+ */
18
+ input:
19
+ | (() => Promise<INestApplication>)
20
+ | INestiaConfig.IInput
21
+ | string[]
22
+ | string;
23
+
24
+ /**
25
+ * Building `swagger.json` is also possible.
26
+ *
27
+ * If not specified, you can't build the `swagger.json`.
28
+ */
29
+ swagger?: INestiaConfig.ISwaggerConfig;
30
+
31
+ /**
32
+ * Response directory that SDK would be placed in.
33
+ *
34
+ * If not configured, you can't build the SDK library.
35
+ */
36
+ output?: string;
37
+
38
+ /**
39
+ * Target directory that SDK distribution files would be placed in.
40
+ *
41
+ * If you configure this property and runs `npx nestia sdk` command,
42
+ * distribution environments for the SDK library would be generated.
43
+ *
44
+ * After the SDK library generation, move to the `distribute` directory, and
45
+ * runs `npm publish` command, then you can share SDK library with other
46
+ * client (frontend) developers.
47
+ *
48
+ * Recommend to use `"packages/api"` value.
49
+ */
50
+ distribute?: string;
51
+
52
+ /** @default false */
53
+ keyword?: boolean;
54
+
55
+ /**
56
+ * Allow simulation mode.
57
+ *
58
+ * If you configure this property to be `true`, the SDK library would be
59
+ * contain simulation mode. In the simulation mode, the SDK library would not
60
+ * communicate with the real backend server, but just returns random mock-up
61
+ * data with requestion data validation.
62
+ *
63
+ * For reference, random mock-up data would be generated by
64
+ * `typia.random<T>()` function.
65
+ *
66
+ * @default false
67
+ */
68
+ simulate?: boolean;
69
+
70
+ /**
71
+ * Target directory that e2e test functions would be placed in.
72
+ *
73
+ * If you configure this property and runs `npx nestia e2e` command,
74
+ * `@nestia/sdk` will analyze your NestJS backend server code, and generates
75
+ * e2e test functions for every API endpoints.
76
+ *
77
+ * If not configured, you can't run `npx nestia e2e` command.
78
+ */
79
+ e2e?: string;
80
+
81
+ /**
82
+ * Whether to use propagation mode or not.
83
+ *
84
+ * If being configured, interaction functions of the SDK library would perform
85
+ * the propagation mode. The propagation mode means that never throwing
86
+ * exception even when status code is not 200 (or 201), but just returning the
87
+ * {@link IPropagation} typed instance, which can specify its body type through
88
+ * discriminated union determined by status code.
89
+ *
90
+ * @default false
91
+ */
92
+ propagate?: boolean;
93
+
94
+ /**
95
+ * Whether to clone DTO structures or not.
96
+ *
97
+ * If being configured, all of DTOs used in the backend server would be cloned
98
+ * into the `structures` directory, and the SDK library would be refer to the
99
+ * cloned DTOs instead of the original.
100
+ *
101
+ * @default false
102
+ */
103
+ clone?: boolean;
104
+
105
+ /**
106
+ * Whether to wrap DTO by primitive type.
107
+ *
108
+ * If you don't configure this property as `false`, all of DTOs in the SDK
109
+ * library would be automatically wrapped by {@link Primitive} type.
110
+ *
111
+ * For refenrece, if a DTO type be capsuled by the {@link Primitive} type, all
112
+ * of methods in the DTO type would be automatically erased. Also, if the DTO
113
+ * has a `toJSON()` method, the DTO type would be automatically converted to
114
+ * return type of the `toJSON()` method.
115
+ *
116
+ * @default true
117
+ */
118
+ primitive?: boolean;
119
+
120
+ /**
121
+ * Whether to assert parameter types or not.
122
+ *
123
+ * If you configure this property to be `true`, all of the function parameters
124
+ * of SDK library would be checked through [`typia.assert<T>()`
125
+ * function](https://typia.io/docs/validators/assert/).
126
+ *
127
+ * This option would make your SDK library compilation time a little bit
128
+ * slower, but would enahcne the type safety even in the runtime level.
129
+ *
130
+ * @default false
131
+ */
132
+ assert?: boolean;
133
+
134
+ /**
135
+ * Whether to optimize JSON string conversion 10x faster or not.
136
+ *
137
+ * If you configure this property to be `true`, the SDK library would utilize
138
+ * the [`typia.assertStringify<T>()
139
+ * function`](https://github.com/samchon/typia#enhanced-json) to boost up JSON
140
+ * serialization speed and ensure type safety.
141
+ *
142
+ * This option would make your SDK library compilation time a little bit
143
+ * slower, but would enhance JSON serialization speed 10x faster. Also, it can
144
+ * ensure type safety even in the runtime level.
145
+ *
146
+ * @default false
147
+ */
148
+ json?: boolean;
149
+ }
150
+ export namespace INestiaConfig {
151
+ /**
152
+ * List of files or directories to include or exclude to specifying the NestJS
153
+ * controllers.
154
+ */
155
+ export interface IInput {
156
+ /** List of files or directories containing the NestJS controller classes. */
157
+ include: string[];
158
+
159
+ /** List of files or directories to be excluded. */
160
+ exclude?: string[];
161
+ }
162
+
163
+ /** Building `swagger.json` is also possible. */
164
+ export interface ISwaggerConfig {
165
+ /**
166
+ * Response path of the `swagger.json`.
167
+ *
168
+ * If you've configured only directory, the file name would be the
169
+ * `swagger.json`. Otherwise you've configured the full path with file name
170
+ * and extension, the `swagger.json` file would be renamed to it.
171
+ */
172
+ output: string;
173
+
174
+ /**
175
+ * OpenAPI version.
176
+ *
177
+ * If you configure this property to be `2.0` or `3.0`, the newly generated
178
+ * `swagger.json` file would follow the specified OpenAPI version. The newly
179
+ * generated `swagger.json` file would be downgraded from the OpenAPI v3.1
180
+ * specification by {@link OpenApi.downgrade} method.
181
+ *
182
+ * @default 3.1
183
+ */
184
+ openapi?: "2.0" | "3.0" | "3.1";
185
+
186
+ /**
187
+ * Whether to beautify JSON content or not.
188
+ *
189
+ * If you configure this property to be `true`, the `swagger.json` file
190
+ * would be beautified with indentation (2 spaces) and line breaks. If you
191
+ * configure numeric value instead, the indentation would be specified by
192
+ * the number.
193
+ *
194
+ * @default false
195
+ */
196
+ beautify?: boolean | number;
197
+
198
+ /**
199
+ * Whether to include additional information or not.
200
+ *
201
+ * If configured to be `true`, those properties would be added into each API
202
+ * endpoinnt.
203
+ *
204
+ * - `x-nestia-method`
205
+ * - `x-nestia-namespace` ` `x-nestia-jsDocTags`
206
+ *
207
+ * @default false
208
+ */
209
+ additional?: boolean;
210
+
211
+ /**
212
+ * API information.
213
+ *
214
+ * If omitted, `package.json` content would be used instead.
215
+ */
216
+ info?: Partial<OpenApi.IDocument.IInfo>;
217
+
218
+ /** List of server addresses. */
219
+ servers?: OpenApi.IServer[];
220
+
221
+ /**
222
+ * Security schemes.
223
+ *
224
+ * When generating `swagger.json` file through `nestia`, if your controllers
225
+ * or theirs methods have a security key which is not enrolled in here
226
+ * property, it would be an error.
227
+ */
228
+ security?: Record<string, OpenApi.ISecurityScheme>;
229
+
230
+ /**
231
+ * List of tag names with description.
232
+ *
233
+ * It is possible to omit this property or skip some tag name even if the
234
+ * tag name is used in the API routes. In that case, the tag name would be
235
+ * used without description.
236
+ *
237
+ * Of course, if you've written a comment like `@tag {name} {description}`,
238
+ * you can entirely replace this property specification.
239
+ */
240
+ tags?: OpenApi.IDocument.ITag[];
241
+
242
+ /**
243
+ * Decompose query DTO.
244
+ *
245
+ * If you configure this property to be `true`, the query DTO would be
246
+ * decomposed into individual query parameters per each property. Otherwise
247
+ * you set it to be `false`, the query DTO would be one object type which
248
+ * contains all of query parameters.
249
+ *
250
+ * @default true
251
+ */
252
+ decompose?: boolean;
253
+
254
+ /**
255
+ * Operation ID generator.
256
+ *
257
+ * @param props Properties of the API endpoint.
258
+ * @returns Operation ID.
259
+ */
260
+ operationId?(props: {
261
+ class: string;
262
+ function: string;
263
+ method: "HEAD" | "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
264
+ path: string;
265
+ }): string;
266
+ }
267
+ }