[
https://issues.apache.org/jira/browse/CAMEL-25372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-25372:
--------------------------------
Fix Version/s: 4.23.0
> camel-yaml-dsl-validator - a misplaced key says where it goes: a top-level
> key without its - , and an option at the column of its EIP
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-25372
> URL: https://issues.apache.org/jira/browse/CAMEL-25372
> Project: Camel
> Issue Type: Improvement
> Components: camel-yaml-dsl
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.23.0
>
>
> Two YAML structure mistakes a local model made, and what the validator
> answered (local-model benchmark r5, steps that used all 20 tool calls):
> *A top-level key without the list item marker.* The model appended
> {code:yaml}
> errorHandler:
> deadLetterChannel:
> deadLetterUri: direct:parked
> {code}
> at column 1 after the {{- route:}} entries. The validator answered {{line 41
> is not YAML ("errorHandler:"): a route file holds only the YAML, put
> explanations in a # comment or leave them out}}. That is valid YAML, not
> prose; the {{- }} is missing.
> *An option at the column of its EIP.*
> {code:yaml}
> - to:
> uri: "sql:INSERT ..."
> parameters:
> allowNamedParameters: true
> {code}
> got {{must have at most 1 properties (a step is one EIP: an option of that
> EIP is indented under its key, and the next EIP is its own - item)}}, which
> does not name the key or where it goes. The model wrote the same thing three
> times.
> Proposal:
> * A mapping key alone at column 1, in a file whose entries are list items, is
> reported as such: "errorHandler: is a top-level key in a file whose entries
> are list items: write it as a list item, - errorHandler:".
> * "at most 1 properties" at a step names each extra key: an option of the
> step's EIP "is indented under to:, two spaces more"; another EIP "is its own
> item, - to:". A key that is neither keeps the general sentence.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)