required-request-name
Overview
This rule belongs to the postman-validation
ruleset and states that:
When defining a request item, a user-friendly name for it must be provided using the name
property. This can be set while defining the request in the Postman application. If a name is unavailable a default value will be assumed automatically during import/transformations in APIMatic.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Request has an empty/missing name. |
Code | POSTMAN_V352 |
Type | Validation |
Rule System | Semantic |
Broad Category | Requests |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | postman api semantic validation name request item collection |
Suggested Fixes
- If you are using Postman v1.0, ensure that all request entries in the
requests
list has aname
set with a non-emtpy value. - If you are using Postman v2.0 or above, ensure that all items in the
item
property which are not item groups/folders has a non-emptyname
set. - Create the request in the Postman application again with a user-friendly name, save and export your collection and then try again.
- Rename the request 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/docs/sending-requests/requests/
- https://learning.postman.com/collection-format/getting-started/structure-of-a-collection/#item
- 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/