Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequest header name is empty or missing.
CodeHAR_V300
TypeValidation
Rule SystemSemantic
Broad CategoryRequest Parameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagshar api semantic validation name header request

Suggested Fixes

  • Ensure that all headers defined in the request headers list have a name property.
  • Ensure that the name property exists in the header object.
  • Ensure that the value of name property is not empty or set as null.

For More Information