def validate(self, messages):
messages = self.validate_version(messages)<EOL>messages = self.validate_data_lics(messages)<EOL>messages = self.validate_name(messages)<EOL>messages = self.validate_spdx_id(messages)<EOL>messages = self.validate_namespace(messages)<EOL>messages = self.validate_ext_document_references(messages)<EOL>messages = self.validate_creation_info(messages)<EOL>messages = self.validate_package(messages)<EOL>messages = self.validate_extracted_licenses(messages)<EOL>messages = self.validate_reviews(messages)<EOL>return messages<EOL>
Validate all fields of the document and update the
messages list with user friendly error messages for display.