Skip to content
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

More Exhaustive ISO 8601 timezone offset support #1061

Closed
cpillsbury opened this issue Aug 15, 2019 · 0 comments
Closed

More Exhaustive ISO 8601 timezone offset support #1061

cpillsbury opened this issue Aug 15, 2019 · 0 comments

Comments

@cpillsbury
Copy link
Contributor

What version of Ajv you are you using?
6.10.2

What problem do you want to solve?
More exhaustive support of ISO8601 timezone/time offset representations for "time" and "date-time" JSON Schema format validators.

What do you think is the correct solution to problem?
Update the regular expressions used for "time" and "date-time" in both "full" and "fast" format modes.

Will you be able to implement it?
Yes

Examples of unsupported but ISO8601 compliant "time" and "date-time" formats:

Times:
"02:31:17+0130"
"02:31:17-05"

Date Times:
"2016-01-31T02:31:17+0130"
"2016-01-31T02:31:17-01"

cjpillsbury pushed a commit to cjpillsbury/ajv that referenced this issue Aug 15, 2019
…ns to support two digit and colon-less variants of timezone offset. Add tests. Update test eslint to include global after function.
cjpillsbury pushed a commit to cjpillsbury/ajv that referenced this issue Sep 10, 2019
…ns to support two digit and colon-less variants of timezone offset. Add tests. Update test eslint to include global after function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants