Skip to content

Commit 4ddf738

Browse files
authored
Fix $schema property not allowed warning (#498)
1 parent f465850 commit 4ddf738

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

schemas/v1.0/crudapiplugin.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "API definition for use with the CRUD API Dev Proxy plugin",
55
"type": "object",
66
"properties": {
7+
"$schema": {
8+
"type":"string"
9+
},
710
"baseUrl": {
811
"type": "string"
912
},

schemas/v1.0/genericrandomerrorplugin.schema.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Mocks for the Dev Proxy GenericRandomErrorPlugin",
55
"type": "object",
66
"properties": {
7+
"$schema": {
8+
"type":"string"
9+
},
710
"responses": {
811
"type": "array",
912
"items": {
@@ -46,5 +49,6 @@
4649
},
4750
"required": [
4851
"responses"
49-
]
52+
],
53+
"additionalProperties": false
5054
}

schemas/v1.0/mockresponseplugin.schema.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Mocks for the Dev Proxy MockResponsePlugin",
55
"type": "object",
66
"properties": {
7+
"$schema": {
8+
"type":"string"
9+
},
710
"mocks": {
811
"type": "array",
912
"items": {
@@ -76,5 +79,6 @@
7679
},
7780
"required": [
7881
"mocks"
79-
]
82+
],
83+
"additionalProperties": false
8084
}

schemas/v1.0/ratelimitingplugin.schema.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Mock for the Dev Proxy RateLimitingPlugin",
55
"type": "object",
66
"properties": {
7+
"$schema": {
8+
"type":"string"
9+
},
710
"body": {
811
"type": [
912
"object",
@@ -31,5 +34,6 @@
3134
]
3235
}
3336
}
34-
}
37+
},
38+
"additionalProperties": false
3539
}

schemas/v1.0/rc.schema.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Configuration for Dev Proxy",
55
"type": "object",
66
"properties": {
7+
"$schema": {
8+
"type":"string"
9+
},
710
"ipAddress": {
811
"type": "string",
912
"format": "ipv4"
@@ -89,8 +92,8 @@
8992
}
9093
}
9194
},
92-
"additionalProperties": true,
9395
"required": [
9496
"plugins"
95-
]
97+
],
98+
"additionalProperties": false
9699
}

0 commit comments

Comments
 (0)