Let's say that I have an API that spits out user data. For instance:
/api/v1/user/get/5
{
"5": {
"id": "5",
"name": "Ben",
"city": "Indianapolis",
"state": "Indiana",
"created_at": "1361835599",
"updated_at": "1362607828",
"deleted_at": null
}
}
I already have a data model (which extends \Orm\Model) with validation rules. Is it possible to use the validate() method from my model without passing all required fields back to it? That is, if I am only updating the user "city", is there any way to pass only:
{
"id":5,
"city":"Bloomington"
}
to my data model for validation? Or would I have to create a new validation method?