Skip to main content



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.

Maximum SeverityWarning
MessageNumber of items inside the x-security-options-meta extension do not match the number of items in the security list.
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