Skip to main content

bundle_prepared_refs

Function bundle_prepared_refs 

Source
pub fn bundle_prepared_refs(
    schema: Value,
    base_dir: &Path,
) -> EngineResult<Value>
Expand description

Validate and normalize already-prepared refs without allowing file/URL retrieval.

Internal refs are preserved. External refs fail, because input assembly should have already re-homed them under root-level $defs.

ยงErrors

Returns an error when base_dir cannot be represented as an absolute file URI, or a reference is malformed, unresolved, or still points to an external document.