package io.crowdcode.flaschenlager.user.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
public class PasswordRequest {

    private String oldPassword;
    private String newPassword;
}

@@ -122,16 +122,62 @@
 ssors;%0A%0A
+import javax.validation.constraints.NotNull;%0A%0A
 @Getter%0A
@@ -241,16 +241,29 @@
 uest %7B%0A%0A
+    @NotNull%0A
     priv
@@ -285,16 +285,30 @@
 assword;
+%0A%0A    @NotNull
 %0A    pri
@@ -332,10 +332,11 @@
 ssword;%0A
+%0A
 %7D%0A

add validator constraints