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
-
I noticed a previous discussion (issue) where someone inquired about the possibility of implementing a
oneOf
validation feature in the class-validator library. I've encountered a similar scenario in which I needed to utilizeoneOf
validation, so I implement a custom validator for it. However, I believe it would be beneficial to have a built-in decorator specifically designed foroneOf
validation 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
oneOf
Here's the old issue on
oneOf
GitHub Issue #616Looking forward to hear inputs & opinions on this
Beta Was this translation helpful? Give feedback.
All reactions