Fork me on GitHub
#reitit
<
2019-04-18
>
roklenarcic14:04:40

Hm is there something special to do to use body parameters in coercion?

roklenarcic14:04:19

in the ring map I get :body key has a correct map in it, but :parameters -> :body is nil

roklenarcic14:04:41

:parameters -> :path works for instance

roklenarcic14:04:52

:parameters {:path {:id ::spec/id}
                :body ::body #_::spec/transaction}

ikitommi17:04:59

@roklenarcic you need to use some content-formatter, which reads the body stream and writes params into :body-params. Muuntaja is one of such libs and it's prepackaged in middleware & interceptor modules. Examples have that confogured