From 5572f2b734bc319d9e712b58ea104d7d616fd22a Mon Sep 17 00:00:00 2001 From: Enrico Del Fante Date: Wed, 27 Sep 2023 11:56:56 +0200 Subject: [PATCH] fix getBlobSidecars response title --- .../beacon/paths/_eth_v1_beacon_blob_sidecars_{block_id}.json | 2 +- .../{GetBlobsResponse.json => GetBlobSidecarsResponse.json} | 2 +- .../teku/beaconrestapi/handlers/v1/beacon/GetBlobSidecars.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/{GetBlobsResponse.json => GetBlobSidecarsResponse.json} (83%) diff --git a/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v1_beacon_blob_sidecars_{block_id}.json b/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v1_beacon_blob_sidecars_{block_id}.json index 17bc73e6b9c..2b808010920 100644 --- a/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v1_beacon_blob_sidecars_{block_id}.json +++ b/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/paths/_eth_v1_beacon_blob_sidecars_{block_id}.json @@ -33,7 +33,7 @@ "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/GetBlobsResponse" + "$ref" : "#/components/schemas/GetBlobSidecarsResponse" } }, "application/octet-stream" : { diff --git a/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/GetBlobsResponse.json b/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/GetBlobSidecarsResponse.json similarity index 83% rename from data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/GetBlobsResponse.json rename to data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/GetBlobSidecarsResponse.json index cfef08db4b4..0e4e5ba8d5c 100644 --- a/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/GetBlobsResponse.json +++ b/data/beaconrestapi/src/integration-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/GetBlobSidecarsResponse.json @@ -1,5 +1,5 @@ { - "title" : "GetBlobsResponse", + "title" : "GetBlobSidecarsResponse", "type" : "object", "required" : [ "data" ], "properties" : { diff --git a/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetBlobSidecars.java b/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetBlobSidecars.java index 612b0990652..64754841d55 100644 --- a/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetBlobSidecars.java +++ b/data/beaconrestapi/src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/beacon/GetBlobSidecars.java @@ -93,7 +93,7 @@ private static SerializableTypeDefinition> getResponseType( .getBlobSidecarSchema() .getJsonTypeDefinition(); return SerializableTypeDefinition.>object() - .name("GetBlobsResponse") + .name("GetBlobSidecarsResponse") .withField("data", listOf(blobSidecarType), Function.identity()) .build(); }