Skip to content

Commit 8db1457

Browse files
committed
Pass the draft 3 tests.
1 parent 2c3bf67 commit 8db1457

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

referencing/jsonschema.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,11 @@ def subresources_of(contents: Schema) -> Iterable[ObjectSchema]:
156156
DRAFT3 = Specification(
157157
name="draft-03",
158158
id_of=_legacy_id,
159-
subresources_of=lambda contents: [],
160-
anchors_in=lambda specification, contents: [],
159+
subresources_of=_subresources_of(
160+
in_subarray={"extends"},
161+
in_subvalues={"definitions", "properties"},
162+
),
163+
anchors_in=_legacy_anchor_in_id,
161164
)
162165

163166

0 commit comments

Comments
 (0)