title: SwaggerUI passing parameters
body: <p>I have a swagger.json defined like this:</p>
  
  <pre><code>"/API/GetTieredInventory": {
          "post": {
              "summary": "Get Tiered inventory from ID",
              "description": "Gets Tiered inventory for passed ID/IC combination",
              "produces": [
                  "application/json"
              ],
              "parameters": [
                  {
                      "name": "id",
                      "in": "path",
                      "description": "ID to retrieve Tiered inventory for",
                      "required": true,
                      "type": "string"
                  },
                  {
                      "name": "ic",
                      "in": "path",
                      "description": "IC to retrieve Tiered inventory for",
                      "required": true,
                      "type": "string"
                  }
              ],
              "responses": {
                  "200": {
                      "description": "successful operation"
                  },
                  "500": {
                      "description": "Internal error"
                  }
              }
          }
      }
  },
  </code></pre>
  
  <p>Now, my API takes the parameters like this:</p>
  
  <pre><code>private function GetTieredInventory() {
      if($this-&gt;get_request_method() != "POST"){
          $this-&gt;response('Error code 405, Method not allowed.',405);
      }
      if(is_array($this-&gt;_request['ic'])) {
          $v = array();       
          foreach($this-&gt;_request['ic'] as $i) {
              $v[] = "'".$i."'";
          }
          $ic=html_entity_decode(implode(',', $v ));
      } else {
          $ic = "'".$this-&gt;_request['ic']."'";
      }
      $id=pg_escape_string($this-&gt;_request['id']);
  
      &lt;SNIP DB CODE&gt;
  
      try 
      {       
          $results = pg_query($sql);
          if(pg_num_rows($results) == 0) {
              $rows = [];
          }
          else
          {
              $data = pg_fetch_all($results);
              foreach($data as $item)
              {                    
                  $rows[$item["ic"]][] = $item;
              }
          }
          pg_free_result($results);
      }
      catch (Exception $e) 
      {
          $err = array("message"=&gt;$e-&gt;getMessage(), "code"=&gt; $e-&gt;getCode(), "error"=&gt;$e-&gt;__toString().",\n".print_r($_REQUEST, true));
          $this-&gt;response($this-&gt;toJSON($err),500);
      }
      echo json_encode($rows);
  }
  </code></pre>
  
  <p>It doesn't matter what the <code>in</code> value is, I still get a<br>
  <code>Notice: Undefined index: ic</code> and
  <code>Notice: Undefined index: id</code> error 
  returned.</p>
  
  <p>I have tried all three of these for both parameters:</p>
  
  <pre><code>"in": "path",
  "in": "query",
  "in": "body",
  </code></pre>
  
  <p>This is how the api is called in my service:</p>
  
  <pre><code>$fields = array(
      'id' =&gt; $this-&gt;compId,
      'ic'    =&gt; $ic
  ); 
  $fields_string = http_build_query($fields);
  
  $url = "/API/GetTieredInventory";
  $ch = curl_init();
  curl_setopt($ch,CURLOPT_URL, $url);
  curl_setopt($ch,CURLOPT_POST, count($fields));
  curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $response = curl_exec($ch);
  </code></pre>
  
  <p><strong>changed the parameters definition like this because <code>ic</code> can be an array of values:</strong></p>
  
  <pre><code>"parameters": [
      {
          "name": "id",
          "in": "body",
          "description": "ID to retrieve Tiered inventory for",
          "required": true,
          "type": "string"
      },
      {
          "name": "ic",
          "in": "body",
          "schema": {
              "type": "array",
              "items": {
                  "type": "string",
                  "style": "form"
              }
          },
          "description": "Interchange to retrieve Tiered inventory for",
          "required": true
      }
  ],
  </code></pre>
  
  <p>But still same errors...:-(</p>