Skip to content

[Python] Release 0.61.2

Choose a tag to compare

@github-actions github-actions released this 12 Nov 08:31
· 86 commits to master since this release
a3574ec

Fixed

  • References inside a registered resource resolving against the URI it was registered under instead of its $id. #1862

Performance

  • Validation of deeply nested instances against recursive schemas takes time linear in their nesting depth.
  • unevaluatedProperties next to if, dependentSchemas, anyOf or oneOf checked in one pass over the object by is_valid, without validating those subschemas again.
  • Validation of Python instances checks the common value types inline.
  • propertyNames validating each str key itself instead of a new string built from its text.
  • allOf branches that only check properties, required or type: object checked in one pass over the object by is_valid.
  • required beside properties and additionalProperties: false checked in the same pass over the object by is_valid.
  • $refs to a subschema another $ref already compiled dispatched once instead of twice.
  • unevaluatedProperties matching property names by their first and last bytes instead of hashing them.
  • additionalProperties that only checks type decided without entering the subschema for each value by is_valid.
  • Literal-prefix patterns rejecting a property name on its first byte before comparing the rest.
  • Integer const and enum values compared directly instead of through their decimal forms.
  • Root dictionary keys checked with one type comparison each before validation.
  • Dictionary lookups leaving the exception state untouched unless a key comparison raises.