Skip to main content

security-options-meta-count-matches-security-items-count

Overview

This rule belongs to the swagger-v2-apimatic-linting ruleset and states that:

You can extend the security information you apply globally or at operation level by using the x-security-options-meta extension. It can help you provide more details for each of the security options available. However, the number of items inside the x-security-options-meta extension must match the number of items inside the security list.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageNumber of items inside the x-security-options-meta extension do not match the number of items in the security list.
CodeSWAGGER20APIMATIC_L001
TypeLinting
Rule SystemSemantic
Broad CategorySecurity
Products ImpactedCode Generation, Developer Experience Portal
Tagsswagger2 swagger apimatic semantic linting count metadata security

Suggested Fixes

  • Ensure that a metadata object has been added in the x-security-options-meta extension corresponding to each security item.
  • Ensure that the count of x-security-options-meta and security lists match exactly.

For More Information