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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Go code generated by swagger-codegen has a line with the following comment:
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
This comment does not match the pattern for generated code in go:
^// Code generated .* DO NOT EDIT\.$
Described here https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source
3.0.54
swagger-codegen generate -i swagger.yaml -l go
This PR fixes the issue #12357
The fix could be to change the line to the following
// Code generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) DO NOT EDIT.
The text was updated successfully, but these errors were encountered:
You could try using Apidog to generate code. That's how I use it, and I find the range of features quite diverse.
Sorry, something went wrong.
Encountering the same thing here, my golangci-lint config flags all kinds of issues with generated code, which it would not normally do.
No branches or pull requests
Description
Go code generated by swagger-codegen has a line with the following comment:
This comment does not match the pattern for generated code in go:
Described here https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source
Swagger-codegen version
3.0.54
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
This PR fixes the issue #12357
Suggest a fix/enhancement
The fix could be to change the line to the following
The text was updated successfully, but these errors were encountered: