|
982 | 982 | "example": { |
983 | 983 | "statusCode": 400, |
984 | 984 | "message": { |
985 | | - "email": "Email is invalid", |
986 | | - "password": "Password must be at least 8 characters", |
987 | | - "name": "Name must be at least 2 characters" |
| 985 | + "email": "The field must have a valid email format", |
| 986 | + "password": "The field must be at least 8 characters", |
| 987 | + "name": "The field must be at least 2 characters" |
988 | 988 | } |
989 | 989 | } |
990 | 990 | } |
|
1091 | 1091 | "example": { |
1092 | 1092 | "statusCode": 400, |
1093 | 1093 | "message": { |
1094 | | - "ids": "Ids must be an array of valid ObjectIds" |
| 1094 | + "ids": "The field must be of type array" |
1095 | 1095 | } |
1096 | 1096 | } |
1097 | 1097 | } |
|
1123 | 1123 | "example": { |
1124 | 1124 | "statusCode": 400, |
1125 | 1125 | "message": { |
1126 | | - "title": "Title must be at least 3 characters", |
1127 | | - "icon": "Invalid enum value. Expected 'project' | 'star' | 'loading' | 'puzzle' | 'container' | 'lightning' | 'colors' | 'hexagon', received 'random-icon'" |
| 1126 | + "title": "The field must be at least 3 characters", |
| 1127 | + "icon": "The field must be one of the following values: project, star, loading, puzzle, container, lightning, colors, hexagon" |
1128 | 1128 | } |
1129 | 1129 | } |
1130 | 1130 | } |
|
1179 | 1179 | "example": { |
1180 | 1180 | "statusCode": 400, |
1181 | 1181 | "message": { |
1182 | | - "title": "Title must be at least 3 characters", |
1183 | | - "boardId": "Id must be a valid ObjectId" |
| 1182 | + "title": "The field must be at least 3 characters", |
| 1183 | + "boardId": "The field must have a valid regex format" |
1184 | 1184 | } |
1185 | 1185 | } |
1186 | 1186 | } |
|
1212 | 1212 | "example": { |
1213 | 1213 | "statusCode": 400, |
1214 | 1214 | "message": { |
1215 | | - "description": "Title must be a string", |
1216 | | - "priority": "Priority must be one of the following: Without, Low, Medium, High", |
1217 | | - "columnId": "Id must be a valid ObjectId" |
| 1215 | + "description": "The field must be of type string", |
| 1216 | + "priority": "The field must be one of the following values: Without, Low, Medium, High", |
| 1217 | + "columnId": "The field must have a valid regex format" |
1218 | 1218 | } |
1219 | 1219 | } |
1220 | 1220 | } |
|
0 commit comments