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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Collection contains no requests. |
Code | POSTMAN_V351 |
Type | Validation |
Rule System | Semantic |
Broad Category | Requests |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | postman 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
- https://learning.postman.com/docs/sending-requests/requests/
- https://learning.postman.com/collection-format/getting-started/structure-of-a-collection/#item
- https://learning.postman.com/collection-format/getting-started/structure-of-a-collection/#item-groups
- https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html
- https://schema.postman.com/collection/json/v2.1.0/draft-07/collection.json
- https://schema.postman.com/collection/json/v2.0.0/draft-07/docs/index.html
- https://schema.postman.com/collection/json/v2.0.0/draft-07/collection.json
- https://schema.postman.com/collection/json/v1.0.0/draft-07/docs/index.html
- https://schema.postman.com/collection/json/v1.0.0/draft-07/collection.json
- https://learning.postman.com/docs/introduction/overview/
- https://docs.apimatic.io/rulesets/overview/