diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-06-19 19:32:22 +0200 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-06-19 19:32:22 +0200 |
commit | 37a84e9f7ae920aad0d54b42032ed3c159f16093 (patch) | |
tree | c38dbfb4ad654675d6af3027c166651453a65c72 | |
parent | Merge pull request 'bump version to 0.3.0' (#58) from bump-0.3.0 into main (diff) | |
download | forgejo-api-37a84e9f7ae920aad0d54b42032ed3c159f16093.tar.xz forgejo-api-37a84e9f7ae920aad0d54b42032ed3c159f16093.zip |
fix(swagger): `UserSettings` should not be a list
-rw-r--r-- | src/generated/methods.rs | 4 | ||||
-rw-r--r-- | swagger.v1.json | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/generated/methods.rs b/src/generated/methods.rs index c2404c9..96a3e18 100644 --- a/src/generated/methods.rs +++ b/src/generated/methods.rs @@ -7066,7 +7066,7 @@ impl crate::Forgejo { } /// Get user settings - pub async fn get_user_settings(&self) -> Result<Vec<UserSettings>, ForgejoError> { + pub async fn get_user_settings(&self) -> Result<UserSettings, ForgejoError> { let request = self.get("user/settings").build()?; let response = self.execute(request).await?; match response.status().as_u16() { @@ -7081,7 +7081,7 @@ impl crate::Forgejo { pub async fn update_user_settings( &self, body: UserSettingsOptions, - ) -> Result<Vec<UserSettings>, ForgejoError> { + ) -> Result<UserSettings, ForgejoError> { let request = self.patch("user/settings").json(&body).build()?; let response = self.execute(request).await?; match response.status().as_u16() { diff --git a/swagger.v1.json b/swagger.v1.json index 0de864a..e706eb8 100644 --- a/swagger.v1.json +++ b/swagger.v1.json @@ -23164,10 +23164,7 @@ "UserSettings": { "description": "UserSettings", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/UserSettings" - } + "$ref": "#/definitions/UserSettings" } }, "WatchInfo": { |