Check type ID#

kind: object_number_range

Purpose#

Constrain a numeric field to a minimum and/or maximum value.

Configuration keys#

FieldRequiredDefaultMeaning
fieldyes-Frontmatter key to check.
minno-Inclusive lower bound. At least one of min/max is required.
maxno-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