Currently the wadl2java SourceGenerator (cxf-tools-wadlto-jaxrs) does not support BeanValidation for query parameters

I added the support of @NotNull to SourceGenerator.java to start with (see https://github.com/apache/cxf/pull/146, SourceGenerator.java).

However, to add @Size/@Min/@Max/@Pattern I need to read the simpletypes and their restrictions.

Currently there seems to be no efficient way already implemented in cxf-tools-wadlto-jaxrs, it only deals with the "type" as string-value, but not with the org.w3c.dom.Element backing it. Do you have this somewhere else in the codebase?

Does it make sense to scan my own Map of org.w3c.dom.Elements of simpleTypes to resolve their restrictions?

Best regards,
Johannes

Reply via email to