ESDEV-2156 Create metadata validator

validate method added