Skip to content

Commit

Permalink
Fixed SPS Group name must have at least 3 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
anhefti committed Dec 16, 2024
1 parent c1159cc commit 9f90074
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package ch.ethz.seb.sebserver.gbl.model.exam;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.Objects;

import ch.ethz.seb.sebserver.gbl.api.EntityType;
Expand Down Expand Up @@ -73,6 +74,7 @@ public class ScreenProctoringSettings implements SPSAPIAccessData, Entity {

@JsonProperty(ATTR_COLLECTING_GROUP_NAME)
@NotEmpty(message = "screenProctoringSettings:spsCollectingGroupName:notNull")
@Size(min = 3, max = 255, message = "screenProctoringSettings:spsCollectingGroupName:size:{min}:{max}:${validatedValue}")
public final String collectingGroupName;

@JsonProperty(ATTR_COLLECTING_GROUP_SIZE)
Expand Down

0 comments on commit 9f90074

Please sign in to comment.