Skip to content

Commit a125395

Browse files
committed
doc: fix openapi spec
1 parent 32370e6 commit a125395

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

openapi/Swarm.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ paths:
435435
$ref: "SwarmCommon.yaml#/components/schemas/SwarmReference"
436436
required: true
437437
description: Swarm address of content
438-
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmFeedLegacyResolve"
439438
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmCache"
440439
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmRedundancyStrategyParameter"
441440
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmRedundancyFallbackModeParameter"
@@ -454,6 +453,11 @@ paths:
454453
schema:
455454
type: string
456455
format: binary
456+
headers:
457+
"swarm-feed-resolved-version":
458+
$ref: "SwarmCommon.yaml#/components/headers/SwarmFeedResolvedVersion"
459+
460+
457461
"400":
458462
$ref: "SwarmCommon.yaml#/components/responses/400"
459463
"404":
@@ -504,7 +508,6 @@ paths:
504508
type: string
505509
required: true
506510
description: Path to the file in the collection.
507-
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmFeedLegacyResolve"
508511
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmRedundancyStrategyParameter"
509512
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmRedundancyFallbackModeParameter"
510513
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmChunkRetrievalTimeoutParameter"
@@ -516,6 +519,9 @@ paths:
516519
schema:
517520
type: string
518521
format: binary
522+
headers:
523+
"swarm-feed-resolved-version":
524+
$ref: "SwarmCommon.yaml#/components/headers/SwarmFeedResolvedVersion"
519525

520526
"400":
521527
$ref: "SwarmCommon.yaml#/components/responses/400"
@@ -1032,7 +1038,6 @@ paths:
10321038
$ref: "SwarmCommon.yaml#/components/schemas/FeedType"
10331039
required: false
10341040
description: "Feed indexing scheme (default: sequence)"
1035-
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmFeedLegacyResolve"
10361041
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmOnlyRootChunkParameter"
10371042
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmCache"
10381043
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmRedundancyStrategyParameter"
@@ -1048,6 +1053,9 @@ paths:
10481053
$ref: "SwarmCommon.yaml#/components/headers/SwarmFeedIndex"
10491054
"swarm-feed-index-next":
10501055
$ref: "SwarmCommon.yaml#/components/headers/SwarmFeedIndexNext"
1056+
"swarm-feed-resolved-version":
1057+
$ref: "SwarmCommon.yaml#/components/headers/SwarmFeedResolvedVersion"
1058+
10511059
content:
10521060
application/octet-stream:
10531061
schema:

openapi/SwarmCommon.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,13 @@ components:
10711071
schema:
10721072
type: string
10731073

1074+
SwarmFeedResolvedVersion:
1075+
schema:
1076+
type: string
1077+
required: false
1078+
description: "Indicates which feed version was resolved (v1 or v2)"
1079+
1080+
10741081
parameters:
10751082
GasPriceParameter:
10761083
in: header
@@ -1276,14 +1283,6 @@ components:
12761283
required: false
12771284
description: "ACT history Unix timestamp"
12781285

1279-
SwarmFeedLegacyResolve:
1280-
in: query
1281-
name: swarm-feed-legacy-resolve
1282-
schema:
1283-
type: boolean
1284-
required: false
1285-
description: "Resolves feed payloads in legacy structure (timestamp, content address)."
1286-
12871286
responses:
12881287
"200":
12891288
description: OK.

0 commit comments

Comments
 (0)