Closed loriepisicchio closed 3 years ago
I think the main issue is that the page is not loading properly. The application shouldn't break
I'm not convinced that we should display an error on the documentation output but we could provide an option to the documentation writer like this :
{
"openApi" :
{
"openApiUrl": "https://thegardener.kelkoogroup.com/api/docs/swagger.json",
"openApiType": "model",
"ref": "#/definitions/Project",
"deep": 1,
"errorMessage" : "The service in unstable, the model is not available for the moment"
}
}
"errorMessage" would be optional and displayed if the resource is not reachable. If not provided, no message displayed
In long term, I'm more in favour to register the error in the database and give an access to it though an API but it's bigger story.
@loriepisicchio what do you think ?
Acutal behavior When including a piece of OpenAPI in a page, when the OpenAPI URL is not responding, then the page doesn't load and we get the following issue on the server
Expected behavior Page should load and an error should be displayed instead of the OpenAPI information