Skip to main content

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

Overview

This rule belongs to the openapi-v3-codegen-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. If that is not the case, the extension data will be ignored automatically during import/transformations in APIMatic.

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.
CodeOPENAPI3CODEGEN_L783
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Security Requirements
Products ImpactedCode Generation, Developer Experience Portal
Tagscode generation sdks openapi3 openapi semantic linting apimatic 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