Length evaluates values using length comparison functions.

Interpretation Methods

The inspector supports these interpretations methods:

  • object
  • data

Options

FieldTypeDescriptionRequired
typestringdetermines the length evaluation function used during inspection.

must be one of:
- equals
- greater_than
- less_than
Yes
valueintegerthe length that is used for comparison during inspection.Yes
measurementstringdetermines how the length is measured.

must be one of:
- byte: number of bytes is evaluated (default)
- rune: number of characters is evaluated
No

📘

If the value is an array from an object, then the measurement is the number of elements in the array