Environments

Configured environments that generated clients cannot use as base URLs.

Rule Default Summary
Environment/InvalidURL warn A configured environment value is not an absolute URL.

Environment/InvalidURL

A configured environment value is not an absolute URL.

Default severity Fix lives in
warn Your SDK configuration or API description (document)

When it fires

An environments value is not an absolute URL. Generated clients use environments as base URLs, so a relative value produces an SDK that cannot send a request without a manual override. Set an absolute URL in environments. If the environment was generated from a server in your API description, you can also fix the server URL there and regenerate the SDK configuration.

Changing or silencing it

Each finding's suppression key is the environment name.

Re-grade the rule with diagnostics.rules, or silence findings with diagnostics.ignored, matching their suppression key exactly or with * as a wildcard:

{
  "diagnostics": {
    "rules": {
      "Environment/InvalidURL": "info"
    },
    "ignored": {
      "Environment/InvalidURL": "<suppression key>"
    }
  }
}

See also

What did you think of this content?