microsoft / vscode-apimanagement

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

VSCode does not support creating new api by importing openapi v 3.0.1 #252

Open oalmaany opened 2 years ago

oalmaany commented 2 years ago

Does this occur consistently? Repro steps:

1.Right Click on Open API Management Instance.

  1. Select Import from Open API Link.
  2. Enter Link for openapi with Version 3.0.1
  3. you will get the following error "Error: Cannot read properties of undefined (reading 'length')"
  4. I downgraded the openapi ver from Ver 3.0.1 to 2
  5. Now repeat the steps and Enter same link but for Version 2.0 the api will be imported successfully.

Action: azureApiManagement.importOpenApiByLink Error type: Error Error Message: Cannot read properties of undefined (reading 'length')

Version: 1.0.5 OS: win32 OS Release: 10.0.19044 Product: Visual Studio Code Product Version: 1.69.0 Language: en

Call Stack ``` extension.bundle.js:611:9508extension.bundle.js:611:9508 rejected extension.bundle.js:611:7681 ```
oalmaany commented 2 years ago

Note My OS is 64 bit not 32