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

Toolbox doesn't support relative server URLs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • None
    • Toolbox
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Hide

      Try to import the petstore example:

       

      3scale import openapi -d <remote> --backend https://petstore3.swagger.io/api/v3/openapi.json

       

      Show
      Try to import the petstore example:   3scale import openapi -d <remote> --backend https: //petstore3.swagger.io/api/v3/openapi.json  

    Description

      The OAS spec allows for the servers url property to be relative (to the url serving the json).

       

      The 3scale toolbox does not support this because it throws an error here due to the URL being "invalid".

       

      An example of this can be found in the petstore example:

       {
          "openapi": "3.0.2",
          ...
          "servers": [
              {
                  "url": "/api/v3"
              }
          ],
          ...
      }

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-spoole Shannon Poole
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: