Skip to content

[BUG]: Dev Proxy should start when plugins provide their own urlsToWatch and there are no global urlsToWatch #1180

@garrytrinder

Description

@garrytrinder

Description

You can use urlsToWatch property array on plugin definitions to determine the URLs that it should look out for. When plugins provide there own urlsToWatch there is no need to provide global urlsToWatch.

Expected behaviour

Dev Proxy should start without error

Actual behaviour

Image

Steps to reproduce

  1. Create config file using config provided
  2. Run Dev Proxy

Dev Proxy Version

0.27.0

Operating system (environment)

Windows

Shell

zsh

Configuration file

{
  "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/rc.schema.json",
  "plugins": [
    {
      "name": "CrudApiPlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
      "configSection": "feedbackApi",
      "urlsToWatch": [
        "https://api.ecs.eu/feedback"
      ]
    },
    {
      "name": "OpenAIMockResponsePlugin",
      "enabled": true,
      "pluginPath": "~appFolder/plugins/dev-proxy-plugins.dll",
      "urlsToWatch": [
        "https://*.openai.azure.com/openai/deployments/*/chat/completions*"
      ]
    }
  ],
  "languageModel": {
    "enabled": true,
    "model": "llama3.2"
  },
  "feedbackApi": {
    "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/crudapiplugin.schema.json",
    "apiFile": "feedbackApi.json"
  },
  "logLevel": "information",
  "newVersionNotification": "stable",
  "showSkipMessages": true
}

Additional Info

No response

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions