You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/08/31 07:10:00 UTC
[jira] [Created] (CAMEL-19813) camel-yaml-dsl - Error handler should be oneOf
Claus Ibsen created CAMEL-19813:
-----------------------------------
Summary: camel-yaml-dsl - Error handler should be oneOf
Key: CAMEL-19813
URL: https://issues.apache.org/jira/browse/CAMEL-19813
Project: Camel
Issue Type: Improvement
Components: camel-yaml-dsl
Reporter: Claus Ibsen
Fix For: 4.1.0
In this class org.apache.camel.dsl.yaml.deserializers.RouteConfigurationDefinitionDeserializer
Then there is an option for "error-handler" which refers to the 5+ error handlers we have in Camel.
In the schema then it looks like its an array where you can use 0..n of them.
But the realitiy is that you can choose to use only one of them. So either you use default error handler, or you use dead letter channel, and not both of them.
The new oneOf in the @YamlProperty may be useful if we can make it generate correct yaml schema output. Or we need to adjust the generator source to make this work.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)