Skip to content

Commit

Permalink
Merge pull request #111 from rolfyone/404-state-validators
Browse files Browse the repository at this point in the history
add state not found possibility to state validators endpoint
  • Loading branch information
djrtwo authored Nov 11, 2020
2 parents 5f8d85d + 0914242 commit e7f18e5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions apis/beacon/states/validators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ get:
- example:
code: 400
message: "Invalid state ID: current"
"404":
description: "State not found"
content:
application/json:
schema:
allOf:
- $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
- example:
code: 404
message: "State not found"
"500":
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'

8 changes: 7 additions & 1 deletion apis/debug/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ get:
parameters:
- name: state_id
in: path
$ref: '../../beacon-node-oapi.yaml#/components/parameters/StateId'
example: "head"
required: true
schema:
type: string
description: |
State identifier.
Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", \<slot\>, \<hex encoded stateRoot with 0x prefix\>.
responses:
"200":
description: Success
Expand Down

0 comments on commit e7f18e5

Please sign in to comment.