From 30ec06ca76da25edca8f5461940f3d784e911d28 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Fri, 11 Oct 2024 14:09:37 -0400 Subject: [PATCH] Fix an incorrect response schema annotation --- .../textsecuregcm/controllers/DeviceController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java index 342484f28..ba469054a 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/DeviceController.java @@ -13,6 +13,7 @@ import io.micrometer.core.instrument.Tags; import io.micrometer.core.instrument.Timer; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.headers.Header; +import io.swagger.v3.oas.annotations.media.Content; import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.responses.ApiResponse; import java.time.Duration; @@ -317,11 +318,11 @@ public class DeviceController { Waits for a new device to be linked to an account and returns basic information about the new device when available. """) - @ApiResponse(responseCode = "200", description = "The specified was linked to an account") + @ApiResponse(responseCode = "200", description = "The specified was linked to an account", + content = @Content(schema = @Schema(implementation = DeviceInfo.class))) @ApiResponse(responseCode = "204", description = "No device was linked to the account before the call completed") @ApiResponse(responseCode = "400", description = "The given token identifier or timeout was invalid") @ApiResponse(responseCode = "429", description = "Rate-limited; try again after the prescribed delay") - @Schema(description = "Basic information about the linked device", implementation = DeviceInfo.class) public CompletableFuture waitForLinkedDevice( @ReadOnly @Auth final AuthenticatedDevice authenticatedDevice,