davsclaus opened a new pull request, #24806: URL: https://github.com/apache/camel/pull/24806
## Summary `DefaultRequestValidator` rejected requests whose required query parameters were supplied via endpoint URI literals or exchange variables, because it only checked `message.getHeader()`. The fix extends the query parameter validation in `DefaultRequestValidator.validate()` to mirror the resolution order used by `RestProducer.createQueryParameters()`: 1. Message header 2. Exchange variable 3. Literal endpoint parameter (from the endpoint URI) Changes: - `DefaultRequestValidator` — added `endpointParameters` field and extended the required query parameter check to also consult exchange variables and endpoint literal parameters - `RestOpenApiEndpoint.configureRequestValidator()` — passes the endpoint's remaining parameters to the validator - `RestOpenApiRequestValidationTest` — added two new parameterized tests covering literal endpoint URI query params and exchange variables with validation enabled Fixes: [CAMEL-24114](https://issues.apache.org/jira/browse/CAMEL-24114) _Claude Code on behalf of davsclaus_ Co-Authored-By: Claude Opus 4.6 <[email protected]> -- 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]
