accepted

Ensures that the field under validation is accepted. Empty strings, false, null, 0 and undefined values will be considered as not accepted.

const rules = {
  terms: 'accepted'
}

// or
const rules = {
  terms: [
    rule('accepted')
  ]
}

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

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