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

Fixed handling discriminators in nested document arrays #32

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

nathan-knight
Copy link
Contributor

Summary
When working with a discriminated array within a subdocument array, it would try to get the schema for the array itself instead of the documents within it which would fail because the discriminator keys aren't on the array.

Examples
See the new test which fails without the change

@vkarpov15 vkarpov15 merged commit 50ab3be into mongoosejs:master Apr 27, 2024
3 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.

2 participants