diff --git a/docs/changes.rst b/docs/changes.rst index 6a43ab8..9575f40 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -2,6 +2,12 @@ Changelog ========= +v0.34.0 +------- + +* Also look inside ``definitions`` keywords even on newer dialects. + The specification recommends doing so regardless of the rename to ``$defs``. + v0.33.0 ------- diff --git a/referencing/jsonschema.py b/referencing/jsonschema.py index 2eb1647..fb8668a 100644 --- a/referencing/jsonschema.py +++ b/referencing/jsonschema.py @@ -377,6 +377,7 @@ def maybe_in_subresource( in_subarray={"allOf", "anyOf", "oneOf", "prefixItems"}, in_subvalues={ "$defs", + "definitions", "dependentSchemas", "patternProperties", "properties", @@ -400,6 +401,7 @@ def maybe_in_subresource( in_subarray={"allOf", "anyOf", "oneOf", "prefixItems"}, in_subvalues={ "$defs", + "definitions", "dependentSchemas", "patternProperties", "properties", @@ -427,6 +429,7 @@ def maybe_in_subresource( in_subarray={"allOf", "anyOf", "oneOf"}, in_subvalues={ "$defs", + "definitions", "dependentSchemas", "patternProperties", "properties", @@ -450,6 +453,7 @@ def maybe_in_subresource( in_subarray={"allOf", "anyOf", "oneOf"}, in_subvalues={ "$defs", + "definitions", "dependentSchemas", "patternProperties", "properties",