Skip to content

Commit

Permalink
set generation option skipInlineModelMatches (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noa Resare authored Aug 25, 2022
1 parent 0fc8ea1 commit 961a29c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ maven_install(
"com.fasterxml.jackson.core:jackson-databind:2.13.3",
"com.fasterxml.jackson.core:jackson-core:2.13.3",
"com.fasterxml.jackson.core:jackson-annotations:2.13.3",
"io.swagger.codegen.v3:swagger-codegen:3.0.34",
"io.swagger.codegen.v3:swagger-codegen:3.0.35",
"io.swagger.codegen.v3:swagger-codegen-generators:1.0.34",
"io.swagger.parser.v3:swagger-parser-v3:2.1.1",
"io.swagger.core.v3:swagger-models:2.2.1",
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/gs/crdtools/SourceGenFromSpec.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ static Map<Path, String> generateSource(SpecExtractorHelper.Spec spec, String mo
.setLang(CrdtoolsCodegen.class.getCanonicalName())
.setOutputDir(tmpOutputDir.toAbsolutePath().toString())
.setModelPackage(modelPackage)
.setSkipInlineModelMatches(true)
// CodegenConfigurator modifies its Map arguments, so we need to wrap it in something mutable
.setAdditionalProperties(
HashMap.of(
Expand Down

0 comments on commit 961a29c

Please sign in to comment.