summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-03-15 19:45:56 +0100
committerCyborus <cyborus@cyborus.xyz>2024-03-15 19:45:56 +0100
commitfdcf4a4c2e856d44b9faf59344439ada284231dd (patch)
tree2b3557c68f5f6da1b604da3ad354bd0292e905fd /src
parentderive `Copy` and `Eq` for enums (diff)
downloadforgejo-api-fdcf4a4c2e856d44b9faf59344439ada284231dd.tar.xz
forgejo-api-fdcf4a4c2e856d44b9faf59344439ada284231dd.zip
default to `serde_json::Value` for empty schemas
Diffstat (limited to 'src')
-rw-r--r--src/generated/structs.rs8
1 files changed, 4 insertions, 4 deletions
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>,