Skip to main content
Version: 0.1.0

LengthConstraint

Compatible ValueType: text

Description

Limits the length of a string with an upper and/or lower boundary. Only values with a length within the given range are valid.

Example 1

constraint JavaStringLength oftype LengthConstraint {
minLength: 0;
maxLength: 2147483647;
}

A string with 0 to 2147483647 characters.

Properties

minLength

Type integer

Default: 0

maxLength

Type integer

Default: null