scala-slack-bot-core icon indicating copy to clipboard operation
scala-slack-bot-core copied to clipboard

Possibility to customize spray-json JsonProtocol

Open lcor1979 opened this issue 8 years ago • 0 comments

Hi,

I'm using slack-scala-bot-core 0.2.1 which depends on spray-json 1..3.1. No I've added a dependency to akka-http-spray-json 10.0.3 which depends on spray-json 1.3.3.

The problem is that there is an incompatibility in the API between spray-json 1.3.1 and 1.3.3 which causes an error :

java.lang.NoSuchMethodError: spray.json.StandardFormats$class.optionFormat(Lspray/json/StandardFormats;Lspray/json/JsonFormat;)Lspray/json/StandardFormats$OptionFormat;

https://github.com/spray/spray-json/issues/158

A possible fix would be to recompile slack-scala-bot-core with spray-json 1.3.3 but that means I have to embed this version in my project.

Is there a possibility to customize or replace the Unmarshallers object used in ApiActor ?

Thank you

lcor1979 avatar Feb 02 '17 13:02 lcor1979