required-request-server-base-url
Overview
This rule belongs to the har-validation ruleset and states that:
The url defined in a HAR entry request must be non-empty and an absolute path. This is essential for determining the base URLs of one or more servers that serve the current API. If a base URL cannot be determined, a default dummy value for base URL will be assumed automatically during import/transformations in APIMatic.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Server base URL could not be determined from request section of any of the entries. |
| Code | HAR_V100 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Requests |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | har api semantic validation base url url server request |
Suggested Fixes
- Ensure that the
urlproperty inrequestobject of all entries is non-empty. - Ensure that the
urlproperty inrequestobject of all entries is an absolute URL path that begins withhttporhttps.