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
The return type of each operation is incorrect. Currently the template defines it as this:
def {{operationId}}({{>methodParameters}}): Request[{{#separateErrorChannel}}Either[ResponseException[String, Exception], {{>operationReturnType}}]{{/separateErrorChannel}}{{^separateErrorChannel}}{{>operationReturnType}}{{/separateErrorChannel}}, Nothing] =
But it should be this:
def {{operationId}}({{>methodParameters}}): Request[{{#separateErrorChannel}}Either[ResponseException[String, Exception], {{>operationReturnType}}]{{/separateErrorChannel}}{{^separateErrorChannel}}{{>operationReturnType}}{{/separateErrorChannel}}, Any] =
i.e. Nothing should be Any
Nothing
Any
6.0.1
Using Coursier launch:
cs launch org.openapitools:openapi-generator-cli:6.0.1 -- generate \ -i api.yaml \ -g scala-sttp \ -o out
See the sttp docs: https://sttp.softwaremill.com/en/latest/requests/type.html
Suggested above.
The text was updated successfully, but these errors were encountered:
I see this issue is fixed in this PR #11949.
Sorry, something went wrong.
This has not been fixed yet, as the PR with the fix has not been merged
No branches or pull requests
Bug Report Checklist
Description
The return type of each operation is incorrect. Currently the template defines it as this:
But it should be this:
i.e.
Nothing
should beAny
openapi-generator version
6.0.1
OpenAPI declaration file content or url
Generation Details
Using Coursier launch:
Steps to reproduce
See the sttp docs:
https://sttp.softwaremill.com/en/latest/requests/type.html
Related issues/PRs
Suggest a fix
Suggested above.
The text was updated successfully, but these errors were encountered: