Describe the bug
When a swagger file (apiDefinition.swagger.json) contains invalid $ref values, they should be reported as errors by the paconn validate command.
To Reproduce
cd into the following folder: certified-connectors\Pushcut
The last command reports a service error response like:
{
"error": {
"code": "InternalServerError",
"message": "Encountered internal server error. The tracking Id is '61e92b1e-25b0-474d-8aa2-5be81dc9ea7f'."
}
}
500 Server Error: Internal Server Error for url: https://api.powerapps.com/providers/Microsoft.PowerApps/objectIds/adce0039-9545-4253-ae21-0cb17e131cd8/validateApiSwagger?api-version=2016-11-01&enableConnectorCertificationRules=true
Expected behavior
Invalid $ref values should result in this command reporting them as errors.
Preferably, reporting multiple ref errors if the file contains them.
Describe the bug When a swagger file (apiDefinition.swagger.json) contains invalid $ref values, they should be reported as errors by the
paconn validate
command.To Reproduce
certified-connectors\Pushcut
paconn validate -d apiDefinition.swagger.json
apiDefinition.swagger.json
"$ref": "#/definitions/NotificationZZZZ"
paconn validate -d apiDefinition.swagger.json
The last command reports a service error response like:
Expected behavior Invalid $ref values should result in this command reporting them as errors. Preferably, reporting multiple ref errors if the file contains them.