Skip to main content

valid-rule-id-or-code

Overview

This rule belongs to the metadata-validation ruleset and states that:

When configuring rules of a ruleset, the rule identifier provided must match with either the Id or Code of a pre-existing rule in the ruleset.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRule with provided identifier could not be found in the ruleset.
CodeMETADATA_V202
TypeValidation
Rule SystemSemantic
Broad CategoryValidation Configuration
Tagsmetadata api specification api file validation id code rule ruleset configuration

Suggested Fixes

  • Rule identifier is compared in a case-sensitive manner.
  • Ensure that the rule identifier you have provided does not have any typos.
  • Ensure that the identifier provided matches with either the rule's code or id.
  • Ensure the rule you are trying to configure does indeed exist in the current ruleset.

For More Information