Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageServer base URL could not be determined from request section of any of the entries.
CodeHAR_V100
TypeValidation
Rule SystemSemantic
Broad CategoryRequests
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagshar api semantic validation base url url server request

Suggested Fixes

  • Ensure that the url property in request object of all entries is non-empty.
  • Ensure that the url property in request object of all entries is an absolute URL path that begins with http or https.

For More Information