[ 
https://issues.apache.org/jira/browse/CXF-6965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15369903#comment-15369903
 ] 

J. Fiala commented on CXF-6965:
-------------------------------

Thank you for the quick response! OK, so we have to extract all the 
swagger-jaxrs-related into a a swagger-jaxrs-issue. 

h3. cxf-tools-wadlto-jaxrs SourceGenerator does not support BeanValidation

a) BeanValidation support for request/response structures has been added in 
this extension to the cxf-wadl2java-plugin:
https://github.com/jfiala/krasa-jaxb-tools
It would be nice if this can somehow find its way into the cxf modules...

b) However, the extension above does not support the query parameters.

I added the support of @NotNull to SourceGenerator.java to start with.
However, to add @Size/@Min/@Max/@Pattern I need to read the simplytypes 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?


> CXF Swagger2Feature does not correctly support QueryParam("") and DataHandler
> -----------------------------------------------------------------------------
>
>                 Key: CXF-6965
>                 URL: https://issues.apache.org/jira/browse/CXF-6965
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>            Reporter: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.2.0, 3.1.8
>
>
> See 
> https://github.com/swagger-api/swagger-codegen/issues/2017#issuecomment-230426728



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to