Skip to content

okf/field-types

warningOKF specification

title, description, and resource are strings, and tags is a list of strings (OKF §4.1).

The recommended keys have expected shapes (§4.1): title, description, and resource are strings, and tags is a list of short strings. Consumers filter and display by them, so a single tag written as plain text, or a number where a title belongs, is read wrongly or not at all.

This file breaks the rule:

churn.md
---
type: Metric
title: Monthly churn
description: The share of customers who cancel in a month.
tags: billing
---
Churn is the customers who cancel in a month, divided by the customers at its start.

okforest validate reports:

churn.md
5:1 warning `tags` should be a list, e.g. `tags: [billing]`. okf/field-types

Fixed:

churn.md
---
type: Metric
title: Monthly churn
description: The share of customers who cancel in a month.
tags: [billing, retention]
---
Churn is the customers who cancel in a month, divided by the customers at its start.