cannot Unmarshal from String
strowk opened this issue · 2 comments
strowk commented
I need to unmarshal not only from ResponseEntity using ErrorAccumulatingCirceSupport, but also from String. Is it possible with the same Unmarshal or do I have to use circe directly? Right now it says that there is no implicit from String to my class, I was expecting ErrorAccumulatingCirceSupport to provide such an implicit.
hseeberger commented
Look at the implicit unmarshallers defined in CirceSupport
. As there is one from ByteString => A
, I think if you provide an implicit Unmarshaller[String, ByteString]
, it should work. But I am not sure if they compose that way.
strowk commented
I ended up using circe directly, seems easier this way. Thanks anyway!