Skip to content

Commit 0d88a20

Browse files
committed
Find schemas in additionalProperties.
1 parent 78c8742 commit 0d88a20

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

referencing/jsonschema.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def subresources_of(contents: Schema) -> Iterable[ObjectSchema]:
138138
name="draft2019-09",
139139
id_of=_dollar_id,
140140
subresources_of=_subresources_of(
141-
in_value={"if", "then", "else", "not"},
141+
in_value={"additionalProperties", "if", "then", "else", "not"},
142142
in_subarray={"allOf", "anyOf", "oneOf"},
143143
in_subvalues={"$defs", "properties"},
144144
),
@@ -148,7 +148,7 @@ def subresources_of(contents: Schema) -> Iterable[ObjectSchema]:
148148
name="draft-07",
149149
id_of=_legacy_dollar_id,
150150
subresources_of=_subresources_of(
151-
in_value={"if", "then", "else", "not"},
151+
in_value={"additionalProperties", "if", "then", "else", "not"},
152152
in_subarray={"allOf", "anyOf", "oneOf"},
153153
in_subvalues={"definitions", "properties"},
154154
),
@@ -158,7 +158,7 @@ def subresources_of(contents: Schema) -> Iterable[ObjectSchema]:
158158
name="draft-06",
159159
id_of=_legacy_dollar_id,
160160
subresources_of=_subresources_of(
161-
in_value={"not"},
161+
in_value={"additionalProperties", "not"},
162162
in_subarray={"allOf", "anyOf", "oneOf"},
163163
in_subvalues={"definitions", "properties"},
164164
),
@@ -168,7 +168,7 @@ def subresources_of(contents: Schema) -> Iterable[ObjectSchema]:
168168
name="draft-04",
169169
id_of=_legacy_id,
170170
subresources_of=_subresources_of(
171-
in_value={"not"},
171+
in_value={"additionalProperties", "not"},
172172
in_subarray={"allOf", "anyOf", "oneOf"},
173173
in_subvalues={"definitions", "properties"},
174174
),
@@ -178,6 +178,7 @@ def subresources_of(contents: Schema) -> Iterable[ObjectSchema]:
178178
name="draft-03",
179179
id_of=_legacy_id,
180180
subresources_of=_subresources_of(
181+
in_value={"additionalProperties"},
181182
in_subarray={"extends"},
182183
in_subvalues={"definitions", "properties"},
183184
),

0 commit comments

Comments
 (0)