Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-2001

ActiveDocs Liquid tag breaks when SERVICE_NAME is changed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • SaaS
    • System
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • UXD
    • Hide

      Create a new ActiveDocs.
      Modify the default Documentation page in Dev Portal
      Add

      {% active_docs version: "2.0" services: "SERVICE_NAME" %}

      Publish
      Change the SERVICE_NAME to another ActiveDocs spec
      Publish
      The previous ActiveDocs will still be displayed

      Show
      Create a new ActiveDocs. Modify the default Documentation page in Dev Portal Add {% active_docs version: "2.0" services: "SERVICE_NAME" %} Publish Change the SERVICE_NAME to another ActiveDocs spec Publish The previous ActiveDocs will still be displayed

      When the SERVICE_NAME is changed in

      {% active_docs version: "2.0" services: "SERVICE_NAME" %}

      after once being published, the change is not being picked up.
      As a workaround the window.swaggerUi.options['url'] can be used if changing SERVICE_NAME, but then the active_docs tag needs to be removed.

      Also the documentation doesn't mention the following lines, nor that the following lines must be below the active_docs tag, or else the Swagger spec won't be rendered:

      {% cdn_asset /swagger-ui/2.2.10/swagger-ui.js %} {% cdn_asset /swagger-ui/2.2.10/swagger-ui.css %} {% include 'shared/swagger_ui' %}

              Unassigned Unassigned
              tdahlen@redhat.com Torbjörn Dahlén
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: