Skip to main content

Module schema

Module schema 

Source
Expand description

Embedded JSON schemas for every capturer envelope. Schemas live in crates/secunit-capture/schemas/capture-*.schema.json and are baked into the binary via include_str!.

Capturers route output through validate before writing so the schema is the single source of truth for what a valid envelope looks like — failing it is a hard error (exit code 1, “validation failure”), not a warning.

Functions§

validate
Validate envelope against its registered per-capturer schema.