|
924 | 924 | "type": "object", |
925 | 925 | "properties": { |
926 | 926 | "statusCode": { "type": "integer", "example": 400 }, |
927 | | - "message": { |
928 | | - "oneOf": [{ "type": "string" }, { "type": "object" }] |
929 | | - } |
| 927 | + "message": { "type": "object" } |
930 | 928 | } |
931 | 929 | } |
932 | 930 | }, |
|
982 | 980 | "example": { |
983 | 981 | "statusCode": 400, |
984 | 982 | "message": { |
985 | | - "email": "Email is invalid", |
986 | | - "password": "Password must be at least 8 characters", |
987 | | - "name": "Name must be at least 2 characters" |
| 983 | + "email": "The field must have a valid email format", |
| 984 | + "password": "The field must be at least 8 characters", |
| 985 | + "name": "The field must be at least 2 characters" |
988 | 986 | } |
989 | 987 | } |
990 | 988 | } |
|
1091 | 1089 | "example": { |
1092 | 1090 | "statusCode": 400, |
1093 | 1091 | "message": { |
1094 | | - "ids": "Ids must be an array of valid ObjectIds" |
| 1092 | + "ids": "The field must be of type array" |
1095 | 1093 | } |
1096 | 1094 | } |
1097 | 1095 | } |
|
1123 | 1121 | "example": { |
1124 | 1122 | "statusCode": 400, |
1125 | 1123 | "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'" |
| 1124 | + "title": "The field must be at least 3 characters", |
| 1125 | + "icon": "The field must be one of the following values: project, star, loading, puzzle, container, lightning, colors, hexagon" |
1128 | 1126 | } |
1129 | 1127 | } |
1130 | 1128 | } |
|
1179 | 1177 | "example": { |
1180 | 1178 | "statusCode": 400, |
1181 | 1179 | "message": { |
1182 | | - "title": "Title must be at least 3 characters", |
1183 | | - "boardId": "Id must be a valid ObjectId" |
| 1180 | + "title": "The field must be at least 3 characters", |
| 1181 | + "boardId": "The field must have a valid ObjectId format" |
1184 | 1182 | } |
1185 | 1183 | } |
1186 | 1184 | } |
|
1212 | 1210 | "example": { |
1213 | 1211 | "statusCode": 400, |
1214 | 1212 | "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" |
| 1213 | + "description": "The field must be of type string", |
| 1214 | + "priority": "The field must be one of the following values: Without, Low, Medium, High", |
| 1215 | + "columnId": "The field must have a valid ObjectId format" |
1218 | 1216 | } |
1219 | 1217 | } |
1220 | 1218 | } |
|
0 commit comments