pub fn bundle_refs(
schema: &mut Value,
base_dir: &Path,
) -> Result<(), ResolveError>Expand description
Recursively resolve and inline external $ref pointers.
Walks the schema tree, finds $ref values pointing to external files,
loads them, and replaces the $ref with the loaded content.
Internal refs (#/...) in the root schema are left for the validator.
Internal refs in loaded external files are resolved against that file.
Self-root refs ($ref: "#") are left as-is (recursive type definitions).
ยงArguments
schema- The schema to process (modified in place)base_dir- Base directory for resolving relative file paths