const rules = {
ip_address: 'ipv6'
}
// or
const rules = {
ip_address: [
rule('ipv6')
]
}
Ensures the value is a valid ip address as per ipv6
spec only.
const rules = {
ip_address: 'ipv6'
}
// or
const rules = {
ip_address: [
rule('ipv6')
]
}
For customized build, you can import this rule as follows.
import { ipv6 } from 'indicative/builds/validations'