Skip to content

Commit f742f63

Browse files
authored
docs(openapi): remove fastify options part
nestjs/swagger#1886
1 parent 7522d14 commit f742f63

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

content/openapi/introduction.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -149,26 +149,6 @@ export interface ExpressSwaggerCustomOptions {
149149
}
150150
```
151151

152-
If you use fastify, you can configure the user interface by passing the `FastifySwaggerCustomOptions` object.
153-
154-
```Typescript
155-
export interface FastifySwaggerCustomOptions {
156-
uiConfig?: Record<string, any>;
157-
}
158-
```
159-
160-
For example, if you want to make sure that the authentication token persists after refreshing the page, or change the page title (that shows up in the browser), you can use the following settings:
161-
162-
```TypeScript
163-
const customOptions: SwaggerCustomOptions = {
164-
swaggerOptions: {
165-
persistAuthorization: true,
166-
},
167-
customSiteTitle: 'My API Docs',
168-
};
169-
SwaggerModule.setup('docs', app, document, customOptions);
170-
```
171-
172152
#### Example
173153

174154
A working example is available [here](https://github.com/nestjs/nest/tree/master/sample/11-swagger).

0 commit comments

Comments
 (0)