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).
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Warning |
| Message | Collection items list is empty. |
| Code | POSTMAN_V201 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Items |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | postman api semantic validation item items collection |
Suggested Fixes
- Ensure that the
itemproperty is not set as null or an empty array. - Ensure that the
itemproperty 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
- 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://learning.postman.com/docs/sending-requests/requests/
- 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://learning.postman.com/docs/introduction/overview/
- https://docs.apimatic.io/rulesets/overview/