Skip to main content

Crate mif_schema

Crate mif_schema 

Source
Expand description

JSON Schema validation for the MIF (Modeled Information Format) ecosystem.

Validates MIF documents and citation objects against the canonical MIF JSON Schema (draft 2020-12; see https://mif-spec.dev/schema/). Schemas are vendored at compile time (src/schemas/, synced from the canonical MIF repo) and resolved entirely offline — no network access happens at validation time.

Structs§

SchemaCompilationSource
The original serde_json/jsonschema error message behind a MifSchemaError::SchemaCompilation failure.

Enums§

Level
A MIF level floor (L1/L2/L3 conformance tier).
MifSchemaError
Error validating a MIF document or citation against the canonical schema.

Functions§

validate_citation
Validates a standalone MIF citation object against citation.schema.json.
validate_document
Validates a MIF document (a JSON-LD-projected memory) against the canonical mif.schema.json.
validate_level
Validates a MIF document (a JSON-LD-projected memory) against the canonical mif.schema.json, then against the additional fields the requested Level floor requires.
validate_ontology_definition
Validates an ontology definition object against ontology.schema.json.