Skip to content

Commit

Permalink
fix : formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Jan 10, 2025
1 parent 277dabc commit d13d749
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import jakarta.validation.constraints.Pattern;

public record KafkaListenerRequest(
@NotBlank(message = "Container ID must not be blank")
@Pattern(regexp = "^\\S.*$", message = "Container ID must not start with whitespace")
String containerId,
@NotBlank(message = "Container ID must not be blank") @Pattern(
regexp = "^[a-zA-Z0-9\\-_.]+$",
message =
"Container ID must contain only alphanumeric characters, hyphens, underscores, and dots")
@Pattern(regexp = "^\\S.*$", message = "Container ID must not start with whitespace") String containerId,
@NotNull(message = "Operation must not be null") Operation operation) {}

0 comments on commit d13d749

Please sign in to comment.