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
Query Parameter missing in swift 3 export #4536
Comments
Can you share a fragment of spec? I think I can look into it. |
Did you try latest version from master? I addressed this issue (query parameters are ignored when making POST with request body) and it has been merged in #4490 |
Which fragment do you need from the spec? i dont know why but i cant load the master project on my machine. do you have a .jar file which i can test with my spec? |
@Vario what error did you get when building the project locally? |
actually i'm getting stuck loading the project, the entire project is empty. |
@Vario you may want to try |
okay, i got the new jar file, but the query parameters are still missing. they are listed in the method description above as query but in the var path= "/url..../ nothing like ?parameter={value} can be seen or is used in the code below. |
Can you share swagger specification (YAML preferred) of the method you want code generated? Rename things if you need, just want to make sure we are on the same page. |
problem solved, i updated the jar file, but not the templates, and 4 days ago a commit changed them to include query parameters. this issue is solved! |
Glad to hear that it's now resolved. |
Thanks @tomekc for addressing this issue. |
Description
We have a swagger definition with a PUT Request which contains a Body DTO with properties to update, header parameters and path parameters and one query parameter.
the parameter is in the method definition updateXXXUsingPUTWithRequestBuilder but it is not used in the code and not appended to the url..
Swagger-codegen version
2.2.2
Steps to reproduce
i assume, generating a PUT request with body, header, path and query parameters with swift 3 template
in the generated code there is this part missing
var path = "//path**?queryparametername={queryparametervalue}**"
path = path.replacingOccurrences(of: "{queryparametervalue}", with: "(queryparametervalue)", options: .literal, range: nil)
The text was updated successfully, but these errors were encountered: