[jboss-jira] [JBoss JIRA] (WFLY-10255) Swagger Integration does not honor JAXB @XmlTransient annotation (and possibly more)

Brian Stansberry (Jira) issues at jboss.org
Sun Mar 17 16:16:00 EDT 2019


    [ https://issues.jboss.org/browse/WFLY-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13709350#comment-13709350 ] 

Brian Stansberry commented on WFLY-10255:
-----------------------------------------

I'm not clear on how this is a WIldFly issue. AFAIK we don't do anything related to Swagger.

> Swagger Integration does not honor JAXB @XmlTransient annotation (and possibly more)
> ------------------------------------------------------------------------------------
>
>                 Key: WFLY-10255
>                 URL: https://issues.jboss.org/browse/WFLY-10255
>             Project: WildFly
>          Issue Type: Bug
>          Components: JAXR
>    Affects Versions: 12.0.0.Final
>            Reporter: Jonathan Fisher
>            Assignee: Kurt Stam
>            Priority: Major
>
> Swagger does not honor JAXB annotations. If you mark a field on an Object as @XmlTransient, it will not be rendered in the XML or JSON output to the client. However, if will still be shown in the swagger.json. If you annotate the field with @JsonIgnore (jackson annotation), it will be omitted from the swagger.json as expected.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list