MapperConstraints interface
Description of various value constraints such as integer ranges and string regex.
Properties
| Exclusive |
The value should be less than the |
| Exclusive |
The value should be greater than the |
| Inclusive |
The value should be less than or equal to the |
| Inclusive |
The value should be greater than or equal to the |
| Max |
The value must contain fewer items than the MaxItems value. |
| Max |
The length should be smaller than the |
| Min |
The value must contain more items than the |
| Min |
The length should be bigger than the |
| Multiple |
The value should be exactly divisible by the |
| Pattern | The value must match the pattern. |
| Unique |
The value must contain only unique items. |
Property Details
ExclusiveMaximum
The value should be less than the ExclusiveMaximum value.
ExclusiveMaximum?: number
Property Value
number
ExclusiveMinimum
The value should be greater than the InclusiveMinimum value.
ExclusiveMinimum?: number
Property Value
number
InclusiveMaximum
The value should be less than or equal to the InclusiveMaximum value.
InclusiveMaximum?: number
Property Value
number
InclusiveMinimum
The value should be greater than or equal to the InclusiveMinimum value.
InclusiveMinimum?: number
Property Value
number
MaxItems
The value must contain fewer items than the MaxItems value.
MaxItems?: number
Property Value
number
MaxLength
The length should be smaller than the MaxLength.
MaxLength?: number
Property Value
number
MinItems
The value must contain more items than the MinItems value.
MinItems?: number
Property Value
number
MinLength
The length should be bigger than the MinLength.
MinLength?: number
Property Value
number
MultipleOf
The value should be exactly divisible by the MultipleOf value.
MultipleOf?: number
Property Value
number
Pattern
The value must match the pattern.
Pattern?: RegExp
Property Value
RegExp
UniqueItems
The value must contain only unique items.
UniqueItems?: true
Property Value
true