mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-11-22 11:33:58 +00:00
1005 B
1005 B
| title | sidebar_label |
|---|---|
| Config Options for go | go |
| Option | Description | Values | Default |
|---|---|---|---|
| packageName | Go package name (convention: lowercase). | openapi | |
| packageVersion | Go package version. | 1.0.0 | |
| hideGenerationTimestamp | Hides the generation timestamp when files are generated. | true | |
| isGoSubmodule | whether the generated Go module is a submodule | false | |
| withGoCodegenComment | whether to include Go codegen comment to disable Go Lint and collapse by default GitHub in PRs and diffs | false | |
| withXml | whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML) | false | |
| enumClassPrefix | Prefix enum with class name | false | |
| structPrefix | whether to prefix struct with the class name. e.g. DeletePetOpts => PetApiDeletePetOpts | false | |
| prependFormOrBodyParameters | Add form or body parameters to the beginning of the parameter list. | false |