required-folder-name
Overview
This rule belongs to the postman-validation
ruleset and states that:
When defining a folder or an item group, a user-friendly name for it must be provided using the name
property. This can be set while defining the folder in the Postman application.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Folder has an empty/missing name. |
Code | POSTMAN_V252 |
Type | Validation |
Rule System | Semantic |
Broad Category | Folders |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | postman api semantic validation name folder item group collection |
Suggested Fixes
- If you are using Postman v1.0, ensure that all folder entries in the
folders
list has aname
set with a non-emtpy value. - If you are using Postman v2.0 or above, ensure that all item groups/folders in the
item
property has a non-emptyname
set. - Create the folder in the Postman application again with a user-friendly name, save and export your collection and then try again.
- Rename the folder in the Postman application, assign it a user-friendly name, save and export your collection and then try again.
For More Information
- 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/