Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired property type in Authorization Object is missing.
CodeSWAGGER1_V400
TypeValidation
Rule SystemSemantic
Broad CategoryAuthorizations
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger1 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.

For More Information