handle collections with sortBackwards set to 0 instead of a bool

This commit is contained in:
Damien Elmes 2020-03-22 10:26:09 +10:00
parent 9dda5cf6ca
commit 199713a39a

View file

@ -28,7 +28,7 @@ pub struct Config {
pub(crate) local_offset: Option<i32>,
#[serde(rename = "sortType", deserialize_with = "default_on_invalid")]
pub(crate) browser_sort_kind: SortKind,
#[serde(rename = "sortBackwards", default)]
#[serde(rename = "sortBackwards", deserialize_with = "default_on_invalid")]
pub(crate) browser_sort_reverse: bool,
}