Once the metadata records are in the OpenGeoMetadata format, they should be validated to make sure the fields are correctly formatted. The current version of the schema is available as a JSON-Schema file. This file format provides support for data validation with the JSON Schema Vocabulary.
Use GeoCombine, which has a .valid? method that makes using these tools simple.