required-request-post-data-parameter-name
Overview
This rule belongs to the har-validation ruleset and states that:
When a request postData is defined with params, a non-empty non-null name must be specified for each parameter using the name property.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Request post data parameter name is empty or missing. |
| Code | HAR_V302 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Request Parameters |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | har api semantic validation name params post data request |
Suggested Fixes
- Ensure that all parameters defined in the request
postDataparamslist have anameproperty. - Ensure that the
nameproperty exists in the params object. - Ensure that the value of
nameproperty is not empty or set as null.
For More Information
- http://www.softwareishard.com/blog/har-12-spec/#params
- http://www.softwareishard.com/blog/har-12-spec/#postData
- http://www.softwareishard.com/blog/har-12-spec/#request
- http://www.softwareishard.com/blog/har-12-spec/
- https://github.com/ahmadnassri/har-spec/blob/master/versions/1.2.md
- https://docs.apimatic.io/rulesets/overview/