okforest/undeclared-type
In a tree with type schemas, each type its concepts give has one in .okforest/types/.
A tree that describes its types with schemas in .okforest/types/ relies on them: a type’s schema checks its concepts’ fields, and its template starts new ones. A type its concepts give that has no schema is checked by nothing, and is usually a type that was added without one, or a variant of one that has one. okforest types init drafts a schema for each such type from its concepts. A tree with no schemas has chosen not to use them, so it’s left alone, as is OKF’s own Attested Computation, whose fields OKF defines.
Example
Section titled “Example”This file breaks the rule:
---type: Metrictitle: Monthly churndescription: The share of customers who cancel in a month.---
Churn is the customers who cancel in a month, divided by the customers at its start.okforest validate reports:
churn.md 2:1 info `Metric` (1 concept) has no schema in `.okforest/types/`, so its fields aren't checked: add `.okforest/types/metric.schema.json` (`okforest types init` drafts it). okforest/undeclared-typeThere’s nothing to fix.