feat!: JDK21 -> pattern matching, integration tests implementation & small fixes
This commit is contained in:
parent
2981691ffc
commit
720937bd6c
10 changed files with 184 additions and 49 deletions
|
@ -4,12 +4,13 @@ import eu.ztsh.wymiana.validation.Adult;
|
|||
import jakarta.validation.constraints.Min;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Builder;
|
||||
import org.hibernate.validator.constraints.pl.PESEL;
|
||||
|
||||
@Builder
|
||||
public record UserCreateRequest(
|
||||
@NotNull String name,
|
||||
@NotNull String surname,
|
||||
@Adult String pesel,
|
||||
@PESEL @Adult String pesel,
|
||||
@Min(0) double pln) {
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue