-
Notifications
You must be signed in to change notification settings - Fork 4k
Handle OpenAPI ignored responses #3614
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
Handle OpenAPI ignored responses #3614
Conversation
🦋 Changeset detectedLatest commit: ecfe0c1 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 |
42f0460
to
7c78cb3
Compare
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
7c78cb3
to
1f7af50
Compare
1f7af50
to
ecfe0c1
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.
Pull Request Overview
This PR adds support for handling OpenAPI responses that should be ignored/hidden from documentation display by filtering out responses with the x-hideSample
extension property.
- Added filtering logic to exclude responses marked with
x-hideSample
extension - Updated the response filtering to check for the custom extension property
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
packages/react-openapi/src/OpenAPIResponseExample.tsx | Added filter condition to exclude responses with x-hideSample extension |
.changeset/shaggy-crabs-return.md | Added changeset documenting the new feature |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Seems good to me, the copilot suggestion is wrong btw.
No description provided.