This rule belongs to the
openapi-v3-apimatic-linting ruleset and states that:
Each security requirement object represents a unique combination of security schemes that need to be satisfied for an API operation. The security list should not contain duplicate security requirement objects.
|Message||Duplicate security requirement object found within the security list.|
|Broad Category||OpenAPI Security Requirements|
|Products Impacted||API Transformer, Code Generation, Developer Experience Portal|
- Ensure that an item in
securitylist is not equal to another item in the same list.This requires comparison of security requirement objects within the list.
x-security-options-metais used, make sure that you assign unique names to all the duplicate security items in security options metadata extension to avoid this issue.
- Names are compared in a case-sensitive manner.