Skip to content

Commit 5a1c5e5

Browse files
gfyragclaude
andcommitted
fix(openapi): remove duplicate cursor wrapping in pipelines and exporters responses (#1312)
V2ListPipelinesResponse and V2ListExportersResponse had a nested cursor structure (cursor.cursor.data) instead of the expected flat one (cursor.data). The responses wrapped the CursorResponse schema in an extra cursor property with a redundant allOf, while the referenced schemas already contained the cursor structure. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 520ff60 commit 5a1c5e5

26 files changed

+2185
-407
lines changed

docs/api/README.md

Lines changed: 10 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi.yaml

Lines changed: 2 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/v2.yaml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2064,16 +2064,7 @@ components:
20642064
content:
20652065
application/json:
20662066
schema:
2067-
type: object
2068-
properties:
2069-
cursor:
2070-
allOf:
2071-
- $ref: "#/components/schemas/V2PipelinesCursorResponse"
2072-
- properties:
2073-
data:
2074-
type: array
2075-
items:
2076-
$ref: "#/components/schemas/V2Pipeline"
2067+
$ref: "#/components/schemas/V2PipelinesCursorResponse"
20772068

20782069
V2GetPipelineStateResponse:
20792070
description: Pipeline information
@@ -2103,17 +2094,7 @@ components:
21032094
content:
21042095
application/json:
21052096
schema:
2106-
type: object
2107-
properties:
2108-
cursor:
2109-
allOf:
2110-
- $ref: "#/components/schemas/V2ExportersCursorResponse"
2111-
- type: object
2112-
properties:
2113-
data:
2114-
type: array
2115-
items:
2116-
$ref: "#/components/schemas/V2Exporter"
2097+
$ref: "#/components/schemas/V2ExportersCursorResponse"
21172098

21182099
V2GetExporterStateResponse:
21192100
description: Exporter information

0 commit comments

Comments
 (0)