pub fn bundle_with_retriever(
schema: Value,
base_uri: &str,
retriever: impl Retrieve,
) -> Result<Value, CliError>Expand description
Low-level bundling entry point for tests and custom retrievers.
base_uri is the URI relative refs resolve against. External refs are
fetched through retriever, rewritten to root-level $defs, and any refs
inside fetched schemas are interpreted relative to the document they came
from before being re-homed.
ยงErrors
Returns an error when the base URI or a reference is malformed, retrieval fails, or the resulting definitions cannot be inserted safely.