-
Notifications
You must be signed in to change notification settings - Fork 258
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
Only create list of 2xx content types for request samples #365
Conversation
Size Change: +14.3 kB (0%) Total Size: 4.16 MB
ℹ️ View Unchanged
|
Visit the preview URL for this PR (updated for commit e464c7f): https://docusaurus-openapi-36b86--pr365-1muz29sq.web.app (expires Sun, 15 Jan 2023 14:58:08 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
packages/docusaurus-theme-openapi-docs/src/theme/ApiItem/index.tsx
Outdated
Show resolved
Hide resolved
e10c2fa
to
60aa7f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but I would prefer to postpone including the "test" API until we:
- Determine test cases we want to cover
- Can deploy the API such that it's able to handle real requests
Description
For requests that had multiple content types not in the 2xx status range, we were allowing those content types in the accept header. Instead we should only show the options if there are multiple content types within the 2xx status'.
Motivation and Context
How Has This Been Tested?
Removed additional content type for Find pet by ID v2.0, ensured it only builds content from 2xx responses.
Screenshots (if appropriate)
Types of changes
Checklist