pub fn validate_level(
instance: &Value,
level: Level,
) -> Result<(), MifSchemaError>Expand description
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.
ยงErrors
Returns MifSchemaError::Invalid or MifSchemaError::SchemaCompilation
per validate_document, or MifSchemaError::LevelFloorViolation if
instance passes core schema validation but is missing fields the
requested level floor requires.