Skip to main content
Version: 0.0.18

AllowlistConstraint

Compatible ValueType: text

Description

Limits the values to a defined a set of allowed values. Only values in the list are valid.

Example 1

constraint TimeUnitString oftype AllowlistConstraint {
allowlist: ["ms", "s", "min", "h", "d", "m", "y"];
}

Only allows the common abbreviations for millisecond, second, minute, etc..

Properties

allowlist

Type Collection<text>