Fixes deprecation warning

Validation::as_array has been deprecated in favour of Validation::data