jamesnetherton commented on code in PR #8883:
URL: https://github.com/apache/camel-quarkus/pull/8883#discussion_r3613597598


##########
extensions/openapi-validator/runtime/src/main/doc/usage.adoc:
##########
@@ -0,0 +1,23 @@
+=== Enabling Request Validation
+
+To validate incoming requests against an OpenAPI specification, use the REST 
DSL with `clientRequestValidation` enabled:
+
+[source,java]
+----
+rest().clientRequestValidation(true).openApi().specification("openapi.json");
+
+// Handler route — auto-wired by operationId from the spec
+from("direct:addFruit")
+    .setBody(constant("Fruit created"));
+----
+
+Invalid requests are rejected with HTTP 400 and a validation report describing 
the errors.
+

Review Comment:
   We can probably remove this. It's a duplication of the Camel component 
documentation.



-- 
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]

Reply via email to