ip

Ensures the value is a valid ip address as per ipv4 and ipv6 specs.

const rules = {
  ip_address: 'ip'
}

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

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

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