Validate entity

Validates that a passed-in entity has no errors in its schema. This can be used to check entity definitions before registering them.