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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Request URL is not a valid absolute path. |
Code | INSOMNIA_V200 |
Type | Validation |
Rule System | Semantic |
Broad Category | Requests |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | insomnia 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 typerequest
in the Insomnia Export file is non-empty. - Ensure that the
url
property in all resources of typerequest
in the Insomnia Export file is an absolute URL path that begins withhttp
orhttps
.