Skip to content

Commit

Permalink
Add not found responses for aggregates and contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfyone authored and mpetrunic committed Mar 2, 2022
1 parent a7439b0 commit 5d793bf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
15 changes: 4 additions & 11 deletions apis/validator/aggregate_attestation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ get:
- name: attestation_data_root
in: query
required: true
description: "HashTreeRoot of AttestationData that validator want's aggregated"
description: "HashTreeRoot of AttestationData that validator wants aggregated"
schema:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Root'
- name: slot
Expand All @@ -29,15 +29,8 @@ get:
data:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Attestation'
"400":
description: "Invalid request"
content:
application/json:
schema:
$ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
examples:
NotAggregator:
value:
code: 403
message: Beacon node was not assigned to aggregate on that subnet.
$ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest'
"404":
$ref: '../../beacon-node-oapi.yaml#/components/responses/NotFound'
"500":
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'
2 changes: 2 additions & 0 deletions apis/validator/sync_committee_contribution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ get:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Altair.SyncCommitteeContribution'
"400":
$ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest'
"404":
$ref: '../../beacon-node-oapi.yaml#/components/responses/NotFound'
"500":
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'
"503":
Expand Down
2 changes: 2 additions & 0 deletions beacon-node-oapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ components:
responses:
InvalidRequest:
$ref: './types/http.yaml#/InvalidRequest'
NotFound:
$ref: './types/http.yaml#/NotFound'
InternalError:
$ref: './types/http.yaml#/InternalError'
CurrentlySyncing:
Expand Down

0 comments on commit 5d793bf

Please sign in to comment.