Skip to content

Commit

Permalink
fix: validator accepts same-document reference uri
Browse files Browse the repository at this point in the history
Empty URIs are so-called same-document references and are legal URIs,
therefore fixing the wrong text expectation (derived from the previous
non-standard conform implementation).

Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
  • Loading branch information
Silvanoc committed Oct 11, 2023
1 parent 7d949cf commit 7f19aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_processing/test_referencevalidator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ def test_08_normalize_types(self):
"uriorcurie": [
("X:1", [], [], "X:1"),
("http://example.org", [], [], "http://example.org"),
("", [], [ConstraintType.TypeConstraint], ""),
("", [], [], ""),
("a b", [], [ConstraintType.TypeConstraint], "a b"),
(None, [], [], None),
],
Expand Down

0 comments on commit 7f19aa7

Please sign in to comment.