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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Required property value in header definition is empty/missing. |
Code | POSTMAN_V355 |
Type | Validation |
Rule System | Semantic |
Broad Category | Requests |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | postman 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 theContent-Type
header. - Add missing
value
property in the header definition object of the requestheader
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
- https://learning.postman.com/collection-format/getting-started/structure-of-a-collection/#request
- https://learning.postman.com/collection-format/getting-started/structure-of-a-collection/#item
- https://learning.postman.com/docs/sending-requests/requests/
- 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/