Skip to content

Commit 9771693

Browse files
committed
Pass the draft 6 tests.
1 parent 67ce090 commit 9771693

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

referencing/jsonschema.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,13 @@ def subresources_of(contents: Schema) -> Iterable[ObjectSchema]:
116116
)
117117
DRAFT6 = Specification(
118118
name="draft-06",
119-
id_of=_dollar_id,
120-
subresources_of=lambda contents: [],
121-
anchors_in=lambda specification, contents: [],
119+
id_of=_dollar_id_pre2019,
120+
subresources_of=_subresources_of(
121+
in_value={"not"},
122+
in_subarray={"allOf", "anyOf", "oneOf"},
123+
in_subvalues={"definitions", "properties"},
124+
),
125+
anchors_in=_legacy_anchor_in_id,
122126
)
123127
DRAFT4 = Specification(
124128
name="draft-04",

suite

Submodule suite updated 36 files

0 commit comments

Comments
 (0)