deserialize empty string to none for submit_url
This commit is contained in:
parent
eb3763b301
commit
a071df7638
@ -41,6 +41,10 @@ ruma_api! {
|
||||
|
||||
/// URL to submit validation token to. If omitted, verification happens without client.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[cfg_attr(
|
||||
feature = "compat",
|
||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||
)]
|
||||
pub submit_url: Option<String>
|
||||
}
|
||||
|
||||
|
@ -44,6 +44,10 @@ ruma_api! {
|
||||
|
||||
/// URL to submit validation token to. If omitted, verification happens without client.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[cfg_attr(
|
||||
feature = "compat",
|
||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||
)]
|
||||
pub submit_url: Option<String>
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,10 @@ ruma_api! {
|
||||
|
||||
/// URL to submit validation token to. If omitted, verification happens without client.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[cfg_attr(
|
||||
feature = "compat",
|
||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||
)]
|
||||
pub submit_url: Option<String>
|
||||
}
|
||||
|
||||
|
@ -37,6 +37,10 @@ ruma_api! {
|
||||
|
||||
/// URL to submit validation token to. If omitted, verification happens without client.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[cfg_attr(
|
||||
feature = "compat",
|
||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||
)]
|
||||
pub submit_url: Option<String>
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,10 @@ ruma_api! {
|
||||
|
||||
/// URL to submit validation token to. If omitted, verification happens without client.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[cfg_attr(
|
||||
feature = "compat",
|
||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||
)]
|
||||
pub submit_url: Option<String>
|
||||
}
|
||||
|
||||
|
@ -44,6 +44,10 @@ ruma_api! {
|
||||
|
||||
/// URL to submit validation token to. If omitted, verification happens without client.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[cfg_attr(
|
||||
feature = "compat",
|
||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||
)]
|
||||
pub submit_url: Option<String>
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user