rapiclient icon indicating copy to clipboard operation
rapiclient copied to clipboard

Generic parameters not available when method specific parameters are used.

Open reijmer opened this issue 4 years ago • 0 comments

Hi,

I have discovered a bug where when both method specific parameters as well as parameters for the entire path exists, only the method specific ones are generated in the function.

Example reproduce:

"/repositories/{repository}/branches/{branch}/objects": {
      "post": {
        "consumes": [
          "multipart/form-data"
        ],
        "tags": [
          "objects"
        ],
        "summary": "upload object content",
        "operationId": "uploadObject",
        "parameters": [
          {
            "type": "file",
            "description": "Object content to upload",
            "name": "content",
            "in": "formData"
          },
          {
            "type": "string",
            "name": "storageClass",
            "in": "query"
          }
        ],
        ...
        }
      },

      "parameters": [
        {
          "type": "string",
          "name": "repository",
          "in": "path",
          "required": true
        },
        {
          "type": "string",
          "name": "branch",
          "in": "path",
          "required": true
        },
        {
          "type": "string",
          "name": "path",
          "in": "query",
          "required": true
        }
      ]
    },

I might try to fix it and submit a pull request at some point if time allows.

reijmer avatar Nov 30 '20 11:11 reijmer