Skip to content

Conversation

nolannbiron
Copy link
Member

allOf was missing

Before:
CleanShot 2025-03-27 at 16 25 54@2x

After:
CleanShot 2025-03-27 at 16 23 36@2x

@nolannbiron nolannbiron self-assigned this Mar 27, 2025
Copy link

linear bot commented Mar 27, 2025

Copy link

changeset-bot bot commented Mar 27, 2025

🦋 Changeset detected

Latest commit: 26751e8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@gitbook/react-openapi Patch
gitbook Patch

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

@nolannbiron nolannbiron requested a review from gregberge March 27, 2025 15:43
Copy link

argos-ci bot commented Mar 27, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v1 (Inspect) ✅ No changes detected - Mar 27, 2025, 3:44 PM
customers-v2 (Inspect) ✅ No changes detected - Mar 27, 2025, 3:45 PM
default (Inspect) 👍 Changes approved 2 changed Mar 27, 2025, 3:48 PM
v2-vercel (Inspect) ✅ No changes detected - Mar 27, 2025, 3:47 PM

@nolannbiron nolannbiron requested a review from Copilot March 27, 2025 16:58
Copy link
Contributor

@Copilot Copilot AI left a 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) {

@nolannbiron nolannbiron enabled auto-merge (squash) March 27, 2025 16:58
@nolannbiron nolannbiron merged commit bd35348 into main Mar 28, 2025
18 checks passed
@nolannbiron nolannbiron deleted the nolann/rnd-6730-openapi-option-not-expanding-in-published-site branch March 28, 2025 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants