hex
Checks that the value is a string of hex digits 0-9a-fA-F, without the 0x prefix.
Error codes: WRONG_HEX, FORMAT_ERROR
rules
input
Invaliderrors
{
"data": "WRONG_HEX"
}The case of the input is kept in the output.
Checks that the value is a string of hex digits 0-9a-fA-F, without the 0x prefix.
Error codes: WRONG_HEX, FORMAT_ERROR
{
data: 'hex'
}{
data: '0xFF'
}{
"data": "WRONG_HEX"
}The case of the input is kept in the output.