[Validator] add getConstraints to MetadataInterface