-
Notifications
You must be signed in to change notification settings - Fork 4k
Fix missing headers in OpenAPIResponses #3074
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
Conversation
🦋 Changeset detectedLatest commit: 0694dbf 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 |
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 addresses the missing header display issue in the OpenAPIResponses component by adding logic to create a default tab when headers are present but no content is provided. It also updates the rendering logic in OpenAPIResponse and records the changes in the changeset.
- Adds a new tabs creation logic to handle cases where only headers exist.
- Updates OpenAPIResponse to conditionally render schema properties.
- Updates the changeset file to reflect a patch release.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
packages/react-openapi/src/OpenAPIResponses.tsx | Adds header check logic to generate a default tab when no content exists. |
packages/react-openapi/src/OpenAPIResponse.tsx | Adjusts conditional rendering of schema properties for valid media types. |
.changeset/afraid-impalas-bow.md | Updates changeset metadata with patch version and description. |
Summary of the deployments: Version 1 (production)
Version 2 (experimental)
Test content |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Fixes RND-6772