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


##########
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:
   ```
   There are uncommitted changes
   HEAD detached at pull/8883/merge
   Changes not staged for commit:
     (use "git add <file>..." to update what will be committed)
     (use "git restore <file>..." to discard changes in working directory)
        modified:   
docs/modules/ROOT/pages/reference/extensions/openapi-validator.adoc
   ```
   
   You'll need to run `mvn clean install` in the `openapi-validator` extension 
module to regenerate the docs
   



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