You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to generate a API client using the swagger file that Snowstorm generates but its failing because the return types are not defined.
An example is the "Create a import job" in the /import API.
Since there is no @ApiResponse declared, swagger will create a default HTTP 200 result for all POST but this is wrong in this case.
The /import do return a HTTP 201 Created. This issue causes the generated code to be wrong :(
Any chance you could also add @ApiResponse to the code so the swagger file becomes even better :) ?
Hi
I'm trying to generate a API client using the swagger file that Snowstorm generates but its failing because the return types are not defined.
An example is the "Create a import job" in the
/import
API.Since there is no
@ApiResponse
declared, swagger will create a default HTTP 200 result for all POST but this is wrong in this case.The
/import
do return a HTTP 201 Created. This issue causes the generated code to be wrong :(Any chance you could also add
@ApiResponse
to the code so the swagger file becomes even better :) ?Docs: https://www.baeldung.com/swagger-operation-vs-apiresponse#apiresponse
The text was updated successfully, but these errors were encountered: