Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.42k
stars
225
forks
source link
Loading swagger.json from url parsing error. Misinterpreting as YAML? #345
I'm trying to load the openapi spec from an url, but a parse error occurs, and if I download the spec and require the json, everything works normally.
An error appears in the console about parse of yaml, and the file is a json, the api returns the mime type as normal json and everything.