ParamRule

  • Which constraint this is. A caller can enforce the same rule before writing, and gets the same code back in a violation if it does not.

    values
    non_emptymax_lengthmax_itemspatternenumreservednot_patternjsonfunctionsheading_firstlowercase
  • The rule's own value, where it takes one: the maximum length, the most items a list carries, the regular expression the value matches or the one it must not carry, the values allowed, the values reserved, the functions a formula may call. Absent for a rule that takes none, as non_empty, json, heading_first and lowercase do. lowercase refuses a capital letter or whitespace anywhere in the value.

  • The field read inside each item of a list, for the rules that tell a heading apart from the items it names: an item carrying true under it is a heading. max_items does not count headings, and heading_first asks a list carrying any to open with one. Absent for the rules that read the value itself.