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
+1
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ sidebar_label: go
10
10
|packageName|Go package name (convention: lowercase).||openapi|
11
11
|packageVersion|Go package version.||1.0.0|
12
12
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.||true|
13
+
|isGoSubmodule|whether the generated Go module is a submodule||false|
13
14
|withGoCodegenComment|whether to include Go codegen comment to disable Go Lint and collapse by default GitHub in PRs and diffs||false|
14
15
|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|
15
16
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.||false|
publicstaticfinalStringWITH_GO_CODEGEN_COMMENT_DESC = "whether to include Go codegen comment to disable Go Lint and collapse by default GitHub in PRs and diffs";
cliOptions.add(CliOption.newBoolean(WITH_GO_CODEGEN_COMMENT, "whether to include Go codegen comment to disable Go Lint and collapse by default GitHub in PRs and diffs"));
55
57
cliOptions.add(CliOption.newBoolean(WITH_XML, "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)"));
56
58
@@ -111,6 +113,13 @@ public void processOpts() {
111
113
additionalProperties.put(WITH_XML, "true");
112
114
}
113
115
}
116
+
117
+
if (additionalProperties.containsKey(WITH_GO_CODEGEN_COMMENT)) {
0 commit comments