-
Notifications
You must be signed in to change notification settings - Fork 4k
Fix missing alternative schemas #3058
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
Fix missing alternative schemas #3058
Conversation
🦋 Changeset detectedLatest commit: 26751e8 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 (production)
Version 2 (experimental)
Test content |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
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 pull request addresses the missing alternative schemas by modifying the condition that checks the existence of schema properties and updating the changeset information.
- Changed conditional check in OpenAPISchema.tsx to verify a non-empty properties array
- Added changeset entry for the patch version update
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
packages/react-openapi/src/OpenAPISchema.tsx | Update condition to use optional chaining on properties |
.changeset/chilled-eggs-attack.md | Document patch release with fix details |
Comments suppressed due to low confidence (1)
packages/react-openapi/src/OpenAPISchema.tsx:53
- The updated condition now only renders the disclosure when 'properties' is a non-empty array. Verify that an empty array should not trigger rendering, as this change excludes cases where an empty properties array might be valid.
if (properties?.length) {
allOf was missing
Before:

After:
