Skip to content

Commit

Permalink
fix(CatalogGenerator): Ignore 'enum' property for multiValue param
Browse files Browse the repository at this point in the history
In Camel 4.8.0, there's an enum property over a multiValue parameter,
making the configuration form to render a selector instead of a metadata
editor.
  • Loading branch information
lordrip committed Sep 13, 2024
1 parent c3cf5e0 commit 707be44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private void generatePropertiesSchema(ObjectNode parent) {
}
}

if (property.has("enum")) {
if (property.has("enum") && !property.has("multiValue")) {
property.withArray("/enum")
.forEach(e -> propertySchema.withArray("/enum").add(e));
if (!propertySchema.has("type") || "object".equals(propertySchema.get("type").asText())) {
Expand Down

0 comments on commit 707be44

Please sign in to comment.