Skip to content

Conversation

spastorelli
Copy link
Contributor

Screenshot 2025-09-26 at 15 35 24

Copy link

linear bot commented Sep 26, 2025

Copy link

changeset-bot bot commented Sep 26, 2025

🦋 Changeset detected

Latest commit: 406a044

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

Copy link

argos-ci bot commented Sep 26, 2025

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

Build Status Details Updated (UTC)
customers-v2 (Inspect) 👍 Changes approved 4 changed Sep 29, 2025, 2:52 PM
v2-cloudflare (Inspect) 👍 Changes approved 8 changed Sep 29, 2025, 2:55 PM
v2-vercel (Inspect) 👍 Changes approved 4 changed Sep 29, 2025, 2:53 PM

Copy link
Member

@taranvohra taranvohra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand the change. What does discriminator represent?

@spastorelli
Copy link
Contributor Author

I'm not sure I understand the change. What does discriminator represent?

@taranvohra when dealing with oneOf, allOf, anyOf schemas, the discriminator is what helps you identify which property in the alternatives objects (ie. schemas/objects listed in oneOf, allOf, anyOf) that identify the data/object type. Basically, it's the property that helps discriminate between each of the objects contained within the oneOf, allOf, anyOf list.

@spastorelli spastorelli merged commit 8e99871 into main Sep 29, 2025
16 checks passed
@spastorelli spastorelli deleted the steeve/rnd-8182-oneof-schemas-with-discriminators-not-properly-rendered branch September 29, 2025 15:09
clairechabas added a commit that referenced this pull request Sep 30, 2025
* main:
  Adapt OpenAPI code samples to prefill API key using visitor data  (#3666)
  Highlight discriminator properties in oneOf, allOf, anyOf objects (#3691)
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