default to serde_json::Value
for empty schemas
This commit is contained in:
parent
a30f114064
commit
fdcf4a4c2e
|
@ -117,7 +117,7 @@ fn schema_type_name(
|
||||||
SchemaType::List(_) => todo!(),
|
SchemaType::List(_) => todo!(),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Ok("()".into())
|
Ok("serde_json::Value".into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1149,7 +1149,7 @@ pub struct FileCommitResponse {
|
||||||
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
||||||
pub struct FileDeleteResponse {
|
pub struct FileDeleteResponse {
|
||||||
pub commit: Option<FileCommitResponse>,
|
pub commit: Option<FileCommitResponse>,
|
||||||
pub content: Option<()>,
|
pub content: Option<serde_json::Value>,
|
||||||
pub verification: Option<PayloadCommitVerification>,
|
pub verification: Option<PayloadCommitVerification>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1449,13 +1449,13 @@ pub struct IssueFormField {
|
||||||
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
||||||
pub struct IssueFormFieldAttributes {
|
pub struct IssueFormFieldAttributes {
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub additional: std::collections::BTreeMap<String, ()>,
|
pub additional: std::collections::BTreeMap<String, serde_json::Value>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
||||||
pub struct IssueFormFieldValidations {
|
pub struct IssueFormFieldValidations {
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub additional: std::collections::BTreeMap<String, ()>,
|
pub additional: std::collections::BTreeMap<String, serde_json::Value>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
||||||
|
@ -2531,7 +2531,7 @@ pub struct WatchInfo {
|
||||||
#[serde(with = "time::serde::rfc3339::option")]
|
#[serde(with = "time::serde::rfc3339::option")]
|
||||||
pub created_at: Option<time::OffsetDateTime>,
|
pub created_at: Option<time::OffsetDateTime>,
|
||||||
pub ignored: Option<bool>,
|
pub ignored: Option<bool>,
|
||||||
pub reason: Option<()>,
|
pub reason: Option<serde_json::Value>,
|
||||||
#[serde(deserialize_with = "crate::none_if_blank_url")]
|
#[serde(deserialize_with = "crate::none_if_blank_url")]
|
||||||
pub repository_url: Option<url::Url>,
|
pub repository_url: Option<url::Url>,
|
||||||
pub subscribed: Option<bool>,
|
pub subscribed: Option<bool>,
|
||||||
|
|
Loading…
Reference in a new issue