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
type
property in the Authorization Object. - Make sure that the
type
property is not null or empty. - Valid values for
type
include the following:basicAuth
,apiKey
,oauth2
.