This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push:
new ca367e65 Temp solution for #1304
ca367e65 is described below
commit ca367e65d44517872127b669fe06023030c95f07
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Thu May 30 17:14:22 2024 -0400
Temp solution for #1304
---
karavan-core/src/core/api/CamelDefinitionYaml.ts | 2 ++
karavan-core/test/errorHandler1.yaml | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/karavan-core/src/core/api/CamelDefinitionYaml.ts
b/karavan-core/src/core/api/CamelDefinitionYaml.ts
index d967bbb8..7cec075d 100644
--- a/karavan-core/src/core/api/CamelDefinitionYaml.ts
+++ b/karavan-core/src/core/api/CamelDefinitionYaml.ts
@@ -173,6 +173,8 @@ export class CamelDefinitionYaml {
delete newValue.dslName;
delete newValue[stepNameField];
+ if (stepName === 'errorHandler') { delete newValue.id} // until
https://issues.apache.org/jira/browse/CAMEL-20818
+
if (
value.inArray &&
!value.inSteps &&
diff --git a/karavan-core/test/errorHandler1.yaml
b/karavan-core/test/errorHandler1.yaml
index e65378ab..9f6eaa26 100644
--- a/karavan-core/test/errorHandler1.yaml
+++ b/karavan-core/test/errorHandler1.yaml
@@ -19,7 +19,6 @@
- routeConfiguration:
id: routeConfiguration-1
errorHandler:
- id: errorHandler-1
deadLetterChannel:
id: deadLetterChannel-1
deadLetterUri: log:dlq