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-DDdate, optionally followed byT<time>with an optional zone. This is intentionally permissive — the spec treatstimestampformatting as soft guidance. - validate_
bundle - Validates a loaded bundle against §9, returning all findings.