Skip to content

Conversation

@KonStadt
Copy link

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
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?

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