Repository navigation
[Python] Release 0.61.2
·
86 commits
to master
since this release
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.
unevaluatedPropertiesnext toif,dependentSchemas,anyOforoneOfchecked in one pass over the object byis_valid, without validating those subschemas again.- Validation of Python instances checks the common value types inline.
propertyNamesvalidating eachstrkey itself instead of a new string built from its text.allOfbranches that only checkproperties,requiredortype: objectchecked in one pass over the object byis_valid.requiredbesidepropertiesandadditionalProperties: falsechecked in the same pass over the object byis_valid.$refs to a subschema another$refalready compiled dispatched once instead of twice.unevaluatedPropertiesmatching property names by their first and last bytes instead of hashing them.additionalPropertiesthat only checkstypedecided without entering the subschema for each value byis_valid.- Literal-prefix patterns rejecting a property name on its first byte before comparing the rest.
- Integer
constandenumvalues 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.