summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-04-26 00:19:10 +0200
committerCyborus <cyborus@cyborus.xyz>2024-04-26 00:19:10 +0200
commit736dd72993836bde38f832e88d086949508fed02 (patch)
treea2bd08746c95662b6dfe914ae16954604caffdaf /src
parent`CreateRepoOption`'s `object_format_name` field is required (diff)
downloadforgejo-api-736dd72993836bde38f832e88d086949508fed02.tar.xz
forgejo-api-736dd72993836bde38f832e88d086949508fed02.zip
remove `object_format_name` for now
forgejo currently has a bug where the `object_format_name` field is always an empty string. for now, just don't include it. should be fixed in https://codeberg.org/forgejo/forgejo/pulls/3464
Diffstat (limited to 'src')
-rw-r--r--src/generated/structs.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/generated/structs.rs b/src/generated/structs.rs
index 46db7b2..a4d920c 100644
--- a/src/generated/structs.rs
+++ b/src/generated/structs.rs
@@ -686,8 +686,6 @@ pub struct CreateRepoOption {
pub license: Option<String>,
/// Name of the repository to create
pub name: String,
- /// ObjectFormatName of the underlying git repository
- pub object_format_name: CreateRepoOptionObjectFormatName,
/// Whether the repository is private
pub private: Option<bool>,
/// Readme of the repository to create
@@ -698,15 +696,6 @@ pub struct CreateRepoOption {
pub trust_model: Option<CreateRepoOptionTrustModel>,
}
-/// ObjectFormatName of the underlying git repository
-
-#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
-pub enum CreateRepoOptionObjectFormatName {
- #[serde(rename = "sha1")]
- Sha1,
- #[serde(rename = "sha256")]
- Sha256,
-}
/// TrustModel of the repository
#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
@@ -2253,8 +2242,6 @@ pub struct Repository {
#[serde(with = "time::serde::rfc3339::option")]
pub mirror_updated: Option<time::OffsetDateTime>,
pub name: Option<String>,
- /// ObjectFormatName of the underlying git repository
- pub object_format_name: Option<RepositoryObjectFormatName>,
pub open_issues_count: Option<u64>,
pub open_pr_counter: Option<u64>,
#[serde(deserialize_with = "crate::none_if_blank_url")]
@@ -2278,15 +2265,6 @@ pub struct Repository {
pub wiki_branch: Option<String>,
}
-/// ObjectFormatName of the underlying git repository
-
-#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
-pub enum RepositoryObjectFormatName {
- #[serde(rename = "sha1")]
- Sha1,
- #[serde(rename = "sha256")]
- Sha256,
-}
/// RepositoryMeta basic repository information
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
pub struct RepositoryMeta {