Christian Pillsbury
382c2b9ed1
Issue #1061 - Update time and date-time format definitions to support two digit and colon-less variants of timezone offset. Add tests. Update test eslint to include global after function.
2019-09-10 08:34:05 -05:00
Nathan Woltman
8d769b6891
Remove duplicated character in email regex
...
The `'` character appears twice in a character class part of the "full" email regex, which is redundant. This removes on of the `'`s.
2018-10-15 20:32:00 -04:00
Evgeny Poberezkin
d25f31b1bb
fix: "fast" versions of uri/uri-reference formats to pass JSON-Schema-Test-Suite draft-06/07
2017-12-02 18:01:27 +00:00
Evgeny Poberezkin
e65673d1cb
refactor: leap year
2017-11-04 10:51:58 +00:00
Brendan Abbott
27855e1b72
Fix logic error for non leap years and months, add more tests
2017-11-03 21:38:58 +10:00
Brendan Abbott
1d44f1451a
Add leap year support for date-time/date formats in full mode
2017-11-03 21:38:58 +10:00
Evgeny Poberezkin
e6aa9e0855
feat: format json-pointer only means string now, added format json-pointer-uri-fragment, closes #589
2017-10-26 18:35:09 +01:00
Evgeny Poberezkin
d20da89819
feat: formats time and date-time allow leap second, closes #594
2017-10-26 18:10:10 +01:00
Evgeny Poberezkin
80dddfda89
style: enable no-useless-escape rule
2017-07-06 22:03:30 +01:00
Evgeny Poberezkin
8bb21ddd21
Merge branch 'feat/add-url-record-format' of https://github.com/gajus/ajv into gajus-feat/add-url-record-format
2017-04-08 18:29:39 +01:00
Evgeny Poberezkin
3b0eee33ca
Merge branch 'master' into 5.0.0
2017-03-25 22:47:32 +00:00
Evgeny Poberezkin
3f9ab64490
feat: more comprehencive uri-reference format in {format: "full"} mode
2017-03-19 18:55:51 +00:00
Jonas Finnemann Jensen
1dbba47e7d
Streamline regex for 'hostname' with 'email'
...
Changes:
* HOSTNAME contained a capturing group
* Reordered `[0-9a-z]` to `[a-z0-9]` (similar to what is used in the `email` pattern)
* Removed two superfluous optional non-capturing groups: `(?:[a-z0-9-]{0,61})?` to `[a-z0-9-]{0,61}`
2017-03-17 20:23:07 -07:00
Evgeny Poberezkin
83bdcb1508
fix: uri-ref -> uri-reference
2017-03-12 12:55:47 +00:00
Evgeny Poberezkin
ac27a2473d
feat: uri should be absolute, relative uri-ref is not valid uri
2017-02-25 22:35:36 +00:00
Evgeny Poberezkin
08e87c1f30
feat: format "regex" should fail if regular expression contains \Z anchor
2017-02-25 21:56:16 +00:00
Gajus Kuizinas
3588e453fa
docs: document a better regex variation
2017-01-25 22:51:55 +00:00
Gajus Kuizinas
452d2408af
fix: improve regex to pass all the tests
2017-01-25 22:51:33 +00:00
Gajus Kuizinas
8d232d2bb0
feat: add URL record format
2017-01-25 13:24:47 +00:00
Evgeny Poberezkin
254c2672d5
feat: format uri-template, #384
2017-01-23 22:08:05 +00:00
Evgeny Poberezkin
cf3f1cea50
refactor: changed format "uriref" to "uri-ref", #367
2016-12-29 23:05:28 +00:00
Evgeny Poberezkin
416f294350
Merge branch 'master' into 5.0.0
2016-12-23 19:47:01 +00:00
Evgeny Poberezkin
23f2572d1c
fix: formats json-pointer and relative-json-pointer now support empty fragments
2016-12-23 17:34:25 +00:00
Evgeny Poberezkin
ab488a4f57
feat: option $data instead of v5, use draft-6 meta schema, support constant and contains keywords by default, #372
2016-12-21 21:11:59 +00:00
Evgeny Poberezkin
d19bc92c8b
refactor: move format comparison functions to ajv-keywords, #371
2016-12-11 18:49:02 +00:00
Evgeny Poberezkin
72a3bd0c2a
fix: allow segments of hostnames to start with digit, closes #312
2016-10-02 18:21:17 +01:00
Evgeny Poberezkin
321a6d1a83
fix: date-time validation, closes #261
2016-08-05 11:57:58 +01:00
Victor Emanouilov
4246d726a9
chore: move date-time guard for missing time part to date_time function rather than date function
2016-08-05 09:53:00 +03:00
Victor Emanouilov
6df7b2040b
fix: date-time string validation to fail validating for date-only strings instead of throwing a TypeError
2016-08-04 13:49:53 +03:00
Evgeny Poberezkin
10c6685027
support $data ref in formatMaximum/Minimum and exclusiveFormatMaximum/Minimum, #81
2015-12-24 17:43:48 +00:00
Evgeny Poberezkin
bed46b41aa
relative-json-pointer format
2015-12-19 21:58:45 +00:00
Evgeny Poberezkin
984a70d36c
json-pointer format
2015-12-19 21:23:40 +00:00
Evgeny Poberezkin
35214f3c68
uuid format
2015-12-19 20:03:41 +00:00
Evgeny Poberezkin
d7fd8229a9
time format; formatMaximum/formatMinimum and exclusiveFormatMaximum/exclusiveFormatMinimum keywords from v5 proposals
2015-12-05 21:16:28 +00:00
Evgeny Poberezkin
889fcc12c5
fixed email format regex
2015-10-25 18:50:50 +00:00
Evgeny Poberezkin
c4bf67cab0
changed uri format to allow URNs, closes #59
2015-10-25 11:31:07 +00:00
Le Lan Johan
c486e8f25b
Do not force two slashes for uris
...
To allow relative urls (conformed to https://tools.ietf.org/html/rfc1808 ), URI regex do not force two slashes after scheme.
2015-10-14 09:52:28 +02:00
Evgeny Poberezkin
ed7c14801d
jshint, closes #34
2015-08-27 20:55:44 +01:00
Evgeny Poberezkin
32ee26ec94
readme: supported formats
2015-07-21 22:36:20 +01:00
Evgeny Poberezkin
2ae8c89708
allow uri and throw on error when validating schemas against meta-schema
2015-06-17 22:06:07 +01:00
Evgeny Poberezkin
60b186402f
custom formats support
2015-06-13 13:55:23 +01:00
Evgeny Poberezkin
ea974ab48d
fast mode for format validation; optimised code generated for enum rule
2015-06-10 21:51:14 +01:00
Evgeny Poberezkin
b9b9affcf4
correct unicode string lengths with "unicode" option
2015-06-04 23:08:45 +01:00
Evgeny Poberezkin
1c2444f4d7
$ref with internal refs
2015-05-30 11:50:18 +01:00
Evgeny Poberezkin
ec1f473804
formats, readme
2015-05-29 23:22:59 +01:00