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:12:00 UTC

[jira] [Comment Edited] (CAMEL-19813) camel-yaml-dsl - Error handler should be oneOf

    [ https://issues.apache.org/jira/browse/CAMEL-19813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17760753#comment-17760753 ] 

Claus Ibsen edited comment on CAMEL-19813 at 8/31/23 7:11 AM:
--------------------------------------------------------------

{code}
      "org.apache.camel.model.RouteConfigurationDefinition" : {
        "type" : "object",
        "properties" : {
          "errorHandler" : {
            "$ref" : "#/items/definitions/org.apache.camel.model.ErrorHandlerDefinition"
          },
          "id" : {
            "type" : "string"
          },
          "intercept" : {
{code}


was (Author: davsclaus):
      "org.apache.camel.model.RouteConfigurationDefinition" : {
        "type" : "object",
        "properties" : {
          "errorHandler" : {
            "$ref" : "#/items/definitions/org.apache.camel.model.ErrorHandlerDefinition"
          },
          "id" : {
            "type" : "string"
          },
          "intercept" : {


> 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
>            Priority: Major
>             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)