required-authorization-type
Overview
This rule belongs to the swagger-v1-validation ruleset and states that:
The Authorization Object must specify the type of the authorization scheme using the type property.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Required property type in Authorization Object is missing. |
| Code | SWAGGER1_V400 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Authorizations |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | swagger1 swagger semantic validation type authorization |
Suggested Fixes
- Add missing
typeproperty in the Authorization Object. - Make sure that the
typeproperty is not null or empty. - Valid values for
typeinclude the following:basicAuth,apiKey,oauth2.