-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[Swift] Operations with both query-based parameters & body-based parameters are not working #2483
Comments
@cjolif may I know if you or someone has already opened a ticket with https://github.com/Alamofire/Alamofire/ team? (I did a search in that repo but couldn't find one) |
no, but actually in the interim someone told me that using lower-level Alamofire APIs (i.e. not the high level API used in swagger-codegen) it should be feasible. I don't have the details however. |
Im willing to work on this issue. |
Typically we've been building the URL manually in other languages. I believe this was the same approach in the Objective-C library here, which also uses AFNetworking. So I don't see a way around doing that. |
Okay. Do you have any coding conventions/guidelines? |
@HSchultjan please have a look at https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md |
@cjolif @HSchultjan the fix by @tomekc has been merged into master. Please pull the latest to give it a try. |
If in your operations you have something as follows:
The generated swift will contain something of the following form:
ignoring the query parameter (param1) and passing isBody false to the init.
The root limitation is that Alamofire either send parameters as query parameters or body but can't do both.
The text was updated successfully, but these errors were encountered: