decimal
Checks that the value is a number, an integer or a decimal. Strings that look like numbers are accepted and returned as numbers.
Error codes: NOT_DECIMAL, FORMAT_ERROR
rules
input
Validoutput
{
"price": 12.5
}Checks that the value is a number, an integer or a decimal. Strings that look like numbers are accepted and returned as numbers.
Error codes: NOT_DECIMAL, FORMAT_ERROR
{
price: 'decimal'
}{
price: '12.50'
}{
"price": 12.5
}