php-crud-api icon indicating copy to clipboard operation
php-crud-api copied to clipboard

Floats as decimals in validation middleware

Open mevdschee opened this issue 4 years ago • 1 comments

See discussion in #663

Maybe we should add a 'validation.decimals' flag to set to either 'string' or 'string,int,float' to accept differrent types as decimals.

mevdschee avatar May 14 '20 17:05 mevdschee

Note that the sanitation middleware is designed to relax the validation constraints and explicitly accept a wide range of values (such as floats for decimals). You need to load it before the validation middleware.

mevdschee avatar May 14 '20 18:05 mevdschee