Skip to content

Commit

Permalink
jackson 2.9.2 #911
Browse files Browse the repository at this point in the history
  • Loading branch information
jknack committed Oct 21, 2017
1 parent ecbc212 commit aeb70f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,9 @@ private RamlType define(final String type, final Model model) {
}
}));
definition = object;
object.setExample(example);
if (example.values().stream().filter(Objects::nonNull).count() > 0) {
object.setExample(example);
}
}
return definition;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ public void shouldWorkWithUUID() throws Exception {
+ " type: object\n"
+ " properties:\n"
+ " id?: UUID\n"
+ " example:\n"
+ " id: null\n"
+ "/api:\n"
+ " /entry:\n"
+ " /{id}:\n"
Expand Down Expand Up @@ -103,7 +101,6 @@ public void shouldUseCustomType() throws Exception {
+ " bar: string\n"
+ " UUID:\n"
+ " type: object\n"
+ " example: {}\n"
+ "/api:\n"
+ " /entry:\n"
+ " /{id}:\n"
Expand Down

0 comments on commit aeb70f3

Please sign in to comment.