diff --git a/packages/catalog-generator/src/main/java/io/kaoto/camelcatalog/generator/CamelCatalogProcessor.java b/packages/catalog-generator/src/main/java/io/kaoto/camelcatalog/generator/CamelCatalogProcessor.java index 9e677a28d..227fd32a2 100644 --- a/packages/catalog-generator/src/main/java/io/kaoto/camelcatalog/generator/CamelCatalogProcessor.java +++ b/packages/catalog-generator/src/main/java/io/kaoto/camelcatalog/generator/CamelCatalogProcessor.java @@ -174,7 +174,7 @@ private void generatePropertiesSchema(ObjectNode parent) { } } - if (property.has("enum")) { + if (property.has("enum") && !"object".equals(propertyType)) { property.withArray("/enum") .forEach(e -> propertySchema.withArray("/enum").add(e)); if (!propertySchema.has("type") || "object".equals(propertySchema.get("type").asText())) {