Skip to content

Commit

Permalink
fix(openapi): correct OpenAPI response (#4972)
Browse files Browse the repository at this point in the history
  • Loading branch information
gacevicljubisa authored Feb 4, 2025
1 parent a83d640 commit 936b149
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion openapi/Swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2464,7 +2464,7 @@ paths:
content:
application/json:
schema:
$ref: "SwarmCommon.yaml#/components/schemas/StatusResponse"
$ref: "SwarmCommon.yaml#/components/schemas/StatusPeersResponse"
"400":
$ref: "SwarmCommon.yaml#/components/responses/400"
default:
Expand Down
12 changes: 6 additions & 6 deletions openapi/SwarmCommon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,8 @@ components:
properties:
overlay:
$ref: "#/components/schemas/SwarmAddress"
proximity:
type: integer
beeMode:
type: string
enum:
Expand All @@ -905,8 +907,6 @@ components:
- "dev"
- "ultra-light"
- "unknown"
proximity:
type: integer
reserveSize:
type: integer
reserveSizeWithinRadius:
Expand All @@ -922,7 +922,7 @@ components:
requestFailed:
nullable: true
type: boolean
BatchCommitment:
batchCommitment:
type: integer
isReachable:
type: boolean
Expand All @@ -931,10 +931,10 @@ components:
committedDepth:
type: integer

StatusResponse:
StatusPeersResponse:
type: object
properties:
stamps:
snapshots:
type: array
nullable: false
items:
Expand All @@ -958,7 +958,7 @@ components:
StatusNeighborhoodsResponse:
type: object
properties:
stamps:
neighborhoods:
type: array
nullable: false
items:
Expand Down

0 comments on commit 936b149

Please sign in to comment.