@@ -128,62 +128,6 @@ def leap_second(test):
128128 )(test )
129129
130130
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-
187131TestDraft3 = DRAFT3 .to_unittest_testcase (
188132 DRAFT3 .tests (),
189133 DRAFT3 .format_tests (),
@@ -462,16 +406,14 @@ def ecmascript_regex_validation(test):
462406TestDraft202012 = DRAFT202012 .to_unittest_testcase (
463407 DRAFT202012 .tests (),
464408 DRAFT202012 .optional_tests_of (name = "bignum" ),
465- DRAFT202012 .optional_tests_of (name = "ecmascript-regex" ),
466409 DRAFT202012 .optional_tests_of (name = "float-overflow" ),
467410 DRAFT202012 .optional_tests_of (name = "non-bmp-regex" ),
468411 DRAFT202012 .optional_tests_of (name = "refOfUnknownKeyword" ),
469412 Validator = Draft202012Validator ,
470413 skip = lambda test : (
471414 narrow_unicode_build (test )
472- or ecmascript_regex_validation (test )
473415 or skip (
474- message = "ToDo: Extend validation " ,
416+ message = "Issue: Resolving of dynamicRef based on dynamic scope " ,
475417 subject = "dynamicRef" ,
476418 case_description = "A $dynamicRef that initially resolves to a "
477419 "schema with a matching $dynamicAnchor should "
@@ -480,22 +422,22 @@ def ecmascript_regex_validation(test):
480422 description = 'The recursive part is not valid against the root' ,
481423 )(test )
482424 or skip (
483- message = "ToDo: Extend validation " ,
425+ message = "Issue: Resolving of dynamicRef based on dynamic scope " ,
484426 subject = "dynamicRef" ,
485427 case_description = "multiple dynamic paths to the $dynamicRef "
486428 "keyword" ,
487429 description = "recurse to integerNode - floats are not allowed" ,
488430 )(test )
489431 or skip (
490- message = "ToDo: Extend validation " ,
432+ message = "Issue: Resolving of dynamicRef based on dynamic scope " ,
491433 subject = "dynamicRef" ,
492434 case_description = "after leaving a dynamic scope, it should not be "
493435 "used by a $dynamicRef" ,
494436 description = "/then/$defs/thingy is the final stop for the "
495437 "$dynamicRef" ,
496438 )(test )
497439 or skip (
498- message = "ToDo: Extend validation " ,
440+ message = "Issue: Resolving of dynamicRef based on dynamic scope " ,
499441 subject = "dynamicRef" ,
500442 case_description = "after leaving a dynamic scope, it should not be "
501443 'used by a $dynamicRef' ,
0 commit comments