Skip to content

Commit

Permalink
feat: show swagger ui model by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonn committed Mar 21, 2024
1 parent 554534f commit e7edbd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@ export default fp(async (fastify) => {
});
fastify.register(swaggerUI, {
routePrefix: DOCS_ROUTE_PREFIX,
uiConfig: {
defaultModelRendering: 'model',
},
});
});

0 comments on commit e7edbd5

Please sign in to comment.