under

Ensures the value of a field is under a certain value. All values will be casted to Number.

const rules = {
  age: 'under:60'
}

// or
const rules = {
  password_confirmation: [
    rule('age', 60)
  ]
}

For customized build, you can import this rule as follows.

import { under } from 'indicative/builds/validations'