@Ashan Perera I was able to reproduce the issue if in case I remove the backend HTTP url (i.e. Web service URL). The issue was not reproduce with the attached openapi spec as it already has the field servers
. When I tried to edit the YAML the issue was not reproduced with your spec.
The issue should only observed in case if someone has already imported the API and removed the backend URL then you should oberve the error as "The field serviceUrl is invalid" when you edit it again and doesnot make any changes and tried to save it. As the spec was become invalid as the servers filed doesnot have any URL as you have already deleted them.
servers:
- url: 'https://apim-blacksmith-dev.azure-api.net/authapi'