Closed rvolosatovs closed 4 years ago
Only set oneof should be validated if not explicitly specified
If no explicit path is supplied to the validator of a oneof, it defaults to validate all possible oneofs
If no explicit path is supplied to the validator of a oneof, it should only validate the one, which set
Check, which oneof is set and validate it
yes
Summary
Only set oneof should be validated if not explicitly specified
Steps to Reproduce
What do you see now?
If no explicit path is supplied to the validator of a oneof, it defaults to validate all possible oneofs
What do you want to see instead?
If no explicit path is supplied to the validator of a oneof, it should only validate the one, which set
How do you propose to implement this?
Check, which oneof is set and validate it
Can you do this yourself and submit a Pull Request?
yes