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
Having this problem as well, I get consumes : application/*, which is what the swagger js client sends to http4s and so gets rejected with unprocessable entity since it expects application/json...
The culprit is :
implicit val http4sShowForMediaRange: Show[MediaRange] =
Show.show(s => s"${s.mainType}/*${MediaRange.extensionsToString(s)}")
(I'm filing this per discussion with @zarthross on Gitter.)
How to reproduce
Once this is running, I did a
and got:
I'd have expected to see also "application/json" in the "produces" array.
Note
The actual routes work correctly:
The text was updated successfully, but these errors were encountered: