Add error class/handling/specs on invalid metadata