Open Bobakanoosh opened 1 year ago
For example, if I have a purchase, and want to enforce the purchase's amount to be greater than 0.
I made my own custom rule, but figure it would be nice to have in the actual framework.
Yes
Hey @Bobakanoosh! 👋🏻
I would happily accept a PR to add that!
@Bobakanoosh actually you can use something like:
schema.number([rules.range(0, Infinity)]) #
schema.number([rules.range(0, Infinity)])
Why this feature is required (specific use-cases will be appreciated)?
For example, if I have a purchase, and want to enforce the purchase's amount to be greater than 0.
Have you tried any other work arounds?
I made my own custom rule, but figure it would be nice to have in the actual framework.
Are you willing to work on it with little guidance?
Yes