Skip to main content

absolute-request-url-path

Overview

This rule belongs to the insomnia-validation ruleset and states that:

The url defined in an Insomnia request resource must be non-empty and an absolute path. Relative paths are not allowed. This is essential for determining the base URLs of one or more servers that serve the current API.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequest URL is not a valid absolute path.
CodeINSOMNIA_V200
TypeValidation
Rule SystemSemantic
Broad CategoryRequests
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsinsomnia semantic validation url server request

Suggested Fixes

  • In your Insomnia application, ensure that the request URL input field (next to the HTTP method e.g. GET) has a valid absolute URL set in it. Save your file and export it again.
  • Ensure that the url property in all resources of type request in the Insomnia Export file is non-empty.
  • Ensure that the url property in all resources of type request in the Insomnia Export file is an absolute URL path that begins with http or https.

For More Information