Swagger-ui.html shows a error at the bottom of the page due to validation
`{"schemaValidationMessages":[{"level":"error","message":"Can't read from file https://www.example.com/v2/api-docs"}]}`
I did some research on it and came to know that we need to turn off the validations to remove the error. but how to turn it off from spring boot application.? or is there any way to edit the swagger-ui.html in a spring boot app ?
Since Swagger 2.8.0 many constructors have been deprecated. I think it's better to use the corresponding builder which takes care of all the undefined parameters for us like this:
See also this post regarding null or empty string validator
I solved it by disabling the validation by adding the following code