Hey. I have a very "stupid" problem, sorry :sweat_...
# arrow
e
Hey. I have a very "stupid" problem, sorry 😅 So I'm using Arrow with spring boot, and I'm having problems with deserializing Options and Eithers (haven't tested other data types). It seems to be converting the inner state into JSON instead of the "value". I feel like I'm doing something incredibly stupid here. Any hints? I've put more details here with a minimal working example https://github.com/arrow-kt/arrow-integrations/issues/105
s
I wonder if you just need this Jackson module? https://github.com/arrow-kt/arrow-integrations#jackson-module
e
I'm using it (I register the Arrow module in the example on the issue)
s
Ah, gotcha, I did not spot that 👍
s
typically I use nullable types instead of Option in my DTOs.... also, typically I never have
Either
in my DTOs.... converting from domain type to DTO is always valid, so no need for
Either
converting from DTO to domain object can fail, but in that case I get
Either<SomeError, DomainObject>
, so Either is on the outside
e
That's a good observation, thank you! I went with a marked interface for the DTO and converted between the Either to that new DTO. For the sake of this thread, the issue is fixed in the new release.