Multiple API errors are not spec compliant #6293
Labels
good first issue
Issues that are suitable for first-time contributors.
meta-bug
Issues that identify a bug and require a fix.
Describe the bug
The beacon API spec notes that multiple API errors (e.g submitPoolAttestations) should return a 400 error with details of each failure.
There was initial work on this to handle multiple errors (#2595), we just need to update the response format and status code.
Expected behavior
The response should be formatted like this
and return 400 http status code instead of 500
Steps to reproduce
Call any API that accepts an array of objects with invalid data.
Additional context
Operating system
Linux
Lodestar version or commit hash
098d35a
The text was updated successfully, but these errors were encountered: