Skip to content

Commit

Permalink
Merge pull request #9146 from swagger-api/issue-6519-regresion
Browse files Browse the repository at this point in the history
fixed NPE on composed models datatype.
  • Loading branch information
HugoMario committed Feb 6, 2019
2 parents 377174f + 73076c5 commit 41d2a9d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2683,6 +2683,10 @@ public CodegenParameter fromParameter(Parameter param, Set<String> imports) {
name = getTypeDeclaration(name);
}
p.dataType = name;
} else {
if (sub instanceof ComposedModel) {
p.dataType = "object";
}
}
}
p.paramName = toParamName(bp.getName());
Expand Down

0 comments on commit 41d2a9d

Please sign in to comment.