You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to my ::http/interceptors of my service-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,
Parser error on line 2
unexpected end of the stream within a flow collection
And the response to the swagger endpoint/swagger.json returns,
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.The text was updated successfully, but these errors were encountered: