Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequest has an empty/missing name.
CodePOSTMAN_V352
TypeValidation
Rule SystemSemantic
Broad CategoryRequests
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagspostman 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 a name 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-empty name 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