Validate a plugin's schema and user data; populate the composite data.
The plugin being validated. Its composite data will be
populated by reference.
Optionalpopulate: booleanWhether plugin data should be populated, defaults to
true.
A list of errors if either the schema or data fail to validate or
null if there are no errors.
An implementation of a schema validator.