-
Notifications
You must be signed in to change notification settings - Fork 4k
Improve OpenAPIResponses examples and schemas #3123
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
Improve OpenAPIResponses examples and schemas #3123
Conversation
🦋 Changeset detectedLatest commit: cc5e842 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Summary of the deployments: Version 1
Version 2
Test content |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
fca8499
to
f64b025
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.
Copilot reviewed 21 out of 22 changed files in this pull request and generated no comments.
Files not reviewed (1)
- packages/gitbook/src/components/DocumentView/OpenAPI/style.css: Language not supported
Comments suppressed due to low confidence (2)
packages/react-openapi/src/OpenAPICodeSampleInteractive.tsx:115
- The default key for the media type sample index is set to renderer.mediaType (a string), which when converted using Number() may result in NaN. Consider using a numeric default value (e.g., '0') to reliably index renderer.examples.
const example = renderer.examples[Number(exampleState.key)] ?? renderer.examples[0];
packages/react-openapi/src/InteractiveSection.tsx:113
- The onSelectionChange handler in the InteractiveSection component only calls state.expand() without updating the selection state via the useSelectState store. Consider invoking the store's setKey function to update the selected tab key upon selection change.
onSelectionChange={() => { state.expand(); }}
93b06c5
to
ab6e89b
Compare
Examples with select :

Models update :
