cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <>
Subject [jira] [Commented] (CXF-5401) Better support for validating the entities wrapped in JAX-RS Response
Date Wed, 20 Nov 2013 14:31:38 GMT


Sergey Beryozkin commented on CXF-5401:


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

Single-argument validateResponseValue will use a non-executors base Validator to validate
the value as a bean, so I think we are safe here; keeping this option (not utilized by default)
will let user to avoid issues when future Hibernate or ApacheBVal will enforce the type-safety
of the return value, we may still end up defaulting to a single-argument validateResponseValue
in the end :-) or find some other solution

Cheers, Sergey

> Better support for validating the entities wrapped in JAX-RS Response
> ---------------------------------------------------------------------
>                 Key: CXF-5401
>                 URL:
>             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

View raw message