Skip to main content

Crate jsoncompat

Crate jsoncompat 

Source
Expand description

Backward-compatibility checks for evolving JSON Schema documents.

Build input documents with SchemaDocument::from_json, then call check_compat with a Role. This crate intentionally exposes only the document-level compatibility API; lower-level resolved IR types live in json_schema_ast.

Structs§

SchemaDocument
Fully resolved JSON Schema document.

Enums§

CompatibilityError
Compatibility-check failures that are distinct from a proven incompatibility.
Role
The role under which a compatibility check is performed.

Functions§

check_compat
Return whether new is backward-compatible with old under role.

Type Aliases§

SchemaBuildError
Public schema-build error name used by SchemaDocument::from_json.