Skip to main content

Module validate

Module validate 

Source
Expand description

Conformance checking against OKF v0.1 §9.

A bundle is conformant if (1) every non-reserved .md file has a parseable frontmatter block, (2) every frontmatter has a non-empty type, and (3) reserved files follow their structure when present. Everything else is soft guidance: consumers MUST NOT reject a bundle for missing optional fields, unknown types/keys, broken links, or missing index.md files.

Accordingly, validate_bundle reports only true §9 violations as Severity::Error; all softer issues are Severity::Warning or Severity::Info.

Structs§

Diagnostic
A single finding about a bundle.
Report
The result of validating a bundle.

Enums§

Severity
Severity of a diagnostic.

Functions§

is_iso8601_datetime
Light ISO-8601 datetime check: a valid YYYY-MM-DD date, optionally followed by T<time> with an optional zone. This is intentionally permissive — the spec treats timestamp formatting as soft guidance.
validate_bundle
Validates a loaded bundle against §9, returning all findings.