Skip to content

Add check for non-zero padded days and months #425

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

Closed
wants to merge 2 commits into from

Conversation

helrond
Copy link
Contributor

@helrond helrond commented Aug 13, 2020

As outlined in IETF RFC 3559, section 5.6, dates should follow the format YYYY-MM-DD, so days or months that are non-zero padded should be invalid.

Copy link
Member

@karenetheridge karenetheridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • all the tests in tests/draft*/format.json must pass have valid: true, as the 'format' keyword is just an annotation by default and does not validate. Validation tests should be in optional/format/*.json.
  • could you update the other drafts' tests too please?

Feel free to squash your commits and force-push.

@helrond
Copy link
Contributor Author

helrond commented Aug 13, 2020

I'm going to close this and re-open another PR.

@helrond helrond closed this Aug 13, 2020
@helrond helrond deleted the patch-1 branch August 13, 2020 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants