Skip to content

Commit

Permalink
Merge pull request #3138 from MacMacky/fix/docs-open-api-types
Browse files Browse the repository at this point in the history
docs(openapi): align types in intro page with code updates
  • Loading branch information
kamilmysliwiec authored Nov 12, 2024
2 parents 91c18d0 + 2a7673d commit 1a22faa
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions content/openapi/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,29 @@ export interface SwaggerDocumentOptions {
/**
* Custom operationIdFactory that will be used to generate the `operationId`
* based on the `controllerKey` and `methodKey`
* @default () => controllerKey_methodKey
* based on the `controllerKey`, `methodKey`, and version.
* @default () => controllerKey_methodKey_version
*/
operationIdFactory?: (controllerKey: string, methodKey: string) => string;
operationIdFactory?: OperationIdFactory;
/**
* Custom linkNameFactory that will be used to generate the name of links
* in the `links` field of responses
*
* @see [Link objects](https://swagger.io/docs/specification/links/)
*
* @default () => `${controllerKey}_${methodKey}_from_${fieldKey}`
*/
linkNameFactory?: (
controllerKey: string,
methodKey: string,
fieldKey: string
) => string;
/*
* Generate tags automatically based on the controller name.
* If `false`, you must use the `@ApiTags()` decorator to define tags.
* Otherwise, the controller name without the suffix `Controller` will be used.
*
* @default true
*/
autoTagControllers?: boolean;
Expand Down Expand Up @@ -197,10 +210,6 @@ export interface SwaggerCustomOptions {
/**
* If `true`, the selector of OpenAPI definitions is displayed in the Swagger UI interface.
* Default: `false`.
*
* When `true` and `swaggerOptions.urls` is provided, a dropdown labeled "Select a definition"
* is shown in the Swagger UI, allowing users to select from the available API definitions
* specified in the `urls` array.
*/
explorer?: boolean;
Expand Down

0 comments on commit 1a22faa

Please sign in to comment.