Metadata validation metaclass