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 3e2f40e43e21c..608c98f3afed7 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 void execute() throws MojoExecutionException { String comp = findAppropriateComponent(); generator.withRestComponent(comp); + if (clientRequestValidation) { + generator.withClientRequestValidation(); + } if (ObjectHelper.isNotEmpty(apiContextPath)) { generator.withApiContextPath(apiContextPath); }