Skip to main content

required-request-header-value

Overview

This rule belongs to the postman-validation ruleset and states that:

When defining request headers, a non-empty input value must be provided for each header using the value property.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired property value in header definition is empty/missing.
CodePOSTMAN_V355
TypeValidation
Rule SystemSemantic
Broad CategoryRequests
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagspostman api semantic validation value header request item collection

Suggested Fixes

  • The value property represents the input value that will be sent in the request for the particular header e.g. application/json could be a valid value for the Content-Type header.
  • Add missing value property in the header definition object of the request header list.
  • Make sure that the value property value is not empty or null.
  • In the Postman application, navigate to the Headers section of your request and remove/disable all entries where VALUE is set as an empty value, save and export your collection and then try again.

For More Information