Skip to content

Commit

Permalink
fix(catalog-generator): Use Label or Group for the EIP parameters gro…
Browse files Browse the repository at this point in the history
…uping

fix: #1381
  • Loading branch information
lordrip committed Oct 4, 2024
1 parent 18d8ddd commit 527849b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 6 additions & 5 deletions packages/catalog-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
<artifactId>camel-catalog</artifactId>
<version>${version.camel}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-yaml-dsl</artifactId>
<version>${version.camel}</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-catalog-maven</artifactId>
Expand Down Expand Up @@ -82,6 +77,12 @@
<artifactId>commons-cli</artifactId>
<version>1.9.0</version>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-yaml-dsl</artifactId>
<version>${version.camel}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,13 @@ public String getPatternCatalog() throws Exception {
required.add(propertyName);
}

propertySchema.put("group", catalogOp.getGroup());
/* In Apache Camel previous to 4.5.0, the displayName is stored in the label property */
if (catalogOp.getLabel() != null) {
propertySchema.put("group", catalogOp.getLabel());
} else if (catalogOp.getGroup() != null) {
propertySchema.put("group", catalogOp.getGroup());
}

sortedSchemaProperties.set(propertyName, propertySchema);
}

Expand Down

0 comments on commit 527849b

Please sign in to comment.