@@ -119,16 +119,29 @@ export interface SwaggerDocumentOptions {
119
119
120
120
/**
121
121
* Custom operationIdFactory that will be used to generate the ` operationId `
122
- * based on the ` controllerKey ` and ` methodKey `
123
- * @default () => controllerKey_methodKey
122
+ * based on the ` controllerKey ` , ` methodKey ` , and version.
123
+ * @default () => controllerKey_methodKey_version
124
124
*/
125
- operationIdFactory?: (controllerKey: string, methodKey: string) => string;
125
+ operationIdFactory?: OperationIdFactory;
126
+
127
+ /**
128
+ * Custom linkNameFactory that will be used to generate the name of links
129
+ * in the ` links ` field of responses
130
+ *
131
+ * @see [Link objects](https://swagger.io/docs/specification/links/)
132
+ *
133
+ * @default () => ` $ {controllerKey }_$ {methodKey }_from_$ {fieldKey }`
134
+ */
135
+ linkNameFactory?: (
136
+ controllerKey: string,
137
+ methodKey: string,
138
+ fieldKey: string
139
+ ) => string;
126
140
127
141
/*
128
142
* Generate tags automatically based on the controller name.
129
143
* If ` false ` , you must use the ` @ApiTags ()` decorator to define tags.
130
144
* Otherwise, the controller name without the suffix ` Controller ` will be used.
131
- *
132
145
* @default true
133
146
*/
134
147
autoTagControllers?: boolean;
@@ -197,10 +210,6 @@ export interface SwaggerCustomOptions {
197
210
/**
198
211
* If ` true ` , the selector of OpenAPI definitions is displayed in the Swagger UI interface.
199
212
* Default: ` false ` .
200
- *
201
- * When ` true ` and ` swaggerOptions .urls ` is provided, a dropdown labeled "Select a definition"
202
- * is shown in the Swagger UI, allowing users to select from the available API definitions
203
- * specified in the ` urls ` array.
204
213
*/
205
214
explorer?: boolean;
206
215
0 commit comments