[
https://issues.apache.org/jira/browse/CXF-5401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13827688#comment-13827688
]
Andriy Redko commented on CXF-5401:
-----------------------------------
Hi Sergey,
Thanks a lot. With respect to in/out validation conflict, I run into the same
conclusion as you did: JAXRSInInterceptor#handleFault does convert exception
to response and since then it's being lost. I would go with your solution as it
tracks the fault origin (even being a hack). With respect to single-argument
validateResponseValue, I would still have concerns coming out of 1.1 spec:
validation provider might raise a violation if object (instance) <-> method
doesn't match (we may rely on Hibernate Validator implementation as well in
this case). Anyway, leaving decision to you.
Open for conversation! :) Thanks.
Andriy
> Better support for validating the entities wrapped in JAX-RS Response
> ---------------------------------------------------------------------
>
> Key: CXF-5401
> URL: https://issues.apache.org/jira/browse/CXF-5401
> Project: CXF
> Issue Type: Improvement
> Reporter: Sergey Beryozkin
> Assignee: Sergey Beryozkin
> Fix For: 3.0.0-milestone1
>
> Attachments: patch-response-validation.txt
>
>
> At the moment Response entities can only be validated against the rules
> attached to the entity properties. Method-level constraints (ex, NotNull) can
> not be applied yet.
> We need to either offer a support for few well-known constraints (NotNull,
> Null, etc) or come up with some generic code to get all the available
> constraints validated
--
This message was sent by Atlassian JIRA
(v6.1#6144)