schemaDef must return an Array (json_decode returns an objet by default)