Created by: pmcgleenon
#8680 (closed) (go-server)
Added enumClassPrefix option for go-gin-server target. This option already exists in go-server.
Fixed a bug in the model.mustache where name is used in the type declaration and classname is used in the definition
generated code before:
`type ComparisonOperator_anyOf string
// List of ComparisonOperator_anyOf
const (
EQ ComparisonOperatorAnyOf = "EQ"
NEQ ComparisonOperatorAnyOf = "NEQ"
GT ComparisonOperatorAnyOf = "GT"
GTE ComparisonOperatorAnyOf = "GTE"
LT ComparisonOperatorAnyOf = "LT"
LTE ComparisonOperatorAnyOf = "LTE"
)`
generated code after:
`type ComparisonOperatorAnyOf string
// List of ComparisonOperatorAnyOf
const (
COMPARISONOPERATORANYOF_EQ ComparisonOperatorAnyOf = "EQ"
COMPARISONOPERATORANYOF_NEQ ComparisonOperatorAnyOf = "NEQ"
COMPARISONOPERATORANYOF_GT ComparisonOperatorAnyOf = "GT"
COMPARISONOPERATORANYOF_GTE ComparisonOperatorAnyOf = "GTE"
COMPARISONOPERATORANYOF_LT ComparisonOperatorAnyOf = "LT"
COMPARISONOPERATORANYOF_LTE ComparisonOperatorAnyOf = "LTE"
)`
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
Run the following to build the project and update samples: ./mvnw clean package ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. -
File the PR against the correct branch: master
,5.1.x
,6.0.x
- [ x] If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.
@antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01)