Skip to content

Commit

Permalink
Merge pull request #10 from UmaxCode/dev
Browse files Browse the repository at this point in the history
fix: fix validation check on deadline
  • Loading branch information
UmaxCode authored Jan 18, 2025
2 parents 487586a + 7aad098 commit dd1a7ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package org.umaxcode.domain.dto.request;

import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

import java.time.LocalDateTime;

public record TaskReopenDto(

@NotBlank(message = "Deadline is required")
@NotNull(message = "Deadline is required")
@Future(message = "Deadline must be in the future")
LocalDateTime deadline
) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package org.umaxcode.domain.dto.request;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.*;

import java.time.LocalDateTime;

Expand All @@ -14,7 +12,7 @@ public record TasksCreationDto(
@NotBlank(message = "Description is required")
String description,

@NotBlank(message = "Deadline is required")
@NotNull(message = "Deadline is required")
@Future(message = "Deadline must be in the future")
LocalDateTime deadline,

Expand Down

0 comments on commit dd1a7ef

Please sign in to comment.