Skip to content

Conversation

@AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Aug 8, 2024

Fixes #34201

Description
When the discriminator property has the default name, but a non-default type then HasDiscriminator() returns null. This can be considered a regression, because after #33622 the model snapshot always contains this line for affected models, so this issue now impacts many more users.

Customer impact
For affected models, all migration operations throw an exception. The workaround is to rename all non-string discriminators, but this is impractical for large models.

How found
Customer reported on 8.0.7

Regression
Yes, from 8.0.6

Testing
Test added.

Risk
Low. Quirk added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants