Skip to content

Commit

Permalink
fix(969) - Camel Catalog plugin - write default boolean values to boo…
Browse files Browse the repository at this point in the history
…lean
  • Loading branch information
tplevko committed Mar 28, 2024
1 parent d27f684 commit 49432dc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ private void doProcessParameter(EipModel entityCatalog, String propertyName, Obj
if (catalogOption.getDefaultValue() != null) {
if ("array".equals(propertyType)) {
propertySchema.withArray("/default").add(catalogOption.getDefaultValue().toString());
} else if ("boolean".equals(propertyType)) {
propertySchema.put("default", Boolean.valueOf(catalogOption.getDefaultValue().toString()));
} else {
propertySchema.put("default", catalogOption.getDefaultValue().toString());
}
Expand Down

0 comments on commit 49432dc

Please sign in to comment.