convert function on validate to ValidatorDef, https://github.com/phetsims/scenery/issues/964
convert function on validate to ValidatorDef, https://github.com/phetsims/scenery/issues/964

phetsims/scenery,phetsims/scenery,phetsims/scenery