From 90d6b88739479c2221c3a9ae7e30f2fd6d67ecfe Mon Sep 17 00:00:00 2001 From: bymyself Date: Sat, 19 Jul 2025 15:14:17 -0700 Subject: [PATCH] Fix more duplicate content blocks in OpenAPI spec - Fixed duplicate content in /api/history/{prompt_id} GET response - Fixed duplicate content in /api/object_info GET response - Moved actual response schemas to 200 responses where they belong --- openapi.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index f8cdde353..8214dc700 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -243,16 +243,16 @@ paths: responses: '200': description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/HistoryItem' '500': description: Internal server error content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' - content: - application/json: - schema: - $ref: '#/components/schemas/HistoryItem' /api/object_info: get: tags: @@ -263,18 +263,18 @@ paths: responses: '200': description: Success - '500': - description: Internal server error - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorResponse' content: application/json: schema: type: object additionalProperties: $ref: '#/components/schemas/NodeInfo' + '500': + description: Internal server error + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' /api/object_info/{node_class}: get: tags: