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
When running staticcheck on the generated go client, there are several ST1005 errors.
Using openapitools/openapi-generator-cli:v6.1.0 but the problem persists in the mustache templates of latest master.
openapi: "3.0.3" info: version: 1.0.0 title: test paths: /endpoint: get: responses: 200: description: 'successful operation' content: application/json: schema: type: array items: type: string
docker run --rm -v $(pwd):/local openapitools/openapi-generator-cli:v6.1.0 generate -i local/api.yaml -g go -o local/client --additional-properties=outputAsLibrary=true
Run staticcheck on the generated code:
go install honnef.co/go/tools/cmd/[email protected] cd client staticcheck .
I didn't find any issue/PR mentioning ST1005.
Update the mustache templates that do not follow the code style guidelines for fmt.Errorf.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug Report Checklist
Description
When running staticcheck on the generated go client, there are several ST1005 errors.
openapi-generator version
Using openapitools/openapi-generator-cli:v6.1.0 but the problem persists in the mustache templates of latest master.
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Run staticcheck on the generated code:
Related issues/PRs
I didn't find any issue/PR mentioning ST1005.
Suggest a fix
Update the mustache templates that do not follow the code style guidelines for fmt.Errorf.
The text was updated successfully, but these errors were encountered: