[ 
https://issues.apache.org/jira/browse/SCB-873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16596974#comment-16596974
 ] 

ASF GitHub Bot commented on SCB-873:
------------------------------------

liubao68 commented on a change in pull request #884: [SCB-873] Make the 
validation result display the parameter name instead of arg0, arg1
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/884#discussion_r213881804
 
 

 ##########
 File path: 
demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/validation/ValidationServiceClient.java
 ##########
 @@ -52,7 +52,7 @@ private static void testValidation() {
       template.postForObject(urlPrefix + "/validate", model, 
ValidationModel.class);
       TestMgr.check(false, true);
     } catch (InvocationException e) {
-      TestMgr.check(e.getErrorData().toString().contains("age"), true);
+      
TestMgr.check(e.getErrorData().toString().contains("propertyPath=errorCode.request.age"),
 true);
 
 Review comment:
   It's better to add error code check.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


> Make the validation result display the parameter name instead of arg0, arg1
> ---------------------------------------------------------------------------
>
>                 Key: SCB-873
>                 URL: https://issues.apache.org/jira/browse/SCB-873
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>          Components: Java-Chassis
>    Affects Versions: java-chassis-1.0.0
>            Reporter: WeiChao
>            Assignee: WeiChao
>            Priority: Major
>             Fix For: java-chassis-1.1.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to