required-security-scheme-type
Overview
This rule belongs to the swagger-v2-standards-validation ruleset and states that:
The Security Scheme Object must specify the type of the security scheme using the type property.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Required property type in Security Scheme Object is missing. |
| Code | SWAGGER20STANDARDS_V371 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Security Schemes |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | swagger2 swagger standards semantic validation type security scheme security |
Suggested Fixes
- Add missing
typeproperty in the Security Scheme Object. - Make sure that the
typeproperty is not null or empty.