in

Ensures the value of a given field matches one of expected values.

const rules = {
  post_type: 'in:draft,published'
}

// or
const rules = {
  post_type: [
    rule('in', ['draft', 'published'])
  ]
}

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

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