[
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)