diff options
-rw-r--r-- | generator/src/main.rs | 2 | ||||
-rw-r--r-- | src/generated/structs.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/generator/src/main.rs b/generator/src/main.rs index ab23cc8..1858bc9 100644 --- a/generator/src/main.rs +++ b/generator/src/main.rs @@ -117,7 +117,7 @@ fn schema_type_name( SchemaType::List(_) => todo!(), } } else { - Ok("()".into()) + Ok("serde_json::Value".into()) } } diff --git a/src/generated/structs.rs b/src/generated/structs.rs index 51f2fe2..992bc04 100644 --- a/src/generated/structs.rs +++ b/src/generated/structs.rs @@ -1149,7 +1149,7 @@ pub struct FileCommitResponse { #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct FileDeleteResponse { pub commit: Option<FileCommitResponse>, - pub content: Option<()>, + pub content: Option<serde_json::Value>, pub verification: Option<PayloadCommitVerification>, } @@ -1449,13 +1449,13 @@ pub struct IssueFormField { #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct IssueFormFieldAttributes { #[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)] pub struct IssueFormFieldValidations { #[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)] @@ -2531,7 +2531,7 @@ pub struct WatchInfo { #[serde(with = "time::serde::rfc3339::option")] pub created_at: Option<time::OffsetDateTime>, pub ignored: Option<bool>, - pub reason: Option<()>, + pub reason: Option<serde_json::Value>, #[serde(deserialize_with = "crate::none_if_blank_url")] pub repository_url: Option<url::Url>, pub subscribed: Option<bool>, |