Incorporating oneOf Validation in class-validator
#2107
AbdlrahmanSaberAbdo
started this conversation in
Feature Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed a previous discussion (issue) where someone inquired about the possibility of implementing a
oneOfvalidation feature in the class-validator library. I've encountered a similar scenario in which I needed to utilizeoneOfvalidation, so I implement a custom validator for it. However, I believe it would be beneficial to have a built-in decorator specifically designed foroneOfvalidation within the class-validator library.I would appreciate your input on whether this feature aligns with the goals and scope of the class-validator library. I believe incorporating this feature would be useful.
Here's an example of how we can use
oneOfHere's the old issue on
oneOfGitHub Issue #616Looking forward to hear inputs & opinions on this
Beta Was this translation helpful? Give feedback.
All reactions