Primitive
data.validateStringLength
BETAShort name: validateStringLength
Version: 1.0.0
Validate that a string length is within optional min/max bounds.
Back to primitive libraryInputs
| Key | Type | Required | Description |
|---|---|---|---|
| max | number | false | Inclusive maximum string length. |
| min | number | false | Inclusive minimum string length. |
| value | any | false | Value to validate as a string. |
Outputs
| Key | Type | Required | Description |
|---|---|---|---|
| ok | boolean | false | True when value is a string and length is within bounds. |
| reason | string | false | Failure reason when ok is false. Empty string when ok is true. |