You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Tomohisa Igarashi (Jira)" <ji...@apache.org> on 2023/09/06 10:39:00 UTC
[jira] [Resolved] (CAMEL-19836) camel-yaml-dsl: schema: fix routeConfiguration/onException
[ https://issues.apache.org/jira/browse/CAMEL-19836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomohisa Igarashi resolved CAMEL-19836.
---------------------------------------
Resolution: Fixed
Fixed - https://github.com/apache/camel/pull/11309
> camel-yaml-dsl: schema: fix routeConfiguration/onException
> ----------------------------------------------------------
>
> Key: CAMEL-19836
> URL: https://issues.apache.org/jira/browse/CAMEL-19836
> Project: Camel
> Issue Type: Task
> Components: camel-yaml-dsl
> Affects Versions: 4.0.0
> Reporter: Tomohisa Igarashi
> Assignee: Tomohisa Igarashi
> Priority: Major
> Fix For: 4.1.0
>
>
> According to this doc - [https://camel.apache.org/manual/route-configuration.html#_route_configuration_in_yaml]
> `routeConfiguration/onException` is written as following in YAML DSL, having `onException` twice. Runtime (deserializer) accepts this.
> {code:yaml}
> - routeConfiguration:
> onException:
> - onException:
> handled:
> constant: "true"
> {code}
> However the YAML DSL schema defines as following, which causes an error at runtime.
> {code:yaml}
> - routeConfiguration:
> onException:
> - handled:
> constant: "true"
> {code}
> Fix the schema to align with the runtime behavior. Note that this array structure is irregular compared to the others such as `when` under `choice` which doesn't have a duplicated nest. We'd need some special handling for `routeConfiguration`.
> It's same for `onCompletion`, `intercept`, `interceptFrom` and `interceptSendToEndpoint`. Fix all of these.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)