Skip to content

Commit b7b0641

Browse files
committed
added property to identify if model comes from composed schema.
1 parent 169c978 commit b7b0641

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/CodegenModel.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class CodegenModel extends CodegenObject {
4242

4343
public Set<String> imports = new TreeSet<String>();
4444
public boolean emptyVars;
45+
public boolean isComposedModel;
4546
public ExternalDocumentation externalDocumentation;
4647

4748
//The type of the value from additional properties. Used in map like objects.
@@ -471,4 +472,12 @@ public String getAdditionalPropertiesType() {
471472
public void setAdditionalPropertiesType(String additionalPropertiesType) {
472473
this.additionalPropertiesType = additionalPropertiesType;
473474
}
475+
476+
public boolean getIsComposedModel() {
477+
return isComposedModel;
478+
}
479+
480+
public void setIsComposedModel(boolean isComposedModel) {
481+
this.isComposedModel = isComposedModel;
482+
}
474483
}

0 commit comments

Comments
 (0)