pub fn validate_and_normalize_archive_lenient(
bytes: &[u8],
) -> Result<ValidatedMem, ValidationError>Expand description
Export-side validation: identical strict checks, except a cross-mem
edge whose target won’t travel inside this single-mem archive is
collected onto ValidatedMem::dangling_cross_mem_edges
instead of refused. Lets export warn
(DANGLING_CROSS_MEM_EDGE_IN_EXPORT) and still produce the archive,
while install keeps refusing the same edge — one predicate, two
postures. Every other strict
check (schema drift, malformed markdown, …) still refuses, so export
never emits an otherwise-invalid archive.