pub fn validate(source: &str) -> ValidationResult
Convenience function to validate source and return errors.