Check type ID#
kind: object_number_range
Purpose#
Constrain a numeric field to a minimum and/or maximum value.
Configuration keys#
| Field | Required | Default | Meaning |
|---|---|---|---|
field | yes | - | Frontmatter key to check. |
min | no | - | Inclusive lower bound. At least one of min/max is required. |
max | no | - | Inclusive upper bound. At least one of min/max is required. |
Example#
collections:
notes:
path: notes
checks:
- kind: object_number_range
field: year
min: 1900
max: 2100