-
Notifications
You must be signed in to change notification settings - Fork 250
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
[FR] Added support for summary and description for param schema examples #406
Conversation
Size Change: +393 B (0%) Total Size: 4.25 MB
ℹ️ View Unchanged
|
Visit the preview URL for this PR (updated for commit 507c89c): https://docusaurus-openapi-36b86--pr406-6qli4kbm.web.app (expires Thu, 09 Mar 2023 18:47:35 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
Thanks @blindaa121, do you think it could be helpful to add "Examples:" above the examples tabs or is it intuitive enough without? |
@sserrata Ah good point. I think it could be helpful to explicitly have an "Examples:" label above. Without it, I think it might imply that the provided examples are the only acceptable values for a given parameter. |
Screen.Recording.2023-02-07.at.10.42.51.AM.mov |
Description
This PR introduces support for rendering
summary
anddescription
for param schemas that contain multiple examples. In addition, users are now able to tab through the provided examples in order to minimize any UI bloating.Motivation and Context
See #398 for context
How Has This Been Tested?
Tested with https://gist.github.com/paulo-raca/c82e211f6b4218003fef2f957488b319#file-openapi-json
ParamsItem
that contained multiple examplesScreenshots (if appropriate)
Screen.Recording.2023-02-07.at.10.42.51.AM.mov
Types of changes
Checklist