Skip to content

Commit eb5f304

Browse files
Merge pull request #2388 from Songkeys/patch-1
docs(openapi): remove fastify options part
2 parents 7522d14 + f742f63 commit eb5f304

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)