Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
-
None
-
Unknown
Description
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.
- routeConfiguration: onException: - onException: handled: constant: "true"
However the YAML DSL schema defines as following, which causes an error at runtime.
- routeConfiguration: onException: - handled: constant: "true"
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.
Attachments
Issue Links
- blocks
-
CAMEL-19700 camel-yaml-dsl: Add "additionalProperties: false" on every sub schema
- Resolved