[Python] Release 0.20.0
Stranger6667
released this
18 Sep 21:07
·
230 commits
to master
since this release
Added
- New draft-specific validator classes:
Draft4Validator
,Draft6Validator
,Draft7Validator
,Draft201909Validator
, andDraft202012Validator
. validator_for
function for automatic draft detection.
Changed
- The
JSONSchema
class has been renamed toValidator
. The old name is retained for backward compatibility but will be removed in a future release.
Deprecated
- The
JSONSchema
class is deprecated. Use thevalidator_for
function or draft-specific validators instead.
You can usevalidator_for
instead ofJSONSchema.from_str
. - Constants
jsonschema_rs.DRAFT4
,jsonschema_rs.DRAFT6
,jsonschema_rs.DRAFT7
,jsonschema_rs.DRAFT201909
, andjsonschema_rs.DRAFT202012
are deprecated in favor of draft-specific validator classes.
Fixed
- Location-independent references in remote schemas on drafts 4, 6, and 7.