-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
date-time validation fails with ajv-formats@3.0.1 #96
Comments
There is no explicit changelog published but as the error message suggests date-time fields should have proper format; meaning that it must have timezone specified. So, createDate should be like '2024-04-15T00:00:00Z'. You need to check if expecting a timezoned date-time value breaks any contract. |
Based on https://datatracker.ietf.org/doc/html/rfc3339#section-5.6 i see |
So the behaviour of requiring |
I have a schema as:
It does not validate the below date:
It fails on validation with the error below:
My settings are as below:
package.json
:I just had to downgrade to
"ajv-formats": "2.1.1"
The text was updated successfully, but these errors were encountered: