InputValidation interface

Describes what values are valid for a subscription input

Properties

dataType

Gets or sets the data type to validate.

isRequired

Gets or sets if this is a required field.

maxLength

Gets or sets the maximum length of this descriptor.

maxValue

Gets or sets the minimum value for this descriptor.

minLength

Gets or sets the minimum length of this descriptor.

minValue

Gets or sets the minimum value for this descriptor.

pattern

Gets or sets the pattern to validate.

patternMismatchErrorMessage

Gets or sets the error on pattern mismatch.

Property Details

dataType

Gets or sets the data type to validate.

dataType: InputDataType

Property Value

isRequired

Gets or sets if this is a required field.

isRequired: boolean

Property Value

boolean

maxLength

Gets or sets the maximum length of this descriptor.

maxLength: number

Property Value

number

maxValue

Gets or sets the minimum value for this descriptor.

maxValue: number

Property Value

number

minLength

Gets or sets the minimum length of this descriptor.

minLength: number

Property Value

number

minValue

Gets or sets the minimum value for this descriptor.

minValue: number

Property Value

number

pattern

Gets or sets the pattern to validate.

pattern: string

Property Value

string

patternMismatchErrorMessage

Gets or sets the error on pattern mismatch.

patternMismatchErrorMessage: string

Property Value

string