You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Azure API Management plugin version 1.0.9 with VS Code. When editing an API using the OpenAPI Editor, the URL scheme gets reset to "https" no matter what the previous selection was. We have traced the issue down to the following code:
It would seem that "document.schemes" was removed in OpenAPI 3.0.1 so that value will always be unset. Our understanding of OpenAPI 3 is that the schemes are now defined in the "servers" section of the spec. I believe the fix would be to update the code above to reflect that change.
STEPS TO REPRODUCE
Create an API in Azure APIM
Set the URL scheme to something OTHER THAN "https"
Open the API in VS Code
Make some change
Save the API in VS Code and upload to the server.
Check URL Scheme in APIM - it will now be set to "https"
The text was updated successfully, but these errors were encountered:
I am using Azure API Management plugin version 1.0.9 with VS Code. When editing an API using the OpenAPI Editor, the URL scheme gets reset to "https" no matter what the previous selection was. We have traced the issue down to the following code:
vscode-apimanagement/src/utils/apiUtil.ts
Line 74 in 3ef77fd
It would seem that "document.schemes" was removed in OpenAPI 3.0.1 so that value will always be unset. Our understanding of OpenAPI 3 is that the schemes are now defined in the "servers" section of the spec. I believe the fix would be to update the code above to reflect that change.
STEPS TO REPRODUCE
The text was updated successfully, but these errors were encountered: