Add annotation to catch empty request body

This commit is contained in:
Katherine Yen
2023-05-17 14:00:16 -07:00
parent 0706171264
commit 9450f88c8c
3 changed files with 27 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
package org.whispersystems.textsecuregcm.entities;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotEmpty;
public record GetCreateCallLinkCredentialsRequest(@NotNull byte[] createCallLinkCredentialRequest) {}
public record GetCreateCallLinkCredentialsRequest(@NotEmpty byte[] createCallLinkCredentialRequest) {}