method "updateInventory", param "products":
changed type since stringJSON isn't a valid PHP data type, which makes the validations fail
RequestValidator:
Now changing $type to float if float is expected and int is given, since PHP converts floats with no decimals to integers. Here is an example:
-> If you provided the price 19.95 that worked
-> If you provided the price 20.00 that didn't work
methods.json:
method "updateInventory", param "products": changed type since stringJSON isn't a valid PHP data type, which makes the validations fail
RequestValidator: Now changing $type to float if float is expected and int is given, since PHP converts floats with no decimals to integers. Here is an example: -> If you provided the price 19.95 that worked -> If you provided the price 20.00 that didn't work