Skip to content

Commit 8105d6f

Browse files
authored
Update error response of validator publish endpoints (#557)
* Update error response for validator publish endpoints * Fix refs to schema
1 parent 8ccc4d9 commit 8105d6f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

apis/validator/aggregate_and_proofs.v2.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ post:
3131
"200":
3232
description: "Successful response"
3333
"400":
34-
$ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest'
34+
description: "Errors with one or more aggregate and proofs"
35+
content:
36+
application/json:
37+
schema:
38+
$ref: "../../beacon-node-oapi.yaml#/components/schemas/IndexedErrorMessage"
3539
"415":
3640
$ref: '../../beacon-node-oapi.yaml#/components/responses/UnsupportedMediaType'
3741
"500":

apis/validator/sync_committee_contribution_and_proof.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ post:
1717
"200":
1818
description: "Successful response"
1919
"400":
20-
$ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest'
20+
description: "Errors with one or more contribution and proofs"
21+
content:
22+
application/json:
23+
schema:
24+
$ref: "../../beacon-node-oapi.yaml#/components/schemas/IndexedErrorMessage"
2125
"500":
22-
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'
26+
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'

0 commit comments

Comments
 (0)