These are chat archives for hseeberger/akka-http-json

6th
Mar 2017
when I extend Json4sSupport in my class that handles my routing any Multipart.FormData fails to unmarshall (since it tries to treat it as Json instead of using the built in unmarshaller). I get around this currently by explicitly passing in an unmarshaller to override the implicit. Is there a more elegant solution?
  def multipart_form_unmarshaller = Unmarshaller.messageUnmarshallerFromEntityUnmarshaller(MultipartUnmarshallers.multipartFormDataUnmarshaller())
...
  entity(as[Multipart.FormData](multipart_form_unmarshaller)) { (formdata: Multipart.FormData) =>