Android & Java template modifications to check collectionFormat when creating query parameters#893
Conversation
… by the collection-format.
|
|
|
@sudohippie Thanks for this! Here are some suggestions: Regarding the
Regarding the |
|
@xhh - Thanks for the comments. I have made several changes including re-factoring the formerly |
There was a problem hiding this comment.
the previous logic was to ignore the parameter if its value is null, which means the parameter is optional (as required parameter's value should have been checked and ensured to not be null)
There was a problem hiding this comment.
@xhh - So, what are you trying to say? That if ``value == null` just return? Which is what it was, in the first place.
There was a problem hiding this comment.
when value is null, it should not be included in the params (with a value of empty string), it should be ignored completely (the same with when name is null)
There was a problem hiding this comment.
@xhh - Okay, I'll add that logic back in soon.
|
@xhh - Done. |
|
@sudohippie thanks! it looks good to me |
|
@sudohippie it's OK to me, but I'd like to ask could you please add some test cases for all possible values of |
|
@sudohippie we've to wait for Tony (owner) to review and merge. Test result would definitely help speed up the process. |
|
@xhh @webron @wing328 - I'v added unit tests. Up on running the Java integration tests <apiResponse>
<message>something bad happened</message>
<type>unknown</type>
</apiResponse>Not sure what is going on. Android seems fine. |
|
The server was restarted. The integration tests are passing for Java and Android now. |
Android & Java template modifications to check collectionFormat when creating query parameters
This is to solve the issue #484. Changes are for Android and Java clients. They will create query parameters in the appropriate format based on the collectionFormat defined in the spec.
Made the following changes: