Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solved problems with php data types: #47

Open
wants to merge 39 commits into
base: master
Choose a base branch
from

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.

None yet

2 participants