valid-ruleset-id-or-code
Overview
This rule belongs to the metadata-validation
ruleset and states that:
When configuring validation rulesets, the unique key provided for a ruleset in the Rulesets
map must match with either the Id
or Code
of a pre-existing ruleset of APIMatic.
Property | Value |
---|---|
Enabled | Yes |
Severity | Error |
Message | Key provided for the ruleset does not match id/code of any supported ruleset. |
Code | METADATA_V200 |
Type | Validation |
Rule System | Semantic |
Broad Category | Validation Configuration |
Tags | metadata api specification api file validation id code key ruleset configuration |
Suggested Fixes
- Ruleset key is compared in a case-sensitive manner.
- Ensure that the key you have provided does not have any typos.
- Ensure that the key provided matches with either the ruleset's code or id.