@@ -119,16 +119,29 @@ export interface SwaggerDocumentOptions {
119119
120120 /**
121121 * 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
124124 */
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;
126140
127141 /*
128142 * Generate tags automatically based on the controller name.
129143 * If ` false ` , you must use the ` @ApiTags ()` decorator to define tags.
130144 * Otherwise, the controller name without the suffix ` Controller ` will be used.
131- *
132145 * @default true
133146 */
134147 autoTagControllers?: boolean;
@@ -197,10 +210,6 @@ export interface SwaggerCustomOptions {
197210 /**
198211 * If ` true ` , the selector of OpenAPI definitions is displayed in the Swagger UI interface.
199212 * 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.
204213 */
205214 explorer?: boolean;
206215
0 commit comments