MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / validateTaskId

Function validateTaskId

js/botasaurus-server-js/src/validation.ts:332–337  ·  view source on GitHub ↗
(id: any, propertyName: string )

Source from the content-addressed store, hash-verified

330
331
332function 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
339export function validatePatchTask(jsonData: any): number[] {
340 ensureJsonBodyIsDict(jsonData);

Callers 2

validateAndGetTaskIdFunction · 0.85
validateTaskIdInPayloadFunction · 0.85

Calls 1

isObjectFunction · 0.90

Tested by

no test coverage detected