MapperConstraints interface

Description of various value constraints such as integer ranges and string regex.

Properties

ExclusiveMaximum

The value should be less than the ExclusiveMaximum value.

ExclusiveMinimum

The value should be greater than the InclusiveMinimum value.

InclusiveMaximum

The value should be less than or equal to the InclusiveMaximum value.

InclusiveMinimum

The value should be greater than or equal to the InclusiveMinimum value.

MaxItems

The value must contain fewer items than the MaxItems value.

MaxLength

The length should be smaller than the MaxLength.

MinItems

The value must contain more items than the MinItems value.

MinLength

The length should be bigger than the MinLength.

MultipleOf

The value should be exactly divisible by the MultipleOf value.

Pattern

The value must match the pattern.

UniqueItems

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