ipv4

Ensures the value is a valid ip address as per ipv4 spec only.

const rules = {
  ip_address: 'ipv4'
}

// or
const rules = {
  ip_address: [
    rule('ipv4')
  ]
}

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

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