Added
- New draft-specific validator classes:
Draft4Validator,Draft6Validator,Draft7Validator,Draft201909Validator, andDraft202012Validator. validator_forfunction for automatic draft detection.
Changed
- The
JSONSchemaclass has been renamed toValidator. The old name is retained for backward compatibility but will be removed in a future release.
Deprecated
- The
JSONSchemaclass is deprecated. Use thevalidator_forfunction or draft-specific validators instead.
You can usevalidator_forinstead ofJSONSchema.from_str. - Constants
jsonschema_rs.DRAFT4,jsonschema_rs.DRAFT6,jsonschema_rs.DRAFT7,jsonschema_rs.DRAFT201909, andjsonschema_rs.DRAFT202012are deprecated in favor of draft-specific validator classes.
Fixed
- Location-independent references in remote schemas on drafts 4, 6, and 7.