Skip to content

Commit

Permalink
Fix openapi api response content for unlock.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkins committed Aug 26, 2024
1 parent e6b355a commit 12672b1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
import org.eclipse.microprofile.jwt.JsonWebToken;
import org.eclipse.microprofile.openapi.annotations.Operation;
import org.eclipse.microprofile.openapi.annotations.enums.ParameterIn;
import org.eclipse.microprofile.openapi.annotations.media.Content;
import org.eclipse.microprofile.openapi.annotations.media.Schema;
import org.eclipse.microprofile.openapi.annotations.parameters.Parameter;
import org.eclipse.microprofile.openapi.annotations.responses.APIResponse;

Expand Down Expand Up @@ -293,7 +295,7 @@ public Response legacyUnlock(@PathParam("vaultId") UUID vaultId, @PathParam("dev
@VaultRole({VaultAccess.Role.MEMBER, VaultAccess.Role.OWNER}) // may throw 403
@Transactional
@Operation(summary = "get the user-specific vault key", description = "retrieves a jwe containing the vault key, encrypted for the current user")
@APIResponse(responseCode = "200")
@APIResponse(responseCode = "200", content = {@Content(mediaType = MediaType.TEXT_PLAIN, schema = @Schema(implementation = String.class))})
@APIResponse(responseCode = "402", description = "license expired or number of effective vault users that have a token exceeds available license seats")
@APIResponse(responseCode = "403", description = "not a vault member")
@APIResponse(responseCode = "404", description = "unknown vault")
Expand Down

0 comments on commit 12672b1

Please sign in to comment.