string

Ensures the value is a string

const rules = {
  bio: 'string'
}

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

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

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