@@ -128,62 +128,6 @@ def leap_second(test):
128
128
)(test )
129
129
130
130
131
- def ecmascript_regex_validation (test ):
132
- """
133
- Considering switching from re to js-regex after the following issues are
134
- resolved:
135
- * https://github.com/Julian/jsonschema/issues/612
136
- * https://github.com/Zac-HD/js-regex/issues/4
137
-
138
- Notice: Zac-HD/js-regex Repository has been archived
139
- """
140
- return skip (
141
- message = bug (612 ),
142
- subject = "ecmascript-regex" ,
143
- description = 'NKO DIGIT ZERO does not match (unlike e.g. Python)' ,
144
- )(test ) or skip (
145
- message = bug (612 ),
146
- subject = "ecmascript-regex" ,
147
- description = 'NKO DIGIT ZERO (as \\ u escape) does not match' ,
148
- )(test ) or skip (
149
- message = bug (612 ),
150
- subject = "ecmascript-regex" ,
151
- description = 'NKO DIGIT ZERO matches (unlike e.g. Python)' ,
152
- )(test ) or skip (
153
- message = bug (612 ),
154
- subject = "ecmascript-regex" ,
155
- description = 'NKO DIGIT ZERO (as \\ u escape) matches' ,
156
- )(test ) or skip (
157
- message = bug (612 ),
158
- subject = "ecmascript-regex" ,
159
- description = 'zero-width whitespace matches' ,
160
- )(test ) or skip (
161
- message = bug (612 ),
162
- subject = "ecmascript-regex" ,
163
- description = 'zero-width whitespace does not match' ,
164
- )(test ) or skip (
165
- message = bug (612 ),
166
- subject = "ecmascript-regex" ,
167
- description = 'latin-1 e-acute matches (unlike e.g. Python)' ,
168
- )(test ) or skip (
169
- message = bug (612 ),
170
- subject = "ecmascript-regex" ,
171
- description = 'latin-1 e-acute does not match (unlike e.g. Python)' ,
172
- )(test ) or skip (
173
- message = bug (612 ),
174
- subject = "ecmascript-regex" ,
175
- description = 'matches in Python, but should not in jsonschema' ,
176
- )(test ) or skip (
177
- message = bug (612 ),
178
- subject = "ecmascript-regex" ,
179
- description = 'does not match' ,
180
- )(test ) or skip (
181
- message = bug (612 ),
182
- subject = "ecmascript-regex" ,
183
- description = 'matches' ,
184
- )(test )
185
-
186
-
187
131
TestDraft3 = DRAFT3 .to_unittest_testcase (
188
132
DRAFT3 .tests (),
189
133
DRAFT3 .format_tests (),
@@ -462,16 +406,14 @@ def ecmascript_regex_validation(test):
462
406
TestDraft202012 = DRAFT202012 .to_unittest_testcase (
463
407
DRAFT202012 .tests (),
464
408
DRAFT202012 .optional_tests_of (name = "bignum" ),
465
- DRAFT202012 .optional_tests_of (name = "ecmascript-regex" ),
466
409
DRAFT202012 .optional_tests_of (name = "float-overflow" ),
467
410
DRAFT202012 .optional_tests_of (name = "non-bmp-regex" ),
468
411
DRAFT202012 .optional_tests_of (name = "refOfUnknownKeyword" ),
469
412
Validator = Draft202012Validator ,
470
413
skip = lambda test : (
471
414
narrow_unicode_build (test )
472
- or ecmascript_regex_validation (test )
473
415
or skip (
474
- message = "ToDo: Extend validation " ,
416
+ message = "Issue: Resolving of dynamicRef based on dynamic scope " ,
475
417
subject = "dynamicRef" ,
476
418
case_description = "A $dynamicRef that initially resolves to a "
477
419
"schema with a matching $dynamicAnchor should "
@@ -480,22 +422,22 @@ def ecmascript_regex_validation(test):
480
422
description = 'The recursive part is not valid against the root' ,
481
423
)(test )
482
424
or skip (
483
- message = "ToDo: Extend validation " ,
425
+ message = "Issue: Resolving of dynamicRef based on dynamic scope " ,
484
426
subject = "dynamicRef" ,
485
427
case_description = "multiple dynamic paths to the $dynamicRef "
486
428
"keyword" ,
487
429
description = "recurse to integerNode - floats are not allowed" ,
488
430
)(test )
489
431
or skip (
490
- message = "ToDo: Extend validation " ,
432
+ message = "Issue: Resolving of dynamicRef based on dynamic scope " ,
491
433
subject = "dynamicRef" ,
492
434
case_description = "after leaving a dynamic scope, it should not be "
493
435
"used by a $dynamicRef" ,
494
436
description = "/then/$defs/thingy is the final stop for the "
495
437
"$dynamicRef" ,
496
438
)(test )
497
439
or skip (
498
- message = "ToDo: Extend validation " ,
440
+ message = "Issue: Resolving of dynamicRef based on dynamic scope " ,
499
441
subject = "dynamicRef" ,
500
442
case_description = "after leaving a dynamic scope, it should not be "
501
443
'used by a $dynamicRef' ,
0 commit comments