Skip to content

Commit fd60bee

Browse files
authored
Change anyOf to oneOf for attestation submissions. (#492)
1 parent 1213a84 commit fd60bee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apis/beacon/pool/attestations.v2.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ get:
3333
enum: [phase0, altair, bellatrix, capella, deneb, electra]
3434
example: "phase0"
3535
data:
36-
anyOf:
36+
oneOf:
3737
- type: array
3838
items:
3939
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Attestation'
@@ -61,6 +61,8 @@ post:
6161
If an attestation is validated successfully, the node MUST publish that attestation on the appropriate subnet.
6262
6363
If one or more attestations fail validation, the node MUST return a 400 error with details of which attestations have failed, and why.
64+
65+
Prior to the Electra hard fork, this endpoint MUST be sent Attestation objects only. At and after the Electra hard fork, this endpoint MUST be sent SingleAttestation objects only.
6466
parameters:
6567
- in: header
6668
schema:

0 commit comments

Comments
 (0)