From c530bcf29a86e5b1ed1218eda5ec2c75bc4bc838 Mon Sep 17 00:00:00 2001 From: Benjamin Scholtes <88310985+bscholtes1A@users.noreply.github.com> Date: Thu, 19 Dec 2024 10:53:11 +0100 Subject: [PATCH] fix: fix broken protocol version api specification (#4681) --- .../src/main/resources/management-api-version.json | 4 ++-- .../protocolversion/v4alpha/ProtocolVersionApiV4alpha.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/common/api/management-api-configuration/src/main/resources/management-api-version.json b/extensions/common/api/management-api-configuration/src/main/resources/management-api-version.json index 0ae5090c20..1389c995fd 100644 --- a/extensions/common/api/management-api-configuration/src/main/resources/management-api-version.json +++ b/extensions/common/api/management-api-configuration/src/main/resources/management-api-version.json @@ -1,8 +1,8 @@ [ { - "version": "3.0.3", + "version": "3.0.4", "urlPath": "/v3", - "lastUpdated": "2024-07-12T10:14:00Z", + "lastUpdated": "2024-12-19T10:14:00Z", "maturity": "stable" }, { diff --git a/extensions/control-plane/api/management-api/protocol-version-api/src/main/java/org/eclipse/edc/connector/controlplane/api/management/protocolversion/v4alpha/ProtocolVersionApiV4alpha.java b/extensions/control-plane/api/management-api/protocol-version-api/src/main/java/org/eclipse/edc/connector/controlplane/api/management/protocolversion/v4alpha/ProtocolVersionApiV4alpha.java index ed2f8cba29..e73c33b473 100644 --- a/extensions/control-plane/api/management-api/protocol-version-api/src/main/java/org/eclipse/edc/connector/controlplane/api/management/protocolversion/v4alpha/ProtocolVersionApiV4alpha.java +++ b/extensions/control-plane/api/management-api/protocol-version-api/src/main/java/org/eclipse/edc/connector/controlplane/api/management/protocolversion/v4alpha/ProtocolVersionApiV4alpha.java @@ -37,12 +37,12 @@ public interface ProtocolVersionApiV4alpha { @Operation( requestBody = @RequestBody(content = @Content(schema = @Schema(implementation = ProtocolVersionRequestSchema.class))), - responses = { @ApiResponse( + responses = {@ApiResponse( content = @Content( mediaType = "application/json", schema = @Schema(implementation = ProtocolVersionSchema.class) ), - description = "Gets supported protocol versions of a single connector") } + description = "Gets supported protocol versions of a single connector")} ) void requestProtocolVersionV4alpha(JsonObject request, @Suspended AsyncResponse response); @@ -70,7 +70,7 @@ record ProtocolVersionRequestSchema( """; } - @Schema(name = "Protocol Version", description = "Protocol Version", example = ProtocolVersionSchema.PROTOCOL_VERSION_EXAMPLE) + @Schema(name = "ProtocolVersion", description = "Protocol Version", example = ProtocolVersionSchema.PROTOCOL_VERSION_EXAMPLE) record ProtocolVersionSchema( ) { public static final String PROTOCOL_VERSION_EXAMPLE = """