Added
- Support for custom meta-schemas. Schemas with custom
$schemaURIs can now be used by registering their meta-schemas in theRegistryviajsonschema::options().with_registry(). #664 arbitrary-precisionfeature for exact numeric validation of large integers and decimals beyond standard floating-point limits. #103- Support for HTTPS
$schemaURIs for drafts 04, 06, and 07 (e.g.,https://json-schema.org/draft-07/schema). #802
Changed
- BREAKING:
meta::is_validnow panics for unknown$schemavalues instead of defaulting to Draft 2020-12.meta::validatereturns an error for unknown$schemavalues. Usemeta::options().with_registry()to validate schemas against custom meta-schemas. - BREAKING:
Resource::from_contentsno longer returnsResultand always succeeds, since draft detection no longer fails for unknown$schemavalues.
Removed
- BREAKING:
meta::try_is_validandmeta::try_validate. Usemeta::is_validandmeta::validateinstead. - BREAKING:
primitive_typemodule (deprecated since 0.30.0). Usejsonschema::typesinstead.
Performance
required: short-circuit when the instance object has fewer properties than required keys.