Fix OpenAPI defs

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2026-04-10 19:13:39 +02:00
parent d456d314d2
commit d4935fbf6e
3 changed files with 59 additions and 0 deletions

View File

@ -112,6 +112,7 @@ func (b *OpenAPIBuilder) buildComponents() *v3.Components {
schemas.Set("StatusTSDBBlocksOutputBody", b.refResponseBodySchema("StatusTSDBBlocksData", "Response body for status TSDB blocks endpoint."))
schemas.Set("StatusWALReplayData", b.statusWALReplayDataSchema())
schemas.Set("StatusWALReplayOutputBody", b.refResponseBodySchema("StatusWALReplayData", "Response body for status WAL replay endpoint."))
schemas.Set("StatusSelfMetricsOutputBody", b.simpleResponseBodySchema())
// Admin schemas.
schemas.Set("DeleteSeriesOutputBody", b.statusOnlyResponseBodySchema())

View File

@ -4273,6 +4273,35 @@ components:
- data
additionalProperties: false
description: Response body for status WAL replay endpoint.
StatusSelfMetricsOutputBody:
type: object
properties:
status:
type: string
enum:
- success
- error
description: Response status.
example: success
data:
description: Response data (structure varies by endpoint).
example:
result: ok
warnings:
type: array
items:
type: string
description: Only set if there were warnings while executing the request. There will still be data in the data field.
infos:
type: array
items:
type: string
description: Only set if there were info-level annotations while executing the request.
required:
- status
- data
additionalProperties: false
description: Generic response body.
DeleteSeriesOutputBody:
type: object
properties:

View File

@ -4311,6 +4311,35 @@ components:
- data
additionalProperties: false
description: Response body for status WAL replay endpoint.
StatusSelfMetricsOutputBody:
type: object
properties:
status:
type: string
enum:
- success
- error
description: Response status.
example: success
data:
description: Response data (structure varies by endpoint).
example:
result: ok
warnings:
type: array
items:
type: string
description: Only set if there were warnings while executing the request. There will still be data in the data field.
infos:
type: array
items:
type: string
description: Only set if there were info-level annotations while executing the request.
required:
- status
- data
additionalProperties: false
description: Generic response body.
DeleteSeriesOutputBody:
type: object
properties: