-
Notifications
You must be signed in to change notification settings - Fork 282
Invalid date-time fails validation #478
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
Comments
@tomsfernandez are you sure you are at the right repo? This error description doesn't look any familiar. This library formats date-time validation errors like this: json-schema/core/src/main/java/org/everit/json/schema/internal/TemporalFormatValidator.java Line 36 in 440c9ef
|
Interesting. I can't see anything in RFC3339 that forbids this string, but still it is obviously stupid. You can raise a PR with a fix if you want and I'm happy to review. I won't have time to fix it on my own. |
Sure! btw "5.7. Restrictions" of the RFC states what I pointed at in this issue. |
Hello @tomsfernandez I released a new validator, it has better |
When using a date-time with a day that exceeds the max amount of days in a month like February 30th the validator doesn't fail.
I added this test to test/vanilla/src/main/resources/org/everit/json/schema/draft7/date-time.json
The text was updated successfully, but these errors were encountered: