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, /// 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, /// Readme of the repository to create @@ -698,15 +696,6 @@ pub struct CreateRepoOption { pub trust_model: Option, } -/// 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, pub name: Option, - /// ObjectFormatName of the underlying git repository - pub object_format_name: Option, pub open_issues_count: Option, pub open_pr_counter: Option, #[serde(deserialize_with = "crate::none_if_blank_url")] @@ -2278,15 +2265,6 @@ pub struct Repository { pub wiki_branch: Option, } -/// 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 { diff --git a/swagger.v1.json b/swagger.v1.json index 5d93ddb..36592ad 100644 --- a/swagger.v1.json +++ b/swagger.v1.json @@ -17348,7 +17348,7 @@ "CreateRepoOption": { "description": "CreateRepoOption options when creating repository", "type": "object", - "required": ["name", "object_format_name"], + "required": ["name"], "properties": { "auto_init": { "description": "Whether the repository should be auto-initialized?", @@ -17386,12 +17386,6 @@ "uniqueItems": true, "x-go-name": "Name" }, - "object_format_name": { - "description": "ObjectFormatName of the underlying git repository", - "type": "string", - "enum": ["sha1", "sha256"], - "x-go-name": "ObjectFormatName" - }, "private": { "description": "Whether the repository is private", "type": "boolean", @@ -21263,12 +21257,6 @@ "type": "string", "x-go-name": "Name" }, - "object_format_name": { - "description": "ObjectFormatName of the underlying git repository", - "type": "string", - "enum": ["sha1", "sha256"], - "x-go-name": "ObjectFormatName" - }, "open_issues_count": { "type": "integer", "format": "int64",