Skip to content

Commit

Permalink
feat(catalog): Improvement commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam-Gu authored and lordrip committed Feb 22, 2024
1 parent a18c07e commit b026d9b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void execute() {
var index = new Index();
var yamlDslSchemaProcessor = processCamelSchema(path, index);
processK8sSchema(path, index);
processCatalog(yamlDslSchemaProcessor, index, path);
processCatalog(yamlDslSchemaProcessor, path, index);
processCRDs(path, index);
processKamelets(path, index);
processAdditionalSchemas(path, index);
Expand Down Expand Up @@ -214,12 +214,13 @@ private void processK8sSchema(Path inputDir, Index index) {
}
}

private void processCatalog(CamelYamlDslSchemaProcessor schemaProcessor, Index index, Path inputDir) {
private void processCatalog(CamelYamlDslSchemaProcessor schemaProcessor, Path inputDir, Index index) {
var catalogProcessor = new CamelCatalogProcessor(jsonMapper, schemaProcessor);
try {
var catalogMap = catalogProcessor.processCatalog();
catalogMap.forEach((name, catalog) -> {
try {
// Adding Kamelet Configuration Schema to the Entities Catalog
if (name == "entities") {
var catalogNode = jsonMapper.readTree(catalog);
var schema = inputDir.resolve("schema").resolve("KameletConfiguration.json");
Expand Down

0 comments on commit b026d9b

Please sign in to comment.