From 25b1d60994790daa9406c3881b65d07c1c4084c0 Mon Sep 17 00:00:00 2001 From: Benjamin SCHOLTES Date: Wed, 18 Dec 2024 18:53:04 +0100 Subject: [PATCH] fix: fix broken protocol version api specification --- .../protocolversion/v4alpha/ProtocolVersionApiV4alpha.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = """