-
-
Notifications
You must be signed in to change notification settings - Fork 370
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=[...])
(#3100)
feat: Support `ResponseSpec(..., examples=[...])` (#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
1 parent
927aea8
commit 50826a2
Showing
4 changed files
with
51 additions
and
20 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
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