required-collection-items
Overview
This rule belongs to the postman-validation ruleset and states that:
The root object of a Postman Collection (v2.0 and above) must contain request or request folder definitions using the root item property.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Required property item in root object is missing. |
| Code | POSTMAN_V200 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Items |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | postman api semantic validation items collection |
Suggested Fixes
- Add missing
itemproperty in the root object. - Make sure that the
itemproperty value is not null. - Try importing your Postman Collection into the Postman app, save and export it and then try again.
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://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/