Skip to content

Commit

Permalink
Merge pull request #12333 from swagger-api/custom-generator-load
Browse files Browse the repository at this point in the history
allow custom codegen generator be loaded
  • Loading branch information
HugoMario authored Feb 5, 2024
2 parents 25cc058 + d0db2bc commit f999115
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public ClientOptInput toClientOptInput() {
setVerboseFlags();
setSystemProperties();

CodegenConfig config = CodegenConfigLoader.forName(lang);
CodegenConfig config = loadCodegenConfig();
ClientOptInput input = new ClientOptInput();

Predicate<URL> urlMatcher = null;
Expand Down Expand Up @@ -669,6 +669,10 @@ public ClientOptInput toClientOptInput() {
return input;
}

protected CodegenConfig loadCodegenConfig() {
return CodegenConfigLoader.forName(lang);
}

private ParseOptions buildParseOptions() {
ParseOptions options = new ParseOptions();
options.setResolve(true);
Expand Down

0 comments on commit f999115

Please sign in to comment.