-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Add support for request examples #293
Conversation
Size Change: +1.44 kB (0%) Total Size: 3.83 MB
ℹ️ View Unchanged
|
Visit the preview URL for this PR (updated for commit 9115b4b): https://docusaurus-openapi-36b86--pr293-uz5mjuyl.web.app (expires Fri, 11 Nov 2022 17:19:43 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Single example: Screen.Recording.2022-10-11.at.10.59.01.AM.movMultiple examples: Screen.Recording.2022-10-11.at.11.37.59.AM.mov |
Additional testing found that, in some cases, the example value cannot be derived, such as when Spec: https://gist.github.com/biggates/4955d608379a8b1b3224e815c7dd0dc9 Screen.Recording.2022-10-11.at.1.12.11.PM.mov |
Description
See #280 for background.
Renders
requestBody
example(s) insideSchemaTabs
. Useslazy
option to prevent all tab items from rendering on first load - instead, the code sample should update each time an example tab is selected.If you're looking to test use this: https://gist.github.com/biggates/4955d608379a8b1b3224e815c7dd0dc9