ValueMinΒΆ

Checks if the value of a field is at least the configured value.

Example Code:

validators {
  DefaultValidator {
    model = DefaultValidator
    config {
      fields {
        age.errorChecks {
          valueMin {
            model = ValueMin
            valueMin = 18
          }
        }
        mass.errorChecks {
          valueMin {
            model = ValueMin
            valueMin = 1.5
          }
        }
      }
    }
  }
}

Properties

valueMin

Sets the min value a field value must be.

Mandatory

False

Data Type

Float|Integer

Default

0