ShermanMarshall commented on a change in pull request #448: Tomee 2482 
synchronize examples
URL: https://github.com/apache/tomee/pull/448#discussion_r267181475
 
 

 ##########
 File path: 
examples/bval-evaluation-redeployment/WebApp2/src/main/java/org/superbiz/webapp2/service/WebApp2Service.java
 ##########
 @@ -32,7 +31,7 @@
 public class WebApp2Service {
 
     @POST
-    public Response getInfo(@Pattern(regexp = "valid") final String input) {
 
 Review comment:
   The service consumes application/json but had a regexp for validation. Since 
the param key isn't defined, the pattern causes the request to generate a 415 
unsupported media type response. This is anticipated in the test, but it isn't 
proper, and there isn't any way to refine the test. Form/query/path/entity 
validation should be a separate example in its own right.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to