Feature Request: Allow web::JsonBody<T> || web::Json<T> from request #2763
Answered
by
robjtede
borngraced
asked this question in
Q&A
-
Your issue may already be reported! Expected BehaviorHi team, thank you for your extraordinaire work in the actix echo system!. There's a featured I really needed to use while building an API route in actix but it seems to be in nonexistence yet. I would like to be able to pass Will this be possible or perhaps it's already in existence ...? Current Behaviorreturns the trait bound `JsonBody<_>: FromRequest` is not satisfied
required because of the requirements on the impl of `FromRequest` for `(Data<tokio_postgres::Client>, HttpRequest, JsonBody<_>) |
Beta Was this translation helpful? Give feedback.
Answered by
robjtede
May 23, 2022
Replies: 1 comment 1 reply
-
Try |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
borngraced
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try
form: web::Json<serde_json::Value>