Skip to main content

at-least-one-request

Overview

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

A collection must define one or more requests. For Postman v1.0, the request definitions must be added in the root level requests property whereas for Postman v2.0 or above, requests can be defined by adding one or more request items in either the root level item list directly or within another item group's/folder's item list.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageCollection contains no requests.
CodePOSTMAN_V351
TypeValidation
Rule SystemSemantic
Broad CategoryRequests
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagspostman api semantic validation request item collection

Suggested Fixes

  • If you are using Postman v1.0, ensure that root level requests property value is not empty/null and contains at least one request definition.
  • If you are using Postman v2.0 or above, ensure that either the root level or the item group level item property is not empty/null and contains at least one request item definition.
  • Create a request within your collection in the Postman application by selecting Add Request option from the menu, save and export your collection and then try again.

For More Information