function
ValidateTaskPayload
func ValidateTaskPayload(payload json.RawMessage) errorValidate a bounded non-empty JSON task payload.
Source store/task_validation.go:73
Custom TaskStore implementations should call this at their direct public boundary and still enforce the corresponding database invariants atomically.