Skip to content

Commit 5001dd5

Browse files
authored
Adds blockUnmockedRequests property of mock response plugin config schema (#1166)
* Adds blockUnmockedRequests property of mock response plugin configuration schema * Adds blockUnmockedRequests property of mock response plugin configuration schema v0.25-0.26
1 parent f61443e commit 5001dd5

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

schemas/v0.25.0/mockresponseplugin.schema.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
"type": "object",
55
"properties": {
66
"$schema": {
7-
"type": "string"
7+
"type": "string",
8+
"description": "The JSON schema reference for validation."
89
},
910
"mocksFile": {
10-
"type": "string"
11+
"type": "string",
12+
"description": "Path to the file containing the mock responses."
13+
},
14+
"blockUnmockedRequests": {
15+
"type": "boolean",
16+
"description": "Set to true to return 502 Bad Gateway response for requests that aren't mocked. Default is false."
1117
}
1218
},
1319
"required": [

schemas/v0.26.0/mockresponseplugin.schema.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
"type": "object",
55
"properties": {
66
"$schema": {
7-
"type": "string"
7+
"type": "string",
8+
"description": "The JSON schema reference for validation."
89
},
910
"mocksFile": {
10-
"type": "string"
11+
"type": "string",
12+
"description": "Path to the file containing the mock responses."
13+
},
14+
"blockUnmockedRequests": {
15+
"type": "boolean",
16+
"description": "Set to true to return 502 Bad Gateway response for requests that aren't mocked. Default is false."
1117
}
1218
},
1319
"required": [

schemas/v0.27.0/mockresponseplugin.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"mocksFile": {
1111
"type": "string",
1212
"description": "Path to the file containing the mock responses."
13+
},
14+
"blockUnmockedRequests": {
15+
"type": "boolean",
16+
"description": "Set to true to return 502 Bad Gateway response for requests that aren't mocked. Default is false."
1317
}
1418
},
1519
"required": [

0 commit comments

Comments
 (0)