diff --git a/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v2_beacon_pool_attestations.json b/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v2_beacon_pool_attestations.json index 391a425ba93..079710fb0c4 100644 --- a/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v2_beacon_pool_attestations.json +++ b/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v2_beacon_pool_attestations.json @@ -29,7 +29,7 @@ "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/getPoolAttestationsV2Response" + "$ref" : "#/components/schemas/GetPoolAttestationsV2Response" } } } diff --git a/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/getPoolAttestationsV2Response.json b/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/GetPoolAttestationsV2Response.json similarity index 60% rename from data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/getPoolAttestationsV2Response.json rename to data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/GetPoolAttestationsV2Response.json index 25211cc8e07..80756cfe9c9 100644 --- a/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/getPoolAttestationsV2Response.json +++ b/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/GetPoolAttestationsV2Response.json @@ -1,5 +1,5 @@ { - "title" : "getPoolAttestationsV2Response", + "title" : "GetPoolAttestationsV2Response", "type" : "object", "required" : [ "version", "data" ], "properties" : { @@ -14,14 +14,6 @@ "type" : "object", "oneOf" : [ { "$ref" : "#/components/schemas/AttestationPhase0" - }, { - "$ref" : "#/components/schemas/AttestationPhase0" - }, { - "$ref" : "#/components/schemas/AttestationPhase0" - }, { - "$ref" : "#/components/schemas/AttestationPhase0" - }, { - "$ref" : "#/components/schemas/AttestationPhase0" }, { "$ref" : "#/components/schemas/AttestationElectra" } ] diff --git a/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v2/beacon/GetAttestationsV2.java b/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v2/beacon/GetAttestationsV2.java index c8ad0a35cb3..b749a40a767 100644 --- a/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v2/beacon/GetAttestationsV2.java +++ b/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v2/beacon/GetAttestationsV2.java @@ -92,7 +92,7 @@ private static SerializableTypeDefinition>> schemaDefinitionCache, "Attestation", schemaGetters); return SerializableTypeDefinition.>>object() - .name("getPoolAttestationsV2Response") + .name("GetPoolAttestationsV2Response") .withField("version", MILESTONE_TYPE, ObjectAndMetaData::getMilestone) .withField("data", listOf(attestationType), ObjectAndMetaData::getData) .build();