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
Version 0.3.2
Platform MacOS
Description I have query body defined as
#[derive(Deserialize, Serialize)] #[serde(untagged)] pub enum MyQuery { TypeA { foo_id: Uuid, bar_id: Uuid, buzz_id_maybe: Option<Uuid>, limit: i64, }, TypeB { buzz_id: Uuid, foo_id_maybe: Option<Uuid>, limit: i64, }, }
I sent request with query string
foo_id=FOO-UUID&bar_id=BAR-UUID&limit=10
or
foo_id=FOO-UUID&bar_id=BAR-UUID&buzz_id_maybe=BUZZ-UUID&limit=10
both return 400
failed to decode query string, Error("data did not match any variant of untagged enum MyQuery")
but both should match TypeA of MyQuery, any suggestion ?
The text was updated successfully, but these errors were encountered:
Looking into thread serde-rs/serde#1183 (comment) found solution https://docs.rs/serde_with/latest/serde_with/struct.DisplayFromStr.html
Sorry, something went wrong.
duplicate to nox/serde_urlencoded#66
No branches or pull requests
Version
0.3.2
Platform
MacOS
Description
I have query body defined as
I sent request with query string
or
both return 400
but both should match TypeA of MyQuery, any suggestion ?
The text was updated successfully, but these errors were encountered: