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(document): handle embedded recursive discriminators on nested path defined using Schema.prototype.discriminator #14256

Merged
merged 1 commit into from Jan 13, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #14245

Summary

#14245 points out that we don't correctly call applyEmbeddedDiscriminators() on the discriminator schema, which leads to missing discriminators on self-referential discriminator schemas. This PR fixes that.

Examples

…h defined using Schema.prototype.discriminator

Fix #14245
@vkarpov15 vkarpov15 added this to the 7.6.9 milestone Jan 12, 2024
@vkarpov15 vkarpov15 merged commit 0faafcf into 7.x Jan 13, 2024
42 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-14245 branch January 14, 2024 12:27
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.

None yet

2 participants