[
https://issues.apache.org/jira/browse/CAMEL-25328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-25328.
---------------------------------
Fix Version/s: 4.23.0
Resolution: Fixed
Fixed by https://github.com/apache/camel/pull/27348 (5766a64b8d00).
> camel-yaml-dsl-validator - an error handler written as a route step says
> where it goes
> --------------------------------------------------------------------------------------
>
> Key: CAMEL-25328
> URL: https://issues.apache.org/jira/browse/CAMEL-25328
> Project: Camel
> Issue Type: Improvement
> Components: camel-yaml-dsl
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.23.0
>
>
> A route-level error handler written as a step of the route:
> {code:yaml}
> - route:
> id: payment-provider
> from:
> uri: direct:charge
> steps:
> - noErrorHandler: {}
> - choice: ...
> {code}
> gets "property 'noErrorHandler' is not defined in the schema and the schema
> does not allow additional properties" and no hint. CAMEL-24881 added hints
> for the other wrong shapes (noErrorHandler: true or errorHandlerType: none
> under the route, a type: under errorHandler:), but an unknown error handler
> kind at a step position is not covered.
> Found in the local-model benchmark (round 4, fail-well/error-handling step 2,
> 2 of 5 runs): the model wrote it as the first step, was refused without the
> form, and did not find it.
> Fix: a SchemaHints row for an error handler kind (noErrorHandler,
> deadLetterChannel, defaultErrorHandler, ...) as an unknown property of a
> step: an error handler is not a step; write it on the route, next to from:,
> as errorHandler: {noErrorHandler: {}} (a top-level - errorHandler: item
> applies to every route).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)