renamed postid for coherence

This commit is contained in:
Massimiliano Assante 2023-02-09 15:40:56 +01:00
parent 8b58a29d9f
commit 80aed8b486
1 changed files with 4 additions and 4 deletions

View File

@ -12,9 +12,9 @@ import com.fasterxml.jackson.annotation.JsonProperty;
*/
public class PostId {
@JsonProperty("postId")
@NotNull(message="postId cannot be null")
@Size(message="postId cannot be empty", min=1)
@JsonProperty("postid")
@NotNull(message="postid cannot be null")
@Size(message="postid cannot be empty", min=1)
private String postId;
public PostId() {
@ -36,7 +36,7 @@ public class PostId {
@Override
public String toString() {
return "PostId [postId=" + postId + "]";
return "PostId [postid=" + postId + "]";
}