-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
cpp-qt5-client: remove host since it is not well handled #4429
Conversation
@MartinDelille
There are many use cases to have base path as is. e.g.
|
You're right there is indeed a problem in this code I wrote this summer. The problem I raised here and that I'm trying to solve is that I need to dig into this |
I tried something quick on my side to add parsing of scheme in
Then you can remove all these lines from the three header files
And from all three source files
Generated constructor looks like this
I ran the test and it passed with these changes. |
The only thing is that as I said above, |
Ok for me |
2a2d570
to
fbc8c58
Compare
Ok I finally change to the following implementation. I had to rebase #4435 so maybe we should merge it first if everything is fine with it. |
fbc8c58
to
9934cfd
Compare
* master: [csharp-netcore] Propagate raw content to the ApiException error content. (#4381) Remove path relative to my home dir. (#4470) Avoid generating uncompilable response body in Spring's API template (#2903) cpp-qt5-client: remove host since it is not well handled (#4429) [Java] Refactor webClient generator to use URI templates to capture correct metrics (#4314) [Java]: Client resttemplate and webclient: array parameters of type integer in path badly generated (#4379) Dart generate keywords (#4449) [core] Fix system properties being immutable (#4447) [Kotlin][Client] minor improvements (#4419) [typescript-rxjs]: Add support for nullable (#4438) [asciidoc] fix names of parameters (#4440)
This PR replace part of the job done here: #3688
Now that the base path is well handled, the API class can use the one provided in the API description.
There was previously a mismatch between host and base path as mentionned here: #3399
PR checklist
./bin/
(or Windows batch scripts under.\bin\windows
) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run./bin/{LANG}-petstore.sh
,./bin/openapi3/{LANG}-petstore.sh
if updating the code or mustache templates for a language ({LANG}
) (e.g. php, ruby, python, etc).master
,4.3.x
,5.0.x
. Default:master
.@ravinikam @stkrwork @etherealjoy @muttleyxd