Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(model): handle discriminators in castObject() #15096

Merged
merged 1 commit into from
Dec 16, 2024
Merged

Conversation

vkarpov15
Copy link
Collaborator

Summary

Model.validate() handles discriminators property, but Model.castObject() does not, which causes problems when calling Model.validate() on a schema that has embedded discriminators, as well as when calling castObject() with a discriminator key.

Examples

@vkarpov15 vkarpov15 added this to the 8.9.1 milestone Dec 15, 2024
@vkarpov15 vkarpov15 merged commit 4cafc80 into master Dec 16, 2024
74 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-15075 branch December 16, 2024 16:41
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