non-empty-security-scheme-component-key
Overview
This rule belongs to the openapi-v3-apimatic-linting
ruleset and states that:
When a security scheme is defined in the components object, the key specified for it must be non-empty.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | The security scheme key defined in components object is empty. |
Code | OPENAPI3APIMATIC_L153 |
Type | Linting |
Rule System | Semantic |
Broad Category | OpenAPI Components |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | openapi3 openapi apimatic semantic linting component security scheme empty |
Suggested Fixes
- Make sure that the security scheme key defined in the components object is non-empty.
- Remove all the security schemes from components object where the security scheme key is empty or assign a valid alphanumeric value to it.