Skip to content

Commit 936b149

Browse files
fix(openapi): correct OpenAPI response (#4972)
1 parent a83d640 commit 936b149

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

openapi/Swarm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2464,7 +2464,7 @@ paths:
24642464
content:
24652465
application/json:
24662466
schema:
2467-
$ref: "SwarmCommon.yaml#/components/schemas/StatusResponse"
2467+
$ref: "SwarmCommon.yaml#/components/schemas/StatusPeersResponse"
24682468
"400":
24692469
$ref: "SwarmCommon.yaml#/components/responses/400"
24702470
default:

openapi/SwarmCommon.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,8 @@ components:
897897
properties:
898898
overlay:
899899
$ref: "#/components/schemas/SwarmAddress"
900+
proximity:
901+
type: integer
900902
beeMode:
901903
type: string
902904
enum:
@@ -905,8 +907,6 @@ components:
905907
- "dev"
906908
- "ultra-light"
907909
- "unknown"
908-
proximity:
909-
type: integer
910910
reserveSize:
911911
type: integer
912912
reserveSizeWithinRadius:
@@ -922,7 +922,7 @@ components:
922922
requestFailed:
923923
nullable: true
924924
type: boolean
925-
BatchCommitment:
925+
batchCommitment:
926926
type: integer
927927
isReachable:
928928
type: boolean
@@ -931,10 +931,10 @@ components:
931931
committedDepth:
932932
type: integer
933933

934-
StatusResponse:
934+
StatusPeersResponse:
935935
type: object
936936
properties:
937-
stamps:
937+
snapshots:
938938
type: array
939939
nullable: false
940940
items:
@@ -958,7 +958,7 @@ components:
958958
StatusNeighborhoodsResponse:
959959
type: object
960960
properties:
961-
stamps:
961+
neighborhoods:
962962
type: array
963963
nullable: false
964964
items:

0 commit comments

Comments
 (0)