[Validator] Fixed object initializers in 2.5 version of the Validator