(id: any, propertyName: string )
| 330 | |
| 331 | |
| 332 | function validateTaskId(id: any, propertyName: string ) { |
| 333 | if (!isValidId(id)) { |
| 334 | const idStr = isObject(id) ? JSON.stringify(id) : id |
| 335 | throw new JsonHTTPResponseWithMessage(`${propertyName} '${idStr}' is invalid.`) |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | export function validatePatchTask(jsonData: any): number[] { |
| 340 | ensureJsonBodyIsDict(jsonData); |
no test coverage detected