Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7347

Support Swagger UI 3

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.12, 3.2.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Swagger UI 3.0.0 was released on 18 March 2017 and brings a full rewrite of the UI from the ground up.
      In this version, they've changed the directory structure to being flat with only a couple of files left.

      This means the CSS and JS files are now located in the root of the folder and most files have been merged or removed.

      Swagger2Feature contains an internal SwaggerUIResourceFilter that checks for files in these (no longer existing) subfolders, but does not find the new location of (for example) css files.
      The pattern it uses is:

      .*[.]js|/css/.*|/images/.*|/lib/.*|.*ico|/fonts/.*
      

      This no longer works, since it doesn't allow for files (other than JS and ICO) to be in the root folder.

        Attachments

        1. swagger-ui-basepath-localhost.PNG
          16 kB
          Peter van den Broek
        2. swagger-ui-basepath-127001.PNG
          16 kB
          Peter van den Broek
        3. swagger3.png
          8 kB
          Dennis Kieselhorst

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              petervandenbroek Peter van den Broek
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: