different

Ensures the value of the field under validation is always different from the targeted field value.

const rules = {
  secondary_email: 'different:primary_email'
}

// or
const rules = {
  secondary_email: [
    rule('different', 'primary_email')
  ]
}

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

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