-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: Add relative validation support and keywords for date,date-time #41
Comments
Hi @tars400. I can't imagine we will get this into the spec any time soon. You CAN now write your own extension (vocabulary), but you would be dependent on providing implementations for it to work. |
These aren't keywords in the official JSON Schema specification. Perhaps your particular implementation added them? |
@Relequestual could you point me to the best guide explaining how to write our own extensions? I found this page but by itself doesn't point to any guide :/ |
Here are a couple implementation specific guides you might find useful. |
We need to support relative validation on json-schema for date format.
Is there any existing support where relative validations are supported for 'date' or 'date-time' formats ?, as the current schema supports only absolute validation with formatMinimum and formatMaximum.
Something like below:
relative minimum and relative maximum format would validate on date relatively example: last 1 year, last 20 days, last 12 months etc
The text was updated successfully, but these errors were encountered: