You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run test (same error happens when I try to access from browser)
let query = FilterProducts{max_price:None,min_price:None,min_stars:None,product_type:None,start_time:None,day_of_week:None,pagination:Pagination{page:1,per_page:10,},location:None,};let res = server.get("/api/v1/products").add_query_params(query).await;println!("{}", res.text())
Bug Report
Version
axum v0.7.4
Platform
Linux gentoo 6.1.69-gentoo-dist #1 SMP PREEMPT_DYNAMIC Thu Jan 18 08:26:20 -04 2024 x86_64 AMD Ryzen 5 1600 Six-Core Processor AuthenticAMD GNU/Linux
Crates
axum query
Description
For some reason, when deserializing a query for a struct that has a flatten attribute field, the deserialization does not occur as expected
My query param:
When I run test (same error happens when I try to access from browser)
or
The error:
Maybe the error isn't with axum, or maybe I'm doing something wrong, I hope anyone can help me
The text was updated successfully, but these errors were encountered: