Repository navigation
[Rust] Release 0.52.0
·
275 commits
to master
since this release
Added
Evaluation::is_valid.Location::is_empty.DisplayforErrorEntry.ValidationOptions::offlineandcanonical::CanonicalizeOptions::offline, refusing to fetch references outside the registry.idnaCargo feature, enabled by default, gating theidn-hostnameandidn-emailformats. #1313- CLI: the
--offlineflag ofjsonschema validate,jsonschema bundleandjsonschema dereference.
Changed
ValidationErrors'Displaygained the instance path of each error.- BREAKING: With
default-features = false, theidn-hostnameandidn-emailformats now require the newidnafeature. Without it they are unknown formats, which are accepted by default, or rejected at build time undershould_ignore_unknown_formats(false). Addidnato the feature list to keep the previous behavior.
Fixed
- Canonicalization not idempotent where a
patternProperties$refmatches a keypropertiesnames. is_validdisagreeing withvalidate,iter_errors, andevaluateon a schema that reaches its own$reftwice, one of them undernot.format: emailandformat: idn-emailrejecting an empty quoted string as the local part (it should be accepted).format: emailandformat: idn-emailrejecting an address literal whoseIPv6:tag is not written in that exact case (the tag is case-insensitive).format: emailaccepting a non-ASCII character in the local part (it should be rejected).ValidationOptions::with_draftgating keywords on the vocabularies of the$schemait overrides, so the validator accepted every instance.
Performance
iter_errorscollects into a single buffer instead of allocating and re-boxing an iterator at every schema node.