You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/generators/go.md
+19-18Lines changed: 19 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,24 +16,25 @@ title: Documentation for the go Generator
16
16
## CONFIG OPTIONS
17
17
These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to [configuration docs](https://openapi-generator.tech/docs/configuration) for more details.
18
18
19
-
| Option | Description | Values | Default |
20
-
| ------ | ----------- | ------ | ------- |
21
-
|disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|<dl><dt>**false**</dt><dd>The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.</dd><dt>**true**</dt><dd>Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.</dd></dl>|true|
22
-
|enumClassPrefix|Prefix enum with class name||false|
23
-
|generateInterfaces|Generate interfaces for api classes||false|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.||true|
27
-
|isGoSubmodule|whether the generated Go module is a submodule||false|
28
-
|packageName|Go package name (convention: lowercase).||openapi|
29
-
|packageVersion|Go package version.||1.0.0|
30
-
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.||false|
31
-
|structPrefix|whether to prefix struct with the class name. e.g. DeletePetOpts => PetApiDeletePetOpts||false|
32
-
|useDefaultValuesForRequiredVars|Use default values for required variables when available||false|
33
-
|useOneOfDiscriminatorLookup|Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and only one match in oneOf's schemas) will be skipped.||false|
34
-
|withAWSV4Signature|whether to include AWS v4 signature support||false|
35
-
|withGoMod|Generate go.mod and go.sum||true|
36
-
|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|
| disallowAdditionalPropertiesIfNotPresent | If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default. |<dl><dt>**false**</dt><dd>The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.</dd><dt>**true**</dt><dd>Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.</dd></dl>|true|
22
+
| enumClassPrefix | Prefix enum with class name ||false|
23
+
| generateInterfaces | Generate interfaces for api classes ||false|
| hideGenerationTimestamp | Hides the generation timestamp when files are generated. ||true|
27
+
| isGoSubmodule | whether the generated Go module is a submodule ||false|
28
+
| packageName | Go package name (convention: lowercase). ||openapi|
29
+
| packageVersion | Go package version. ||1.0.0|
30
+
| prependFormOrBodyParameters | Add form or body parameters to the beginning of the parameter list. ||false|
31
+
| structPrefix | whether to prefix struct with the class name. e.g. DeletePetOpts => PetApiDeletePetOpts ||false|
32
+
| useDefaultValuesForRequiredVars | Use default values for required variables when available ||false|
33
+
| useOneOfDiscriminatorLookup | Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and only one match in oneOf's schemas) will be skipped. ||false|
34
+
| withAWSV4Signature | whether to include AWS v4 signature support ||false|
35
+
| withGoMod | Generate go.mod and go.sum ||true|
36
+
| 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|
37
+
| prefixEnums | prefix enums contants with their type name ||false|
0 commit comments