Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-10255

Swagger Integration does not honor JAXB @XmlTransient annotation (and possibly more)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 12.0.0.Final
    • None
    • Hide

      Annotate your fields you want hidden with both @XmlTransient and @JsonIgnore

      Show
      Annotate your fields you want hidden with both @XmlTransient and @JsonIgnore

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            exabrial-1 Jonathan Fisher (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: