Skip to content

Markdown -> JSON-LD -> markdown round trip was not lossless

Type URI: https://modeled-information-format.github.io/mif-rs/references/errors/roundtrip-drift/v1 HTTP status: 422 Exit code: 4 Emitted by: mif-frontmatter (FrontmatterError::RoundTripDrift)

round-trip drift: expected {expected:?}, recovered {recovered:?}

roundtrip_lossless proved that the markdown recovered after a full markdown -> JSON-LD -> markdown pipeline did not match the canonical serialization of the original frontmatter + body. expected and recovered carry the two canonical serializations being compared, so the diff is visible directly in the error. Typically caused by a frontmatter key or structure this crate’s projection does not yet support losslessly (e.g. a non-string top-level key, which is silently dropped by the JSON-LD projection step).

MaybeIncorrect — the document uses a frontmatter key or structure that does not survive the round trip; simplify it, or report the drift upstream if it should be supported.