Skip to content

Commit 519eaf6

Browse files
authored
fix post process file type (#18519)
1 parent c16f7f0 commit 519eaf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8139,7 +8139,7 @@ protected void setParameterNullable(CodegenParameter parameter, CodegenProperty
81398139

81408140
/**
81418141
* Post-process the auto-generated file, e.g. using go-fmt to format the Go code. The file type can be "model-test",
8142-
* "model-doc", "model", "api", "api-test", "api-doc", "supporting-mustache", "supporting-common",
8142+
* "model-doc", "model", "api", "api-test", "api-doc", "supporting-file",
81438143
* "openapi-generator-ignore", "openapi-generator-version"
81448144
* <p>
81458145
* TODO: store these values in enum instead

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ public void postProcessFile(File file, String fileType) {
966966
// only process the following type (or we can simply rely on the file extension to check if it's a Go file)
967967
Set<String> supportedFileType = new HashSet<>(
968968
Arrays.asList(
969-
"supporting-mustache",
969+
"supporting-file",
970970
"model-test",
971971
"model",
972972
"api-test",

0 commit comments

Comments
 (0)