summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-04-25 18:51:54 +0200
committerCyborus <cyborus@cyborus.xyz>2024-04-25 18:51:54 +0200
commit9b784f1f955003d555dceeb2ccd58e2ac563526b (patch)
tree0e52f7aab42aa140d3d8ba55aa33f259be759019
parentuse forgejo 7.0.0 in ci (diff)
downloadforgejo-api-9b784f1f955003d555dceeb2ccd58e2ac563526b.tar.xz
forgejo-api-9b784f1f955003d555dceeb2ccd58e2ac563526b.zip
`CreateRepoOption`'s `object_format_name` field is required
-rw-r--r--src/generated/structs.rs2
-rw-r--r--swagger.v1.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/generated/structs.rs b/src/generated/structs.rs
index 6fc1a3a..46db7b2 100644
--- a/src/generated/structs.rs
+++ b/src/generated/structs.rs
@@ -687,7 +687,7 @@ pub struct CreateRepoOption {
/// Name of the repository to create
pub name: String,
/// ObjectFormatName of the underlying git repository
- pub object_format_name: Option<CreateRepoOptionObjectFormatName>,
+ pub object_format_name: CreateRepoOptionObjectFormatName,
/// Whether the repository is private
pub private: Option<bool>,
/// Readme of the repository to create
diff --git a/swagger.v1.json b/swagger.v1.json
index e37c682..5d93ddb 100644
--- a/swagger.v1.json
+++ b/swagger.v1.json
@@ -17348,7 +17348,7 @@
"CreateRepoOption": {
"description": "CreateRepoOption options when creating repository",
"type": "object",
- "required": ["name"],
+ "required": ["name", "object_format_name"],
"properties": {
"auto_init": {
"description": "Whether the repository should be auto-initialized?",