This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-3.11.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.11.x by this push:
     new 0a0dc90  CAMEL-17126 Set clientRequestValidation on generator (#6335)
0a0dc90 is described below

commit 0a0dc900ae3e1f9cf5b261d4709fda91b433c9f5
Author: henka-rl <[email protected]>
AuthorDate: Mon Oct 25 20:47:28 2021 +0200

    CAMEL-17126 Set clientRequestValidation on generator (#6335)
---
 .../java/org/apache/camel/maven/generator/openapi/GenerateMojo.java    | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/tooling/maven/camel-restdsl-openapi-plugin/src/main/java/org/apache/camel/maven/generator/openapi/GenerateMojo.java
 
b/tooling/maven/camel-restdsl-openapi-plugin/src/main/java/org/apache/camel/maven/generator/openapi/GenerateMojo.java
index 3e2f40e..608c98f 100644
--- 
a/tooling/maven/camel-restdsl-openapi-plugin/src/main/java/org/apache/camel/maven/generator/openapi/GenerateMojo.java
+++ 
b/tooling/maven/camel-restdsl-openapi-plugin/src/main/java/org/apache/camel/maven/generator/openapi/GenerateMojo.java
@@ -102,6 +102,9 @@ public class GenerateMojo extends AbstractGenerateMojo {
             String comp = findAppropriateComponent();
             generator.withRestComponent(comp);
 
+            if (clientRequestValidation) {
+                generator.withClientRequestValidation();
+            }
             if (ObjectHelper.isNotEmpty(apiContextPath)) {
                 generator.withApiContextPath(apiContextPath);
             }

Reply via email to