Ruby library to validate hashes (Hash) against user-defined requirements