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

Swagger missing basepath but it dependes

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Done
    • Affects Version/s: 2018.2.0
    • Fix Version/s: 2018.3.3
    • Component/s: None
    • Labels:
      None

      Description

      If you NOT specify a swarm.deployment.*.swagger.root varibel the root(basepath) is collected from deployment.

      SwaggerArchivePreparer.java
      if (!swaggerArchive.hasContextRoot()) {
             swaggerArchive.setContextRoot(deployment.getContextRoot());
      }
      

      But deployment is depending that ContextPathArchivePreparer has run before SwaggerArchivePreparer so depending on the order of whats run first there is a basepath in swagger.json

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                johnAls John Alstrom
                Reporter:
                johnAls John Alstrom
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: