Repository navigation
[Rust] Release 0.59.0
·
301 commits
to master
since this release
Added
- CLI:
-as a path reads the schema or an instance from stdin. - CLI:
-Vas the version flag;-vstays as an alias.
Changed
- CLI: Exit status
3for errors that prevent a verdict and2for usage errors, so1always means an invalid instance or schema. - CLI: Errors print to stderr instead of stdout.
- CLI:
--versionprintsjsonschema-cli <VERSION>instead ofVersion: <VERSION>.
Fixed
- CLI: Panic when stdout is closed early, as in
jsonschema-cli validate ... | head. - CLI: Missing file path in the error for an unreadable instance in text output.
- CLI:
jsonschema-cli bundle,jsonschema-cli dereferenceandjsonschema-cli canonicalizetruncating the--outputfile when the write fails partway. - CLI:
jsonschema-cli validate --helpdescribing--offlinein terms of--resource, whichvalidatedoes not accept. - CLI: Error and warning messages suggesting
jsonschemacommands instead of the installedjsonschema-clibinary. - Canonicalizing several subschemas of one prepared document, where a
$refin a later output could point at another subschema. canonicalizeleavingunevaluatedPropertiesorunevaluatedItemsbesideanyOforoneOfraw.canonicalizegiving a different form for aoneOfdepending on the order of its branches.canonicalizeoutput changing when canonicalized again, for anotover a$refit cannot fully negate.canonicalizeoutput changing when canonicalized again, for aoneOfwhose branches reduce to the same$ref.canonicalizeleaving ananyOfover many overlapping objects raw.canonicalizeleavingdependenciesordependentRequiredraw when their keys form a long chain or cycle.canonicalizetreating-0as a value distinct from0underarbitrary-precision.- Regex matches the engine cannot finish, such as on reaching the backtrack limit, counted as non-matches, letting
notorpatternPropertiesaccept invalid instances. #1715 canonicalizetreating regex matches the engine cannot finish as non-matches.
Performance
canonicalizegiving up sooner on anallOfover unions too wide to model.