php-crud-api
php-crud-api copied to clipboard
Floats as decimals in validation middleware
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.
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.