load_schema_from_value

Function load_schema_from_value 

Source
pub fn load_schema_from_value(doc: &Value) -> IndexMap<String, FieldInfo>
Expand description

Builds the flat yaml_path → FieldInfo map from a pre-loaded composed schema.

Callers that already hold the composed schema should use this instead of load_schema to avoid a redundant disk read and guarantee every consumer sees the same document.