You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not right now. You cannot perform calculations during validation and references are only resolved at runtime. This may or may not be supported in the future.
Describe the problem you are trying to fix (provide as much context as possible)
So I have the following (simplified) schema:
The validation I need is this if "isAnnual' is true - then make sure that the duration between "to" and "from" is no more than 364 days.
I tried to do something like this:
Bit it doesn't work - the actual date object doesn't get to the getDaysInSpan function - the to,from are joi refs.
Can this be done?
Which API (or modification of the current API) do you suggest to solve that problem ?
Don't know
Are you ready to work on a pull request if your suggestion is accepted ?
Not at the moment.
The text was updated successfully, but these errors were encountered: