Skip to content

Commit 0730700

Browse files
committed
Always pass a URI to referencing.jsonschema.specification_with.
(This could previously be None incorrectly).
1 parent 529b57a commit 0730700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonschema/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def create(
183183
format_checker_arg = format_checker
184184

185185
specification = referencing.jsonschema.specification_with(
186-
dialect_id=id_of(meta_schema),
186+
dialect_id=id_of(meta_schema) or "urn:unknown-dialect",
187187
default=Specification.OPAQUE,
188188
)
189189

0 commit comments

Comments
 (0)