From 54492a30a2b980bd76b84d60ed7d1b39f4b3aaa1 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Wed, 23 Oct 2024 14:23:32 -0400 Subject: fix: deleting rule from quota group responds with 204 --- src/generated/methods.rs | 2 +- swagger.v1.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generated/methods.rs b/src/generated/methods.rs index bb14bdf..f49d61f 100644 --- a/src/generated/methods.rs +++ b/src/generated/methods.rs @@ -321,7 +321,7 @@ impl crate::Forgejo { .build()?; let response = self.execute(request).await?; match response.status().as_u16() { - 201 => Ok(()), + 204 => Ok(()), _ => Err(ForgejoError::UnexpectedStatusCode(response.status())), } } diff --git a/swagger.v1.json b/swagger.v1.json index 88253ff..13b13ad 100644 --- a/swagger.v1.json +++ b/swagger.v1.json @@ -593,7 +593,7 @@ } ], "responses": { - "201": { + "204": { "$ref": "#/responses/empty" }, "400": { -- cgit v1.2.3