minor adjustment to previous commit to make sure schema type == 'array'