davsclaus opened a new pull request, #26749: URL: https://github.com/apache/camel/pull/26749
Fixes https://issues.apache.org/jira/browse/CAMEL-24906 (part of CAMEL-24886) CAMEL-24888 taught the validator to name a double-quoted value that never closes, with a message that described the edit: "end it with a `"` after the last character". In the next stepwise run the local model answered it by appending a quote to a line that already had one, seven times in one run of four examples, always the same JSONPath filter, and then hit the older "the value continues after its closing quote" message, which explains concatenation and does not fit. Both messages now give the line to write: ``` line 8: the value opens a double quote and never closes it; write the line as expression: "$[?(@.sku == '${header.sku}')]" (a single quote inside a double-quoted value needs no escape) line 8: the value of expression ends with two double quotes; remove the extra one and write the line as expression: "$[?(@.sku == '${header.sku}')]" ``` Tests in `YamlValidatorPropertyHintTest` for both, and verified on the CLI with `camel validate yaml`. A JSONPath with single quotes inside a double-quoted scalar is the shape of every filter in the REST examples, so this one line gates that rung. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
