Length
Length evaluates values using length comparison functions.
Interpretation Methods
The inspector supports these interpretations methods:
- object
- data
Options
Field | Type | Description | Required |
---|---|---|---|
type | string | determines the length evaluation function used during inspection. must be one of: - equals - greater_than - less_than | Yes |
value | integer | the length that is used for comparison during inspection. | Yes |
measurement | string | determines 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
Updated over 1 year ago