RangeConfig

Define a range validation for numbers with optional minimum and maximum allowed values.

The RangeConfig interface extends the BaseValidatorConfig interface to provide configuration options for validating a number within a specific range. It allows you to define minimum and maximum allowed values.

Inheritence

Properties:

  • minimumNumber (Optional): A number representing the minimum allowed value for the field.
  • maximumNumber (Optional): A number representing the maximum allowed value for the field.

Inherits all properties from BaseValidatorConfig (e.g., message, messageKey, and potentially conditionalExpression depending on the library implementation).