Hi

I'm not sure I'm understanding why is it needed.

If we have a WADL-first approach which is where wadl-to-java becomes useful, one can properly design XML schema (have all the restrictions specified as needed). Then import this schema as a WADL grammar to generate the JAXB beans and then use the same schema to enforce the JAXB-level schema validation which will work on the client and on the server sides.

FYI, you can configure CXF JAXBElementProvider with XML schema references.

Cheers, Sergey

On 23/08/16 18:03, J. Fiala wrote:
Hi,

CXF supports bean validation, however wadl2java doesn't support any bean
validation annotations yet (see
https://github.com/krasa/krasa-jaxb-tools for the implementation for
complex parameters).

As it is not allowed to add @Valid to the method signatures of the
implementation classes, the @Valid annotation needs to be added to the
interface (which is generated using wadl2java).

Are there any plans to add @Valid-support to wadl2java (for methods +
complex parameters)?

Best regards,
Johannes



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Reply via email to