From 7f4a918e2c054965e1871bde24216423dbf7df9c Mon Sep 17 00:00:00 2001 From: Paul Harris Date: Thu, 5 Dec 2024 07:50:15 +1000 Subject: [PATCH] fix event types message (#8885) Signed-off-by: Paul Harris --- .../teku/beaconrestapi/beacon/paths/_eth_v1_events.json | 2 +- .../tech/pegasys/teku/beaconrestapi/BeaconRestApiTypes.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v1_events.json b/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v1_events.json index c3806e52186..aaede887f56 100644 --- a/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v1_events.json +++ b/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v1_events.json @@ -9,7 +9,7 @@ "in" : "query", "schema" : { "type" : "string", - "description" : "Event types to subscribe to. Supported event types: [`attestation`, `attester_slashing`, `blob_sidecar`, `block_gossip`, `block`, `bls_to_execution_change`, `chain_reorg`, `contribution_and_proof`, `finalized_checkpoint`, `head`, `payload_attributes`, `proposer_slashing`, `single_attestation`, `sync_state`, `voluntary_exit`", + "description" : "Event types to subscribe to. Supported event types: [`attestation`, `attester_slashing`, `blob_sidecar`, `block_gossip`, `block`, `bls_to_execution_change`, `chain_reorg`, `contribution_and_proof`, `finalized_checkpoint`, `head`, `payload_attributes`, `proposer_slashing`, `single_attestation`, `sync_state`, `voluntary_exit`]", "example" : "head" } } ], diff --git a/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/BeaconRestApiTypes.java b/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/BeaconRestApiTypes.java index d136dc62da7..7267cf33814 100644 --- a/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/BeaconRestApiTypes.java +++ b/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/BeaconRestApiTypes.java @@ -215,7 +215,8 @@ public class BeaconRestApiTypes { + EnumSet.allOf(EventType.class).stream() .map(val -> "`" + val.toString() + "`") .sorted() - .collect(Collectors.joining(", ")), + .collect(Collectors.joining(", ")) + + "]", "head")); public static final SerializableTypeDefinition ROOT_TYPE =