Skip to main content

required-resource-listing-apis

Overview

This rule belongs to the swagger-v1-validation ruleset and states that:

The root object of a Swagger v1 Resource Listing document must list the resources to be described by this specification using the apis property.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired property apis in root object of Resource Listing document is missing.
CodeSWAGGER1_V050
TypeValidation
Rule SystemSemantic
Broad CategoryResource Listing
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger1 swagger semantic validation apis resources resource listing

Suggested Fixes

  • Add missing apis property in the root object i.e. in the top level properties of the document.
  • Make sure that the apis property is a valid list and not set as null.

For More Information