Skip to content

okf/okf-version

infoOKF specification

The bundle-root index.md declares its OKF version, as a quoted string: okf_version: "0.3" (OKF §12).

A bundle may declare the OKF version it targets, with okf_version: "0.3" in the frontmatter of its root index.md (§8.1, §12). It’s optional, so this is only a note, but it tells consumers which version’s rules the bundle was written to: one that declares none is read as OKF 0.2. Quote it, so YAML reads 0.3 as text, not a number. Whether the version is the current one is okforest/okf-version-current’s to say.

This file breaks the rule:

index.md
# Metrics
* [Monthly churn](churn.md) - The share of customers who cancel in a month.

okforest validate reports:

index.md
1:1 info Declare the OKF version this bundle targets: frontmatter `okf_version: "0.3"`. Until it does, it's read as OKF 0.2. okf/okf-version

Fixed:

index.md
---
okf_version: "0.3"
---
# Metrics
* [Monthly churn](churn.md) - The share of customers who cancel in a month.