-
Notifications
You must be signed in to change notification settings - Fork 6k
[Swift3] allow POST with both body and query parameters #4490
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
Conversation
|
Interesting, check failed for seemingly unrelated reason: |
|
@tomekc thanks for the PR. The test result looks good: |
|
+1 @wing328 |
|
+1 @wing328 One thing I'd add is some scenario where a call "mapValuesToQueryItems" is generated. There's no such scenario in the current petstore. |
|
@hexelon good idea. We might want to leverage the fake Petstore for the additional test case |
|
@wing328 @hexelon Speaking about tests, I have more improvements underway and found http://httpbin.org useful for testing all possible request types. |
…4490) * [swift3] allow POST with both body and query parameters * Correctly support non-string and optional query parameters.
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)2.3.0branch for breaking (non-backward compatible) changes.Description of the PR
Made POST requests allow use query parameters, besides of body. Currently generated code ignores all query parameters when body exists.
Reported in #2557 and also in #2483
Note
This is a workaround of flawed Alamofire API which is actual limitation. Next time I will post a Alamofire-less template :)