akka/akka-http

formField fails if custom unmarshaller is in scope

Open

#541 opened on Nov 17, 2016

View on GitHub
 (7 comments) (4 reactions) (0 assignees)Scala (598 forks)batch import
1 - triagedhelp wantedt:docs

Repository metrics

Stars
 (1,311 stars)
PR merge metrics
 (Avg merge 1d 10h) (2 merged PRs in 30d)

Description

formField directive fails if there is too generic unmarshaller in scope, that prevents FieldMagnet machinery to work. It can happen quite a lot - for example when using akka-http-json4s or other generic unmarshaller.

Reproducer https://github.com/marekzebrowski/akka-http-form-field-bug

If it is not solvable, maybe a word of warning in documentation, or a guide how to write own unmarshaller would be helpful

Contributor guide