exposed json validator attribute on models.