Skip to content

Commit a2fec38

Browse files
committed
Crawl the registry so it isn't continually recrawled.
Fixes this getting lost while refactoring... Closes: #31
1 parent ba45c70 commit a2fec38

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

jsonschema_specifications/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
#: A `referencing.jsonschema.SchemaRegistry` containing all of the official
99
#: meta-schemas and vocabularies.
10-
REGISTRY = _schemas() @ _EMPTY_REGISTRY
10+
REGISTRY = (_schemas() @ _EMPTY_REGISTRY).crawl()
1111
__all__ = ["REGISTRY"]

jsonschema_specifications/tests/test_jsonschema_specifications.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ def test_it_contains_metaschemas():
88
assert isinstance(schema, Mapping)
99
assert schema["$id"] == "http://json-schema.org/draft-07/schema#"
1010
assert schema["title"] == "Core schema meta-schema"
11+
12+
13+
def test_it_is_crawled():
14+
assert REGISTRY.crawl() == REGISTRY

0 commit comments

Comments
 (0)