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
Types such as LimitedU32 cannot be deserialized from string types.
This makes it hard to directly use generated types to deserialize data in-the-wild, such as data that comes from HTTP query parameters (whose values are always interpreted as strings).
Types such as
LimitedU32
cannot be deserialized from string types.This makes it hard to directly use generated types to deserialize data in-the-wild, such as data that comes from HTTP query parameters (whose values are always interpreted as strings).
For a concrete example, see
bluepds
here:https://github.com/DrChat/bluepds/blob/e73820233790c5c1db24644512814628bf0a43ea/src/endpoints/sync.rs#L239-L248
I had to redeclare the generated type and remove all cases of
LimitedU32
because they cannot be deserialized from strings.More context/reading:
serde-rs/serde#908
serde-rs/json#412
The text was updated successfully, but these errors were encountered: