$values is missing with type array | string