Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic parameters not available when method specific parameters are used. #15

Open
reijmer opened this issue Nov 30, 2020 · 0 comments

Comments

@reijmer
Copy link

reijmer commented Nov 30, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant