Skip to main content

load_root_schema_from_ref

Function load_root_schema_from_ref 

Source
pub fn load_root_schema_from_ref(
    schema_ref: &str,
    instance_parent: &Path,
) -> Result<(RootSchema, String)>
Expand description

Loads a root schema from a $schema reference: http/https/file URLs via load_external_schema, otherwise as a filesystem path (relative paths are resolved against instance_parent).

Returns the loaded schema and a URI string suitable for RootSchema::cache_key fallback / preloaded map keys (matches base_uri after load).