Skip to content

Commit 57a418f

Browse files
authored
Fix OpenAPI documentation for DELETE /api/v1/crates/{name} endpoint (#10719)
1 parent b7a4820 commit 57a418f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controllers/krate/delete.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl DeleteQueryParams {
5050
params(CratePath, DeleteQueryParams),
5151
security(("cookie" = [])),
5252
tag = "crates",
53-
responses((status = 200, description = "Successful Response")),
53+
responses((status = 204, description = "Successful Response")),
5454
)]
5555
pub async fn delete_crate(
5656
path: CratePath,

src/snapshots/crates_io__openapi__tests__openapi_snapshot.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ expression: response.json()
13241324
}
13251325
],
13261326
"responses": {
1327-
"200": {
1327+
"204": {
13281328
"description": "Successful Response"
13291329
}
13301330
},

0 commit comments

Comments
 (0)