Tomohisa Igarashi created CAMEL-19836:
-----------------------------------------
Summary: 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
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
{code:yaml}
- routeConfiguration:
onException:
- onException:
handled:
constant: "true"
{code}
However the YAML DSL schema defines as following, which causes an error at
runtime (deserializer)
{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`.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)