Skip to content

Commit 5e4ff2b

Browse files
committed
(TP-77) feat: add email Schema description and example
1 parent 5152d67 commit 5e4ff2b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rentplace/src/main/java/kattsyn/dev/rentplace/dtos/CodeRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package kattsyn.dev.rentplace.dtos;
22

3+
import io.swagger.v3.oas.annotations.media.Schema;
34
import jakarta.validation.constraints.Email;
45
import lombok.AllArgsConstructor;
56
import lombok.Getter;
@@ -13,6 +14,7 @@
1314
public class CodeRequest {
1415

1516
@Email
17+
@Schema(description = "Почта пользователя", example = "warshard1337@gmail.com")
1618
private String email;
1719

1820
}

0 commit comments

Comments
 (0)