Skip to content

Conversation

@vkarpov15
Copy link
Collaborator

Fix #14101

Summary

The underlying issue in #14101 is that we have two different schema types for options and options.$, even though they should be the same. Which leads to issues when validating a subdoc of options.$'s caster using options schematype. Specifically triggering this if statement, which leads to issues with nested arrays because scope can be an array.

The fix is to avoid cloning, so options and options.$ are largely interchangeable as far as casting and validation are concerned.

Examples

… array so nested document arrays use correct constructor Fix #14101
@vkarpov15 vkarpov15 added this to the 8.0.3 milestone Dec 1, 2023
@vkarpov15 vkarpov15 merged commit d423b0e into master Dec 1, 2023
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-14101 branch December 1, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants