Fix remaining duplicate content blocks in internal endpoints

- Fixed duplicate content in /api/system_stats GET
- Fixed duplicate content in /api/features GET
- Fixed duplicate content in /internal/logs GET
- Fixed duplicate content in /internal/logs/raw GET
- Fixed duplicate content in /internal/folder_paths GET
- Fixed duplicate content in /internal/files/{directory_type} GET

OpenAPI spec now passes all validation checks!
This commit is contained in:
bymyself 2025-07-20 14:44:27 -07:00
parent f2cd7d3e13
commit 6a70191868

View File

@ -604,16 +604,16 @@ paths:
responses: responses:
'200': '200':
description: Success description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/SystemStats'
'500': '500':
description: Internal server error description: Internal server error
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ErrorResponse' $ref: '#/components/schemas/ErrorResponse'
content:
application/json:
schema:
$ref: '#/components/schemas/SystemStats'
/api/ws: /api/ws:
get: get:
tags: tags:
@ -646,16 +646,16 @@ paths:
responses: responses:
'200': '200':
description: Success description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ServerFeatures'
'500': '500':
description: Internal server error description: Internal server error
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ErrorResponse' $ref: '#/components/schemas/ErrorResponse'
content:
application/json:
schema:
$ref: '#/components/schemas/ServerFeatures'
/internal/logs: /internal/logs:
get: get:
tags: tags:
@ -666,16 +666,16 @@ paths:
responses: responses:
'200': '200':
description: Success description: Success
content:
application/json:
schema:
type: string
'500': '500':
description: Internal server error description: Internal server error
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ErrorResponse' $ref: '#/components/schemas/ErrorResponse'
content:
application/json:
schema:
type: string
/internal/logs/raw: /internal/logs/raw:
get: get:
tags: tags:
@ -686,16 +686,16 @@ paths:
responses: responses:
'200': '200':
description: Success description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/RawLogsResponse'
'500': '500':
description: Internal server error description: Internal server error
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ErrorResponse' $ref: '#/components/schemas/ErrorResponse'
content:
application/json:
schema:
$ref: '#/components/schemas/RawLogsResponse'
/internal/logs/subscribe: /internal/logs/subscribe:
patch: patch:
tags: tags:
@ -728,18 +728,18 @@ paths:
responses: responses:
'200': '200':
description: Success description: Success
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
content: content:
application/json: application/json:
schema: schema:
type: object type: object
additionalProperties: additionalProperties:
type: string type: string
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/internal/files/{directory_type}: /internal/files/{directory_type}:
get: get:
tags: tags:
@ -761,12 +761,6 @@ paths:
responses: responses:
'200': '200':
description: Success description: Success
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
content: content:
application/json: application/json:
schema: schema:
@ -775,6 +769,12 @@ paths:
type: string type: string
'400': '400':
description: Invalid directory type description: Invalid directory type
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
components: components:
schemas: schemas:
PromptRequest: PromptRequest: