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

BREAKING CHANGE: copy schema options when merging schemas using new Schema() or Schema.prototype.add() #13092

Merged
merged 1 commit into from Feb 27, 2023

Conversation

vkarpov15
Copy link
Collaborator

Summary

A neat change/feature that was recently requested: if using schema1.add(schema2) and schema1 doesn't have a toJSON or toObject option set, use schema2's toJSON and toObject options.

Examples

Copy link
Collaborator

@IslandRhythms IslandRhythms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vkarpov15 vkarpov15 added this to the 7.0.0-rc1 milestone Feb 27, 2023
@vkarpov15 vkarpov15 merged commit 73cea77 into master Feb 27, 2023
@vkarpov15 vkarpov15 deleted the vkarpov15/merge-schema-options branch February 27, 2023 18:29
@adamreisnz
Copy link
Contributor

Yep I like this, thanks @vkarpov15 !

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

3 participants