Skip to content

[BUG]: Add blockUnmockedRequests property of mock response plugin configuration schema #1165

@bartizan

Description

@bartizan

Description

In code and documentation, there is the property blockUnmockedRequests that is not included into MockResponsePlugin configuration schema yet.
Nonetheless the blockUnmockedRequests setting can be used and works as documented.

Expected behaviour

no error in the devproxy console logs

Actual behaviour

there is a failure in console (but behaviour is not affected)

MockResponsePlugin: Plugin configuration validation failed with the following errors: Property 'blockUnmockedRequests' has not been defined and the schema does not allow additional properties. Path 'blockUnmockedRequests', line 4, position 28.

Steps to reproduce

use blockUnmockedRequests in configuration

Dev Proxy Version

0.27.0

Operating system (environment)

Windows

Shell

PowerShell

Configuration file

devproxyrc.json

...
  "mockResponsePlugin": {
    "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/mockresponseplugin.schema.json",
    "mocksFile": "mocks.json",
    "blockUnmockedRequests": true
  },
...

Additional Info

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions