Skip to content

Commit 33dc957

Browse files
authored
fix(openapi): use correct response type for key deletion (#77)
* fix response schema for DELETE /keys/{keyId} endpoint * add missing ApiKeyDeleteResponse schema definition * ensure id field description matches actual response
1 parent 4c11347 commit 33dc957

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

openapi.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ paths:
11051105
content:
11061106
application/json:
11071107
schema:
1108-
$ref: "#/components/schemas/ApiKey"
1108+
$ref: "#/components/schemas/ApiKeyDeleteResponse"
11091109
400:
11101110
description: Bad request, see error message for details
11111111
content:
@@ -2363,6 +2363,15 @@ components:
23632363
value_prefix:
23642364
type: string
23652365
readOnly: true
2366+
ApiKeyDeleteResponse:
2367+
type: object
2368+
required:
2369+
- id
2370+
properties:
2371+
id:
2372+
type: integer
2373+
format: int64
2374+
description: The id of the API key that was deleted
23662375
ApiKeysResponse:
23672376
type: object
23682377
required:

0 commit comments

Comments
 (0)