JSON representation | |
---|---|
{ // Union field |
Fields | ||
---|---|---|
Union field
|
||
intRange |
|
|
doubleRange |
|
|
stringRegex |
|
IntRange
Range used to validate longs and ints.
JSON representation | |
---|---|
{ "min": string, "max": string } |
Fields | |
---|---|
min |
The inclusive minimum of the acceptable range. |
max |
The inclusive maximum of the acceptable range. |
DoubleRange
Range used to validate doubles and floats.
JSON representation | |
---|---|
{ "min": number, "max": number } |
Fields | |
---|---|
min |
The inclusive minimum of the acceptable range. |
max |
The inclusive maximum of the acceptable range. |
StringRegex
Rule used to validate strings.
JSON representation | |
---|---|
{ "regex": string, "exclusive": boolean } |
Fields | |
---|---|
regex |
The regex applied to the input value(s). |
exclusive |
Whether the regex matcher is applied exclusively (if true, matching values will be rejected). |