forked from litestar-org/litestar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support
ResponseSpec(..., examples=[...])
(litestar-org#3068)
Allows to define custom examples for the responses via `ResponseSpec`. The examples set this way are always generated locally, for each response: ```json { "paths": { "/": { "get": { "responses": { "200": { "content": { "application/json": { "schema": {...}, "examples": ... ``` Examples that go within the schema definition cannot be set by this.
- Loading branch information
Showing
3 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters