File tree 6 files changed +8
-9
lines changed
6 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 5
5
* Fixed that min/max items/lenght/properties can be float
6
6
* Fixed that everything with empty `not` is invalid
7
7
* Improved regexp for email format to comfort test suite
8
+ * Improved regexp for date format to comfort test suite
8
9
9
10
=== 2.20.0 (2024-06-15)
10
11
Original file line number Diff line number Diff line change 3
3
4
4
class CodeGeneratorDraft07 (CodeGeneratorDraft06 ):
5
5
FORMAT_REGEXS = dict (CodeGeneratorDraft06 .FORMAT_REGEXS , ** {
6
- 'date' : r'^(?P<year>\d{4})-(?P<month>\d{2}) -(?P<day>\d{2} )\Z' ,
6
+ 'date' : r'^(?P<year>\d{4})-(?P<month>(0[1-9]|1[1-2])) -(?P<day>(0[1-9]|[12]\d|3[01]) )\Z' ,
7
7
'iri' : r'^\w+:(\/?\/?)[^\s]+\Z' ,
8
8
'iri-reference' : r'^(\w+:(\/?\/?))?[^#\\\s]*(#[^\\\s]*)?\Z' ,
9
9
'idn-email' : r'^[^@]+@[^@]+\.[^@]+\Z' ,
Original file line number Diff line number Diff line change @@ -14,14 +14,13 @@ def pytest_generate_tests(metafunc):
14
14
'float-overflow.json' ,
15
15
'unknown.json' ,
16
16
'unknownKeyword.json' ,
17
+ 'date-time.json' ,
17
18
18
19
# TODO: fix const with booleans to not match numbers
19
20
'const.json' ,
20
21
'enum.json' ,
21
22
22
23
# TODO: fix formats
23
- 'date-time.json' ,
24
- 'date.json' ,
25
24
'ipv4.json' ,
26
25
'ipv6.json' ,
27
26
'time.json' ,
Original file line number Diff line number Diff line change @@ -14,14 +14,13 @@ def pytest_generate_tests(metafunc):
14
14
'float-overflow.json' ,
15
15
'unknown.json' ,
16
16
'unknownKeyword.json' ,
17
+ 'date-time.json' ,
17
18
18
19
# TODO: fix const with booleans to not match numbers
19
20
'const.json' ,
20
21
'enum.json' ,
21
22
22
23
# TODO: fix formats
23
- 'date-time.json' ,
24
- 'date.json' ,
25
24
'ipv4.json' ,
26
25
'ipv6.json' ,
27
26
'time.json' ,
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ def pytest_generate_tests(metafunc):
16
16
'iri.json' ,
17
17
'unknown.json' ,
18
18
'unknownKeyword.json' ,
19
+ 'date-time.json' ,
20
+ 'date.json' ,
19
21
20
22
# TODO: fix const with booleans to not match numbers
21
23
'const.json' ,
22
24
'enum.json' ,
23
25
24
26
# TODO: fix formats
25
- 'date-time.json' ,
26
- 'date.json' ,
27
27
'ipv4.json' ,
28
28
'ipv6.json' ,
29
29
'time.json' ,
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ def pytest_generate_tests(metafunc):
16
16
'iri.json' ,
17
17
'unknown.json' ,
18
18
'unknownKeyword.json' ,
19
+ 'date-time.json' ,
20
+ 'date.json' ,
19
21
20
22
# TODO: fix const with booleans to not match numbers
21
23
'const.json' ,
22
24
'enum.json' ,
23
25
24
26
# TODO: fix formats
25
- 'date-time.json' ,
26
- 'date.json' ,
27
27
'ipv4.json' ,
28
28
'ipv6.json' ,
29
29
'time.json' ,
You can’t perform that action at this time.
0 commit comments