Any good existing integrations between arrow-kt and spring boot?

Ideally I want to be able to return an Either from a Spring Controller and have it automatically unwrap it and either handle the exception (via the normal global exception handler path) or return the response. I’ve looked at the Arrow Jackson serializer, but I don’t like how it pollutes the output with right/left (I also don’t like how it serializes exceptions). I’m wondering if there are any good options for this?

I’ve looked at the Spring source code because I know they support Java’s Vavr library, which is similar in concept to Arrow-KT. Unfortunately it looks like Spring hardcoded some explicit workarounds to support Vavr. I was hoping for maybe a plugin-style approach.

I’m considering building such a plugin myself if none exists, then again I always have crazy creative ideas that I get too lazy to implement lol. If anyone has any advice, I’m open to it.

submitted by /u/Droid2Win
[link] [comments]