axum/axum-extra/src
Vegard Sandengen 59a2960e42
Add ErrorKind::DeserializeError to specialize ErrorKind::Message (extract::path::ErrorKind) (#2720)
This commit introduces another `extract::path::ErrorKind` variant that captures the
serde error nominally captured through the `serde:🇩🇪:Error` trait impl on `PathDeserializeError`.
We augment the deserialization error with the captured (key, value), allowing `extract::Path`, and wrapping
extractors, to gain programmatic access to the key name, and attempted deserialized value.

The `PathDeserializationError::custom` is used two places in addition to capture the deserialization error.
These usages should still be unaffected.

Co-authored-by: David Mládek <david.mladek.cz@gmail.com>
2024-11-11 16:56:25 +00:00
..
body Update to latest versions of hyper and http-body (#1882) 2023-11-23 11:03:03 +00:00
extract Add ErrorKind::DeserializeError to specialize ErrorKind::Message (extract::path::ErrorKind) (#2720) 2024-11-11 16:56:25 +00:00
handler chore: Upgrade matchit to 0.8 (#2645) 2024-10-03 15:46:58 +00:00
response Add axum_extra::json! (#2962) 2024-10-06 19:01:10 +00:00
routing Fix TSR redirecting to top-level inside nested Router (#2993) 2024-10-17 16:43:14 +02:00
either.rs Replace async_trait with AFIT / RPITIT (#2308) 2024-09-28 21:27:11 +00:00
json_lines.rs Replace async_trait with AFIT / RPITIT (#2308) 2024-09-28 21:27:11 +00:00
lib.rs Resolve clippies (#2843) 2024-07-24 00:07:25 +02:00
middleware.rs Add option_layer (#1696) 2023-02-11 23:11:21 +00:00
protobuf.rs chore: Upgrade matchit to 0.8 (#2645) 2024-10-03 15:46:58 +00:00
typed_header.rs chore: Upgrade matchit to 0.8 (#2645) 2024-10-03 15:46:58 +00:00