Adding JSON schema support to models.