beskow commented on code in PR #18233:
URL: https://github.com/apache/camel/pull/18233#discussion_r2117739097


##########
components/camel-openapi-validator/src/main/java/org/apache/camel/component/rest/openapi/validator/client/OpenApiRestClientRequestValidator.java:
##########
@@ -54,6 +56,28 @@ public ValidationError validate(Exchange exchange, 
ValidationContext validationC
         if (body != null) {
             builder.withBody(body);
         }
+        // Use all non-Camel headers
+        for (Entry<String, Object> header : 
exchange.getMessage().getHeaders().entrySet()) {

Review Comment:
   Ok, I tried to mimic the implementation from 
org.apache.camel.support.DefaultHeaderFilterStrategy, but I must have 
misinterpreted it.
   
   Anyway, fixed and simplified slightly for readability. Thanks!



-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to