ArnavBalyan commented on code in PR #4621:
URL: https://github.com/apache/polaris/pull/4621#discussion_r3398472774


##########
server-templates/api.mustache:
##########
@@ -99,7 +108,14 @@ public class {{classname}}  {
       .addKeyValue("operation", 
"{{nickname}}"){{#allParams}}{{^isHeaderParam}}{{^isFormParam}}
       .addKeyValue("{{paramName}}", 
{{^isBodyParam}}{{paramName}}{{/isBodyParam}}{{#isBodyParam}}String.valueOf({{paramName}}){{/isBodyParam}}){{/isFormParam}}{{/isHeaderParam}}{{/allParams}}
       .log();
-
+{{#useBeanValidation}}{{#allParams}}{{#isBodyParam}}
+    if ({{paramName}} != null) {
+      Set<ConstraintViolation<{{{dataType}}}>> __violations = 
validator.validate({{paramName}});

Review Comment:
   Yeah this should not be needed, fixed the regex through the other PR, 
closing this one thanks!



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