From 5127bc845cbf9f64ace9f7700472eeda33d23754 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 15 Jul 2024 11:22:53 -0400
Subject: [PATCH] chore(deps): Bump serde_with from 3.8.3 to 3.9.0 (#1421)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Bumps [serde_with](https://github.com/jonasbb/serde_with) from 3.8.3 to
3.9.0.
Sourced from serde_with's
releases. Deserialize a map` and skip all elements failing to deserialize by For formats with heterogeneously typed maps, we can collect only the
elements where both key and value are deserializable.
This is also useful in conjunction to // Rust
#[serde_as(as = "MapSkipError<DisplayFromStr, _>")]
value: BTreeMap<u32, String>, // Only deserializes entries with a numerical key and a string value,
i.e.,
{0 => "v0", 5 => "v5"}
Release notes
serde_with v3.9.0
Added
@​johnmave126
(#763)MapSkipError
acts like a map
(HashMap
/BTreeMap
), but keys or values that
fail to deserialize, like are ignored.#[serde(flatten)]
to
ignore some entries when capturing additional fields.// JSON
"value": {"0": "v0", "5":
"v5", "str": "str", "10": 2},
c3e489f
Bump version to 3.9.0 (#770)57ad877
Bump version to 3.9.0d038657
Implement MapSkipError
, analogous to
VecSkipError
, but for map-like data ...aaa0a29
Update serde_with/src/guide/serde_as_transformations.md17dec11
Add tests to make sure syntax errors are not suppressed.97543d0
Implement MapSkipError, skipping un-deserializable entries.bf6724d
Move VecSkipError to a separate file, preparing for MapSkipError31e9172
Fix dead code warning by correcting a typo (#769)f5b2626
Fix dead code warnings in tests4ad4a1b
Fix dead code warning by correcting a typo