Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1667

Swarm swagger module does not generate swagger.json

    Details

      Description

      Using the swarm-swagger plugin in a resteasy war does not generate the swagger.json unless the io.swagger.jaxrs.listing.ApiListingResource and io.swagger.jaxrs.listing.SwaggerSerializers are included in the getClasses() method of the Application itself.

      However, in order to avoid LinkageErrors (see SWARM-1666, these classes have to be included using Class.forName() rather than referring to them directly in the java class.

      Only when this code is included in the Application class, does the swagger.json get generated correctly at http://localhost:8080/vdb-builder/v1/swagger.json.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  harsha.ramesh Harsha Ramesh
                  Reporter:
                  phantomjinx Paul Richardson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: