jomin7 commented on code in PR #8883:
URL: https://github.com/apache/camel-quarkus/pull/8883#discussion_r3614434321
##########
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:
Sorry about that . Fixed now by running mvn process-classes on the
deployment module and pushed the update.
--
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]