On 29/08/16 10:46, Vjacheslav V. Borisov wrote:
2016-08-27 18:58 GMT+04:00 J. Fiala <[email protected]>:
Sergey,
OK, so there is no option to get query parameter validation for wadl2java
generated java sources in the near future?
So if query parameter validation is desired, one has to switch to Swagger
as contract and generate the BeanValidation-annotations using
Swagger-Codegen or use code first, right?
We extensively develop microserices, an rarely need compex query
parameters, this is almost Date or UUID ones in query string
All other data transfered in xml/json payload (which validation is possible)
Thanks, yes, this is similar to what I was planning to reply with.
In the vast majority of cases query/header/cookie parameters are simple
properties. Doing the complex mapping from WADL grammar to individual
Bean validation properties only for the sake of enforcing some digital
or string pattern in such (query) properties and then also making sure
it works the other way around (WADL grammar is auto-enhanced based on
the avail BeanVal annotations during WADL generatiopn) is not worth it
IMHO, especially that it will also overloads WADL grammar.
Cheers, Sergey