Skip to main content

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.

PropertyValue
EnabledYes
SeverityError
MessageKey provided for the ruleset does not match id/code of any supported ruleset.
CodeMETADATA_V200
TypeValidation
Rule SystemSemantic
Broad CategoryValidation Configuration
Tagsmetadata 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.

For More Information