Documentation: JS side of custom constraint has to return empty array on success