Skip to content

Handle circular oneOf with discriminator and allOf in OpenAPI schemas#4070

Draft
nolannbiron wants to merge 1 commit intomainfrom
nolann/rnd-9752-openapi-import-doesnt-show-polymorphic-object-details
Draft

Handle circular oneOf with discriminator and allOf in OpenAPI schemas#4070
nolannbiron wants to merge 1 commit intomainfrom
nolann/rnd-9752-openapi-import-doesnt-show-polymorphic-object-details

Conversation

@nolannbiron
Copy link
Member

Detect when allOf entries reference an ancestor schema (e.g. Dog allOf: [Pet, ...]) and break the cycle by stripping polymorphic fields before merging. Also default schema titles to component names before dereference so they propagate through $ref resolution.

Detect when allOf entries reference an ancestor schema (e.g. Dog allOf: [Pet, ...])
and break the cycle by stripping polymorphic fields before merging. Also default
schema titles to component names before dereference so they propagate through
$ref resolution.
@linear
Copy link

linear bot commented Feb 27, 2026

@changeset-bot
Copy link

changeset-bot bot commented Feb 27, 2026

⚠️ No Changeset found

Latest commit: dc65f95

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@argos-ci
Copy link

argos-ci bot commented Feb 27, 2026

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

Build Status Details Updated (UTC)
customers-v2-cloudflare (Inspect) ⚠️ Changes detected (Review) 4 changed Feb 27, 2026, 1:58 PM
customers-v2-vercel (Inspect) ✅ No changes detected - Feb 27, 2026, 1:56 PM
v2-cloudflare (Inspect) ⚠️ Changes detected (Review) 2 changed Feb 27, 2026, 2:03 PM
v2-vercel (Inspect) ⚠️ Changes detected (Review) 3 changed Feb 27, 2026, 2:01 PM

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.

1 participant