Skip to main content

load_schema_from_memory

Function load_schema_from_memory 

Source
pub fn load_schema_from_memory(
    manifest_yaml: &str,
    types_yamls: &[(String, String)],
) -> Result<Schema, SchemaLoadError>
Expand description

Load a schema from in-memory YAML strings — legacy sealed semantics (an absent required/optional key means required). Use load_schema_from_memory_with_format when the caller knows the package’s format generation from its marker.

types_yamls is a slice of (filename_stem, contents) tuples — the stems must match manifest.types exactly.