1
0
Fork 0

fix(swagger): UserSettings should not be a list

This commit is contained in:
Cyborus 2024-06-19 13:32:22 -04:00
parent 9830fb4578
commit 37a84e9f7a
No known key found for this signature in database
2 changed files with 3 additions and 6 deletions

View file

@ -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() {

View file

@ -23164,10 +23164,7 @@
"UserSettings": {
"description": "UserSettings",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/UserSettings"
}
"$ref": "#/definitions/UserSettings"
}
},
"WatchInfo": {