Uploaded image for project: 'OpenShift Over the Air'
  1. OpenShift Over the Air
  2. OTA-1587

policy-engine: api specs should include parameters for both paths

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • OTA 279
    • None
    • None
    • None

      $ curl -s "https://api.stage.openshift.com/api/upgrades_info/openapi" | jq '.paths|keys[]'
      "/api/upgrades_info/graph"
      "/api/upgrades_info/v1/graph"
      
      $ curl -s "https://api.stage.openshift.com/api/upgrades_info/openapi" | jq '.paths."/api/upgrades_info/graph".parameters'
      [
        {
          "in": "query",
          "name": "channel",
          "required": true,
          "schema": {
            "type": "string"
          },
          "style": "form"
        }
      ]
      
      $ curl -s "https://api.stage.openshift.com/api/upgrades_info/openapi" | jq '.paths."/api/upgrades_info/v1/graph".parameters'
      null 

      This might be a result of this.

      Expected:

      The parameters for the two paths are the same.

              Unassigned Unassigned
              hongkliu Hongkai Liu
              None
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: