swagger-api / validator-badge

Validate your Swagger JSON/YAML today!
http://swagger.io
Apache License 2.0
210 stars 85 forks source link

Seeing parsing errors in Swagger UI but not seeing with generated json #197

Open RaviTejaMaddhini opened 2 years ago

RaviTejaMaddhini commented 2 years ago

Hi there,

We are trying to migrate from spring fox to spring doc as the former is no longer compatible with the latest spring boot version ( 2.6.x) and spring doc internally used open API specification ( 3.0.1). So I thought this might be the correct forum to raise the issue.

We have made all the migration changes and everything is working perfectly in my local but when we try to deploy to one of our ec2 instances we are facing the below issue. The swagger validator badge is invalid.

image

And on clicking the Invalid Json symbol we are getting the below error message,

image

I have fetched my swagger JSON file ( from the v3/api-docs) and checked in swagger editor it is not having any parsing errors, it just has a couple of semantic errors ( delete method expecting a request body ) can anyone point me to the reason we are getting it or tell me how to get more details on the issue?