Skip to main content

required-items-type

Overview

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

The Items Object must specify the type of the array using the type property.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired property type in Items Object is missing.
CodeSWAGGER20STANDARDS_V150
TypeValidation
Rule SystemSemantic
Broad CategoryArray Items
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation type items object items

Suggested Fixes

  • Add missing type property in the Items Object.
  • Make sure that the type property is not null or empty.

For More Information