You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by slavb18 <gi...@git.apache.org> on 2016/09/15 11:32:52 UTC

[GitHub] cxf pull request #170: Include details of validation exceptions in response ...

GitHub user slavb18 opened a pull request:

    https://github.com/apache/cxf/pull/170

    Include details of validation exceptions in response in ValidationExceptionMapper

    This PR contains of
    1) addMessageToResponse flag to include validation errors in response
    2) messageTemplate to set custom message format

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/slavb18/cxf master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cxf/pull/170.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #170
    
----
commit a802bcb34254382d94b392b27550e1565c62582e
Author: slavb18 <sl...@gmail.com>
Date:   2016-09-15T11:25:48Z

    include details of validation exceptions in response

commit 2626702906e1bd761c0c6d92b985a90d12f8a2f7
Author: slavb18 <sl...@gmail.com>
Date:   2016-09-15T11:29:39Z

    add javadoc on setMessageTemplate method

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cxf issue #170: Include details of validation exceptions in response in Vali...

Posted by sberyozkin <gi...@git.apache.org>.
Github user sberyozkin commented on the issue:

    https://github.com/apache/cxf/pull/170
  
    Unfortunately we can not introduce Spring dependencies into this code. The simplest option to customize is to register a custom ValidationExceptionMapper 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cxf issue #170: Include details of validation exceptions in response in Vali...

Posted by sberyozkin <gi...@git.apache.org>.
Github user sberyozkin commented on the issue:

    https://github.com/apache/cxf/pull/170
  
    I've applied the patch with the minor modifications, thanks. I've only made StringBuilder instantiation optional, and kept the original message format. I'm open though to add 'Value of' - how does the message would read with it ? I hesitated because a constraint violation has a method like .getInvalidValue()


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cxf issue #170: Include details of validation exceptions in response in Vali...

Posted by slavb18 <gi...@git.apache.org>.
Github user slavb18 commented on the issue:

    https://github.com/apache/cxf/pull/170
  
    ok, thanks


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cxf issue #170: Include details of validation exceptions in response in Vali...

Posted by slavb18 <gi...@git.apache.org>.
Github user slavb18 commented on the issue:

    https://github.com/apache/cxf/pull/170
  
    and how about addMessageToResponse?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] cxf pull request #170: Include details of validation exceptions in response ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cxf/pull/170


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---