We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With 3.0.65 the methods that are generated for get endpoints (havent checked others) are not returning anything. Same specs worked with 3.0.64.
The generated code looks like this:
public void whateverGet() throws ApiException { whateverGetWithHttpInfo(); }
while with 3.0.64:
public InlineResponse200 whateverGet() throws ApiException { ApiResponse<InlineResponse200> resp = whateverGetWithHttpInfo(); return resp.getData(); }
If i put the schema directly, without using the $ref, the generated code is having the return statement.
$ref
3.0.65
openapi: 3.0.1 paths: /whatever: get: responses: "200": $ref: "#/components/responses/WhateverGetResponse" components: responses: WhateverGetResponse: description: test content: application/json: schema: type: object properties: name: type: string
java -jar ~/Downloads/swagger-codegen-cli-3.0.65.jar generate -i test.yaml -l java -o ./debug -DhideGenerationTimestamp=true
just generate with 3.0.65
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
With 3.0.65 the methods that are generated for get endpoints (havent checked others) are not returning anything. Same specs worked with 3.0.64.
The generated code looks like this:
while with 3.0.64:
If i put the schema directly, without using the
$ref
, the generated code is having the return statement.Swagger-codegen version
3.0.65
Swagger declaration file content or url
Command line used for generation
java -jar ~/Downloads/swagger-codegen-cli-3.0.65.jar generate -i test.yaml -l java -o ./debug -DhideGenerationTimestamp=true
Steps to reproduce
just generate with 3.0.65
Related issues/PRs
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: