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
My server is returning swagger.json with a Content-Type: text/plain header, which seems to confuse martian. It fails to register any endpoints, silently.
Not sure if this is something you want to fix or expected behavior, but I would suggest adding a warning, if possible.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. Yes, you're right - the :as :json doesn't seem to be an option in cljs-http, instead it's just looking for the application/json content type.
I think a warning could be ok but I would prefer it to be something that could be checked. I would like to have a spec for the Martian instance which could allow validation at creation time and then the developer could decide what to do.
I'll have a think about this, it's probably unlikely to happen soon though. PRs welcome :)
My server is returning
swagger.json
with aContent-Type: text/plain
header, which seems to confuse martian. It fails to register any endpoints, silently.Not sure if this is something you want to fix or expected behavior, but I would suggest adding a warning, if possible.
The text was updated successfully, but these errors were encountered: