Skip to content

TBL-003 Allowed values

Validates that the cell values in a specific column belong to the allowed list given by values. Any value outside the list triggers an error.

Even if a team agrees on a fixed set of values for a Status column (draft / review / stable), over time custom values like wip or done slip in. Making the allowed set explicit prevents notation drift and ad-hoc usage from spreading.

FieldTypeRequiredDescription
columnstringYesColumn name to validate
valuesstring[]YesArray of allowed values
filesstringGlob of files this rule applies to
| ID | Description | Status |
| ------ | --------------------- | ------ |
| REQ-01 | User registration | stable |
| REQ-02 | Password reset | wip |

With values: ["draft", "review", "stable"], the value wip is outside the allowed list and triggers a violation.

docs/requirements.md
line 4 error Invalid value "wip" in column "Status". Allowed: draft, review, stable TBL-003
| ID | Description | Status |
| ------ | --------------------- | ------ |
| REQ-01 | User registration | stable |
| REQ-02 | Password reset | review |
{
"rule": "tbl003",
"options": {
"column": "Status",
"values": ["draft", "review", "stable"]
}
}