forked from loafle/openapi-generator-original
fix post process file type (#18519)
This commit is contained in:
@@ -8139,7 +8139,7 @@ public class DefaultCodegen implements CodegenConfig {
|
||||
|
||||
/**
|
||||
* Post-process the auto-generated file, e.g. using go-fmt to format the Go code. The file type can be "model-test",
|
||||
* "model-doc", "model", "api", "api-test", "api-doc", "supporting-mustache", "supporting-common",
|
||||
* "model-doc", "model", "api", "api-test", "api-doc", "supporting-file",
|
||||
* "openapi-generator-ignore", "openapi-generator-version"
|
||||
* <p>
|
||||
* TODO: store these values in enum instead
|
||||
|
||||
@@ -966,7 +966,7 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege
|
||||
// only process the following type (or we can simply rely on the file extension to check if it's a Go file)
|
||||
Set<String> supportedFileType = new HashSet<>(
|
||||
Arrays.asList(
|
||||
"supporting-mustache",
|
||||
"supporting-file",
|
||||
"model-test",
|
||||
"model",
|
||||
"api-test",
|
||||
|
||||
Reference in New Issue
Block a user