Skip to content

Commit f999115

Browse files
authored
Merge pull request #12333 from swagger-api/custom-generator-load
allow custom codegen generator be loaded
2 parents 25cc058 + d0db2bc commit f999115

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/config/CodegenConfigurator.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ public ClientOptInput toClientOptInput() {
515515
setVerboseFlags();
516516
setSystemProperties();
517517

518-
CodegenConfig config = CodegenConfigLoader.forName(lang);
518+
CodegenConfig config = loadCodegenConfig();
519519
ClientOptInput input = new ClientOptInput();
520520

521521
Predicate<URL> urlMatcher = null;
@@ -669,6 +669,10 @@ public ClientOptInput toClientOptInput() {
669669
return input;
670670
}
671671

672+
protected CodegenConfig loadCodegenConfig() {
673+
return CodegenConfigLoader.forName(lang);
674+
}
675+
672676
private ParseOptions buildParseOptions() {
673677
ParseOptions options = new ParseOptions();
674678
options.setResolve(true);

0 commit comments

Comments
 (0)