microsoft / vscode-apimanagement

VS Code extension for Azure API Management.
MIT License
60 stars 40 forks source link

Parameter defined as Querystring parameter made into template parameter #178

Closed mikaelsand closed 3 years ago

mikaelsand commented 3 years ago

When I define a parameter in the open API as a querystring parameter is gets made into a template parameter. This is not a good behavior as a template parameter cannot be validated for existence with anything but a generic 404.

Here is the openAPI definition:

"parameters": [
                    {
                        "name": "contactid",
                        "in": "query",
                        "description": "The contact id",
                        "required": true,
                        "type": "string"
                    }
]

Here is the result in the portal: image

miaojiang commented 3 years ago

Thank you for the feedback. This is the current designed behavior when you import an OpenAPI into API Management (regardless of using VSCode, Azure CLI etc). The current workaround is to use the Azure Portal to edit the parameter after importing.

Closing the item for now since it's not necessarily related to the extension, I have recorded the feedback in our internal tool.