Open Abrar-Ahmed7 opened 10 months ago
Looks like your like swagger.json is EDN instead of JSON. Maybe you're missing some content-negotiation or format middleware? I'm not familiar with pedestal so I can't help with that, but perhaps the pedestal-malli-swagger example will help you.
After adding this middleware
(io.pedestal.http.ring-middlewares/content-type {:mime-types {}})
along withto my
::http/interceptors
of myservice-map
which is being used to create and start the server, the server is starting fine but the Swagger UI in the frontend is flashing an error like,And the response to the swagger endpoint
/swagger.json
returns,What would be the issue here? Can I overcome this in my code base itself? Additional info:
(io.pedestal.http.ring-middlewares/content-type {:mime-types {}})
everything working fine.