[Validator] [Deprecated] add a deprecation note about ElementMetadata #12682

fix cs