Check type ID#
kind: object_field_enum
Purpose#
Require that a field is one of a fixed set of values.
Configuration keys#
| Field | Required | Default | Meaning |
|---|---|---|---|
field | yes | - | Frontmatter key to check. |
values | yes | - | Allowed values. |
Example#
collections:
notes:
path: notes
checks:
- kind: object_field_enum
field: status
values: [draft, published, archived]