required-request-header-name
Overview
This rule belongs to the har-validation ruleset and states that:
When a request header is defined in the headers list, a non-empty non-null name must be specified for it using the name property.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Request header name is empty or missing. |
| Code | HAR_V300 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Request Parameters |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | har api semantic validation name header request |
Suggested Fixes
- Ensure that all headers defined in the request
headerslist have anameproperty. - Ensure that the
nameproperty exists in the header object. - Ensure that the value of
nameproperty is not empty or set as null.