Skip to content

Commit 9993c62

Browse files
authored
docs: add note on @fastify/swagger registration order for route discovery (#891)
1 parent 7694000 commit 9993c62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ await fastify.ready()
131131
fastify.swagger()
132132
```
133133

134+
**Note**: `@fastify/swagger` must be registered before any routes to ensure proper route discovery. Routes registered before this plugin will not appear in the generated documentation.
135+
134136
<a name="usage.fastify.autoload"></a>
135137
### With `@fastify/autoload`
136138

0 commit comments

Comments
 (0)