-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Beacon API v3.0.0 spec compliance #5710
Comments
On a related note, at some point we should update the api error messages to be compliant with the Beacon API spec. eg. Expected
Actual
Expected
Actual
Expected
Actual
|
I have looked at this before, it should be possible to transform the error before we send it
Regarding the body = `{"error":"${errorStatus}","message":"Client Timeout","statusCode":408}` In case of default json schema error, would have to compile it in a single messages maybe something like const { instancePath, message } = errors[0]
const message = `${instancePath.substring(instancePath.lastIndexOf("/") + 1)} ${message}` Even though it would be good if we can support all properties I don't think anyone is actually looking at the json body of an error (unless API is used manually). Most important is the http status code and also lodestar/packages/api/src/utils/client/httpClient.ts Lines 312 to 313 in 71160df
|
There's a 3.0.0-alpha.6 https://github.com/ethereum/beacon-APIs/releases |
We do already test against that
and we support all newly added apis already, can update this issue once the 3.0.0 release is out (likely shortly before electra fork) |
To be compliant to latest beacon API spec (v2.5.0) several updates are required.
v2.5.0
v2.4.2
v2.4.1
Nothing
v2.4.0
finalized
property to HTTP API responses #5693el_offline
ineth/v1/node/syncing
#5542syncing_status
query parameter to health API #5702All the above issues can be tackled independently. A PR that implements a new API or adds new parameters needs to make sure to update the corresponding ignore list.
lodestar/packages/api/test/unit/beacon/oapiSpec.test.ts
Line 87 in 645d491
lodestar/packages/api/test/unit/beacon/oapiSpec.test.ts
Line 108 in 645d491
lodestar/packages/api/test/unit/beacon/oapiSpec.test.ts
Line 155 in 645d491
The text was updated successfully, but these errors were encountered: