ESDEV-2156 Create metadata validator

interface class name changed to be more generic