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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Rule with provided identifier could not be found in the ruleset. |
Code | METADATA_V202 |
Type | Validation |
Rule System | Semantic |
Broad Category | Validation Configuration |
Tags | metadata 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
- https://docs.apimatic.io/rulesets/overview/#ruleset-configuration-object
- https://docs.apimatic.io/rulesets/overview/#ruleset-rules-configuration-object
- https://docs.apimatic.io/rulesets/overview/#validation-configuration-object
- https://docs.apimatic.io/rulesets/overview/#configuring-validation
- https://docs.apimatic.io/manage-apis/apimatic-metadata
- https://docs.apimatic.io/rulesets/overview/