Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use HTTP 414 status code for GET maxItems enforcement #329

Merged
merged 3 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions apis/beacon/states/validator_balances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ get:
example:
code: 400
message: "Invalid state ID: current"
"414":
description: "Too many validator IDs"
content:
application/json:
schema:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
example:
code: 414
message: "Too many validator IDs in request"
"500":
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'

9 changes: 9 additions & 0 deletions apis/beacon/states/validators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,14 @@ get:
example:
code: 404
message: "State not found"
"414":
description: "Too many validator IDs"
content:
application/json:
schema:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
example:
code: 414
message: "Too many validator IDs in request"
"500":
$ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError"