We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to use the following with the Query extractor:
Query
#[derive(Debug, Deserialize)] pub struct Info { pub(crate) endpoint: Option<String>, #[serde(flatten)] pub(crate) timing: Timing, } #[derive(Debug, Deserialize)] pub struct Timing { pub(crate) total: f64, pub(crate) active: f64, }
Trying this with a URL containing numbers (e.g. /route?total=1.1&active=2.2&endpoint=bla) returns an error "invalid type: string "1.1" expected f64).
/route?total=1.1&active=2.2&endpoint=bla
Without flattening it seems to work correctly though...
The text was updated successfully, but these errors were encountered:
You can try to use serde_urlencoded directly to parse your string, I suspect it is a problem there
serde_urlencoded
Sorry, something went wrong.
@DoumanAsh will try. Thanks!
Seems to already be a known issue: nox/serde_urlencoded#33
No branches or pull requests
Trying to use the following with the
Query
extractor:Trying this with a URL containing numbers (e.g.
/route?total=1.1&active=2.2&endpoint=bla
) returns an error "invalid type: string "1.1" expected f64).Without flattening it seems to work correctly though...
The text was updated successfully, but these errors were encountered: