Skip to main content
Version: 0.6.0

AllowlistConstraint

Compatible value type: text

Description

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

Example 1

 publish 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>