Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ public Map<String, Object> postProcessModelsEnum(Map<String, Object> objs) {
}

/**
* Returns the common prefix of variables for enum naming if
* two or more variables are present
* Returns the common prefix of variables for enum naming if
* two or more variables are present.
*
* @param vars List of variable names
* @return the common prefix for naming
Expand Down Expand Up @@ -1500,6 +1500,10 @@ public CodegenModel fromModel(String name, Model model, Map<String, Model> allDe
properties.putAll(model.getProperties());
}

if (composed.getRequired() != null) {
required.addAll(composed.getRequired());
}

// child model (properties owned by the model itself)
Model child = composed.getChild();
if (child != null && child instanceof RefModel && allDefinitions != null) {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@
</repository>
</repositories>
<properties>
<swagger-parser-version>1.0.52</swagger-parser-version>
<swagger-parser-version>1.0.53-SNAPSHOT</swagger-parser-version>
<scala-version>2.11.1</scala-version>
<felix-version>3.3.0</felix-version>
<swagger-core-version>1.6.2</swagger-core-version>
Expand Down