Skip to content

Commit 1569fc4

Browse files
nflaigjtraglia
andauthored
Add SSZ support to register validator api (#110)
* Add SSZ support to register validator api * Validator registrations should be a list * Use VALIDATOR_REGISTRY_LIMIT as list limit Co-authored-by: Justin Traglia <[email protected]> --------- Co-authored-by: Justin Traglia <[email protected]>
1 parent 4b818cc commit 1569fc4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apis/builder/validators.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ post:
2121
schema:
2222
type: array
2323
items:
24-
$ref: "../../builder-oapi.yaml#/components/schemas/SignedValidatorRegistration"
24+
$ref: "../../builder-oapi.yaml#/components/schemas/SignedValidatorRegistration"
25+
application/octet-stream:
26+
schema:
27+
description: "SSZ serialized `List[SignedValidatorRegistrationV1, VALIDATOR_REGISTRY_LIMIT]` bytes. Use content type header to indicate that SSZ data is contained in the request body."
2528
responses:
2629
"200":
2730
description: Success response.
@@ -34,5 +37,7 @@ post:
3437
example:
3538
code: 400
3639
message: "unknown validator"
40+
"415":
41+
$ref: "../../builder-oapi.yaml#/components/responses/UnsupportedMediaType"
3742
"500":
3843
$ref: "../../builder-oapi.yaml#/components/responses/InternalError"

0 commit comments

Comments
 (0)