Skip to content

bugfix for #7339#7340

Merged
baywet merged 3 commits intomicrosoft:mainfrom
KonStadt:bugfix/fix-7339
Feb 2, 2026
Merged

bugfix for #7339#7340
baywet merged 3 commits intomicrosoft:mainfrom
KonStadt:bugfix/fix-7339

Conversation

@KonStadt
Copy link
Contributor

Fix discriminator keys for oneOf with allOf-inherited types

GetDiscriminatorMappings() now resolves OpenApiSchemaReference in allOf to find base type discriminator mappings, instead of falling back to using schema names as keys.

Fix discriminator keys for oneOf with allOf-inherited types

  GetDiscriminatorMappings() now resolves OpenApiSchemaReference in allOf
  to find base type discriminator mappings, instead of falling back to
  using schema names as keys.
@KonStadt KonStadt requested a review from a team as a code owner January 30, 2026 10:09
@KonStadt
Copy link
Contributor Author

@microsoft-github-policy-service agree

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

Can you please add a changelog entry unreleased/changed?

@KonStadt
Copy link
Contributor Author

KonStadt commented Feb 2, 2026

Thanks for the contribution!

Can you please add a changelog entry unreleased/changed?

sure, i have added this

@KonStadt KonStadt closed this Feb 2, 2026
@KonStadt KonStadt reopened this Feb 2, 2026
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thank you for making the changes!

@baywet baywet enabled auto-merge (squash) February 2, 2026 13:28
@baywet baywet merged commit 0dd4845 into microsoft:main Feb 2, 2026
290 checks passed
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.

Composed type wrappers (oneOf) use schema names instead of discriminator mapping keys

2 participants