Skip to content

Commit 7ad1b0b

Browse files
gfyragclaude
andauthored
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 84be17d commit 7ad1b0b

25 files changed

+236
-454
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
@@ -2068,16 +2068,7 @@ components:
20682068
content:
20692069
application/json:
20702070
schema:
2071-
type: object
2072-
properties:
2073-
cursor:
2074-
allOf:
2075-
- $ref: "#/components/schemas/V2PipelinesCursorResponse"
2076-
- properties:
2077-
data:
2078-
type: array
2079-
items:
2080-
$ref: "#/components/schemas/V2Pipeline"
2071+
$ref: "#/components/schemas/V2PipelinesCursorResponse"
20812072

20822073
V2GetPipelineStateResponse:
20832074
description: Pipeline information
@@ -2107,17 +2098,7 @@ components:
21072098
content:
21082099
application/json:
21092100
schema:
2110-
type: object
2111-
properties:
2112-
cursor:
2113-
allOf:
2114-
- $ref: "#/components/schemas/V2ExportersCursorResponse"
2115-
- type: object
2116-
properties:
2117-
data:
2118-
type: array
2119-
items:
2120-
$ref: "#/components/schemas/V2Exporter"
2101+
$ref: "#/components/schemas/V2ExportersCursorResponse"
21212102

21222103
V2GetExporterStateResponse:
21232104
description: Exporter information

0 commit comments

Comments
 (0)