Filter by number exception #31
Description
Hi,
I found it impossible to filter items by number field, when I want to achieve a constraint with no limit (for example all greater than 10). The filter should look like fieldId=10-null. When I change the float to Float in NumberInterval class and pass 10 and null to it, it looks like this. But after that the API says
APIException [status=Bad Request, error=Expected value of form x-y, description=Expected value of form x-y, parameters=null]
So I tried to outwit this error by inserting a reasonably big number, like Integer.MAX_VALUE instead of the null, but it ends up with the same exception. Even if I pass a number like 1000000000, it crashes with the same error.
But the filtering in Podio allows me to do all the stuff above. Am I doing something wrong or is the filtering here not fully implemented?
Btw. I am able to propose a pull request with some changes, but I tried many things with no good result... Can you give me some hints?
Thank you,
Petr