Skip to main content

dump_json_with

Function dump_json_with 

Source
pub fn dump_json_with(schema: &Schema, buf: &[u8]) -> Result<String>
Expand description

Render a hash-only message using a writer schema supplied from outside the message — a registry, or a .verit file’s schema section. Same output as dump_json; the difference is only where the schema came from.

Records inside a .verit file are hash-only by design (the file stores each schema once), so this is the entry point the file layer and verit cat use. The schema id is checked against the message’s, so a mismatched schema is refused rather than used to misread the bytes.