Skip to content

okforest/unused-type

infoOKForest conventions

Each type schema and template in .okforest/types/ is for a type some concept in the tree gives.

A type’s schema and template in .okforest/types/ describe the concepts that give its type. One that no concept gives checks nothing: often it’s left behind when a type is renamed, or when a tree is split and its pages move to another tree (Scaling), and it still offers the type for new pages. A type can also be defined before its first page is written, as a template’s are, so this is only noted: remove the files if no page will use the type.

This file breaks the rule:

.okforest/types/budget.schema.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Budget",
"description": "A plan for spending, by period.",
"type": "object"
}

okforest validate reports:

.okforest/types/budget.schema.json
3:3 info No concept in this tree has the type `Budget`: if none will, remove `budget.schema.json`. okforest/unused-type

There’s nothing to fix.