-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[PHP] Incorrect return types if multiple responses are defined #125
Labels
Comments
4 tasks
fMads
added a commit
to spysystem/openapi-generator
that referenced
this issue
May 22, 2018
fMads
added a commit
to spysystem/openapi-generator
that referenced
this issue
Jun 7, 2018
ackintosh
pushed a commit
that referenced
this issue
Jun 20, 2018
* #125: Correctly handle multiple valid responses * Fixed defaultResponses * Fixed void-returns * Fixed multiple return-types without an actual type * Update the samples under openapi3 folder
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
If you define multiple responses, the codegen will only support the first one (typically 200).
openapi-generator version
3.0.0-SNAPSHOT
OpenAPI declaration file content or url
Suggest a fix/enhancement
Correctly generate the return-object based on the HTTP Status Code in the Response.
Also fix ReturnType info in DocBlock
The text was updated successfully, but these errors were encountered: