Skip to content

Commit 537873a

Browse files
committed
Add to response description fallback to docs
1 parent ded5a66 commit 537873a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,9 @@ fastify.get('/responseDescription', {
468468
}
469469
}, () => {})
470470
```
471+
472+
Additionally, if you provide a `$ref` in your response schema but no description, if your `$ref` base schema includes a description, that will be used.
473+
471474
<a name="route.response.2xx"></a>
472475
##### Status code 2xx
473476
Fastify supports both the `2xx` and `3xx` status codes, however Swagger (OpenAPI v2) itself does not.

0 commit comments

Comments
 (0)