Julien Richard-Foy

Results 388 comments of Julien Richard-Foy

This need is not addressed by endpoints4s currently. It could be implemented in endpoints4s or outside of endpoints4s.

Could you please elaborate on the type of errors you would like to handle? `handleServerError` is called by endpoints4s when _an exception occurs during the request processing_. To handle validation...

I wonder if this is a bug in the http4s-server interpreter. The logic for decoding a JSON body is here: https://github.com/endpoints4s/endpoints4s/blob/1b9ef64e66a7304cf7f337969b8deefd182d7788/http4s/server/src/main/scala/endpoints4s/http4s/server/JsonEntities.scala#L77-L88 I am not familiar with http4s myself but the...

Thank you for providing those details! I’ve investigated a bit and noticed a difference between Blaze and Ember. Blaze returns a 4xx error response in case of media type mismatch,...

Hey @omerlh. I’ve worked on a modification of the http4s-server interpreter in #1184 that would catch any failure wrapped in the underlying `IO[Response]` and let `handleServerError` handle it. I guess...

Thank you for the quick PR! You will also have to reset the compatibility intention to `Compatibility.None`: https://github.com/julienrf/play-json-derived-codecs/blob/214b5a19a61ae2ba9a50c76dd093f014ec961709/build.sbt#L10 And it seems we need to update our Scala.js dependency as well...

Hello! Thank you for your interest. Can someone fix the CI failure according to the explanation at https://github.com/julienrf/play-json-derived-codecs/pull/92#issuecomment-1803870815?

It is already possible to support Scala 3 by manually re-implementing the “automatic derivation” part with a macro. It might be possible to use Shapeless 3 to ease that work....

Thank you for your help, this has been superseded by #95

I think we should cut a new release where we update the dependency to `play-json` 3.x. Would you be interested in submitting a PR for that?