diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-04-25 18:51:54 +0200 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-04-25 18:51:54 +0200 |
commit | 9b784f1f955003d555dceeb2ccd58e2ac563526b (patch) | |
tree | 0e52f7aab42aa140d3d8ba55aa33f259be759019 | |
parent | use forgejo 7.0.0 in ci (diff) | |
download | forgejo-api-9b784f1f955003d555dceeb2ccd58e2ac563526b.tar.xz forgejo-api-9b784f1f955003d555dceeb2ccd58e2ac563526b.zip |
`CreateRepoOption`'s `object_format_name` field is required
-rw-r--r-- | src/generated/structs.rs | 2 | ||||
-rw-r--r-- | swagger.v1.json | 2 |
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?", |