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
Currently, the DecodeFailureHandler requires the handling function to be pure. This makes principled logging of bad requests (wrapped in some effect type) impossible or at least ugly (unsafeRunSync and similar).
To fix this, the DecodeFailureHandling could be extended with one more case to allow responding with a response wrapped in an effect. Alternatively, DecoderFailureHandler could be changed to DecodeFailureContext => F[DecodeFailureHandling] for some type param F[_].
The text was updated successfully, but these errors were encountered:
From https://gitter.im/softwaremill/tapir?at=5ea043bedc6ae2132b427277
Currently, the
DecodeFailureHandler
requires the handling function to be pure. This makes principled logging of bad requests (wrapped in some effect type) impossible or at least ugly (unsafeRunSync
and similar).To fix this, the
DecodeFailureHandling
could be extended with one more case to allow responding with a response wrapped in an effect. Alternatively,DecoderFailureHandler
could be changed toDecodeFailureContext => F[DecodeFailureHandling]
for some type paramF[_]
.The text was updated successfully, but these errors were encountered: