Module default.control

Requires

Source:
See:

Members

(inner) instantValidation :boolean

Type:
  • boolean
Source:

(inner) numberInit

Properties:
Name Type Description
instantValidation boolean

see default.control~instantValidation

numberValidation function

see default.control~numberValidation

Source:

Methods

(inner) normalizeNumber(value) → {number}

Ensure a number is a number

Parameters
Name Type Description
value *

Value to be normalised

Source:
Returns

Number or undefined

Type
number

(inner) numberValidation()

Checks a number to see that it validates against any of the following validation constraints set on the property’s schema:

  • multipleOf
  • maximum
  • exclusiveMaximum
  • minimum
  • exclusiveMinimum
  • maxLength
  • minLength
  • exactLength

Error codes

  • {{primitive}}.not-multiple-of
  • {{primitive}}.more-than-maximum
  • {{primitive}}.more-than-exclusive-maximum
  • {{primitive}}.less-than-minimum
  • {{primitive}}.less-than-exclusive-minimum
  • {{primitive}}.maxlength
  • {{primitive}}.minlength

(where primitive is this.primitive)

Source: