Skip to main content

at-least-one-item

Overview

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

The root items of a Postman Collection (v2.0 and above) specified using item property must be a non-empty list of item definitions (HTTP request item or item group).

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageCollection items list is empty.
CodePOSTMAN_V201
TypeValidation
Rule SystemSemantic
Broad CategoryItems
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagspostman api semantic validation item items collection

Suggested Fixes

  • Ensure that the item property is not set as null or an empty array.
  • Ensure that the item property contains at least one item definition e.g. a HTTP request item definition or a item group (folder) definition.
  • Define a request in your Postman application and save it in your collection, export the collection and then try again using it.

For More Information