Skip to content

Conversation

@hmalicha
Copy link

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

hmalicha and others added 30 commits January 29, 2019 15:02
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
updated version
releasing testversion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants