const itemAssert = buildAssert(schema.items as SessionConfigPropertySchema);
return (value, path) => {
throw invalidParams(path, 'array', value);
}
itemAssert(value[i], `${path}[${i}]`);
}
}
return buildPrimitiveAssert(schema);