Skip to content

Conversation

@ivan-tymoshenko
Copy link
Member

This problem is very similar to #431 (comment).

What should we do if none of oneOf/anyOf options match? Right now if it's an object it will set the null value, if it's an array it will skip the value.

This can be considered a significant change and can be landed in semver major release.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 62fe5fc into fastify:master May 31, 2022
@ivan-tymoshenko ivan-tymoshenko deleted the throw-an-error-if-none-oneOf-option-match branch May 31, 2022 11:00
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