Adds validator class.
Implements data validation in ApiObject class.
Defines media object validators.