From 96d6f6f373ce238c414c5e4d1106b3d0d5ed9b0c Mon Sep 17 00:00:00 2001 From: yash Date: Sun, 19 May 2024 17:20:43 +0530 Subject: [PATCH] rfac: removed compulsory description in requests (backend) --- .../activityleaderboard/payload/request/AddOrgRequest.java | 1 - .../activityleaderboard/payload/request/AddProjectRequest.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/main/java/com/mdgspace/activityleaderboard/payload/request/AddOrgRequest.java b/backend/src/main/java/com/mdgspace/activityleaderboard/payload/request/AddOrgRequest.java index e436bf6..72445f4 100644 --- a/backend/src/main/java/com/mdgspace/activityleaderboard/payload/request/AddOrgRequest.java +++ b/backend/src/main/java/com/mdgspace/activityleaderboard/payload/request/AddOrgRequest.java @@ -20,7 +20,6 @@ public class AddOrgRequest implements Serializable { @Size(min=3,max=15) private String name; - @NotBlank @Size(min=5, max=30) private String description; } diff --git a/backend/src/main/java/com/mdgspace/activityleaderboard/payload/request/AddProjectRequest.java b/backend/src/main/java/com/mdgspace/activityleaderboard/payload/request/AddProjectRequest.java index 060fc81..dc6842c 100644 --- a/backend/src/main/java/com/mdgspace/activityleaderboard/payload/request/AddProjectRequest.java +++ b/backend/src/main/java/com/mdgspace/activityleaderboard/payload/request/AddProjectRequest.java @@ -16,7 +16,7 @@ public class AddProjectRequest implements Serializable{ @Size(min=3,max=10) private String name; - @NotBlank + @Size(min=5,max=30) private String description;