Skip to content

Unknown frontmatter shape

Type URI: https://modeled-information-format.github.io/mif-rs/references/errors/unknown-frontmatter-shape/v1 HTTP status: 400 Exit code: 2 Emitted by: mif-frontmatter (FrontmatterError::UnknownShape, via FrontmatterShape::try_from)

unknown frontmatter shape: {0:?} (must be "v1-canonical" or "pre-projected")

({0:?} is the offending shape string, debug-formatted, hence the quotes around it in the rendered message — UnknownShape is a tuple variant, so its #[error(...)] format string addresses the field positionally, not by name.)

A caller-facing shape argument (e.g. mif-cli emit-markdown --shape, or the emit_markdown_document MCP tool’s shape parameter) named something other than the two recognized [FrontmatterShape] variants.

MaybeIncorrect — use "v1-canonical" or "pre-projected".