From 0b71bc7e7984e6bc5f91cb440e1256fd84b80da0 Mon Sep 17 00:00:00 2001 From: Garry Trinder Date: Wed, 17 Jan 2024 13:21:31 +0000 Subject: [PATCH] Fix $schema property not allowed warning --- schemas/v1.0/crudapiplugin.schema.json | 3 +++ schemas/v1.0/genericrandomerrorplugin.schema.json | 6 +++++- schemas/v1.0/mockresponseplugin.schema.json | 6 +++++- schemas/v1.0/ratelimitingplugin.schema.json | 6 +++++- schemas/v1.0/rc.schema.json | 7 +++++-- 5 files changed, 23 insertions(+), 5 deletions(-) diff --git a/schemas/v1.0/crudapiplugin.schema.json b/schemas/v1.0/crudapiplugin.schema.json index 7140c9ff..81490a3a 100644 --- a/schemas/v1.0/crudapiplugin.schema.json +++ b/schemas/v1.0/crudapiplugin.schema.json @@ -4,6 +4,9 @@ "description": "API definition for use with the CRUD API Dev Proxy plugin", "type": "object", "properties": { + "$schema": { + "type":"string" + }, "baseUrl": { "type": "string" }, diff --git a/schemas/v1.0/genericrandomerrorplugin.schema.json b/schemas/v1.0/genericrandomerrorplugin.schema.json index 037b3927..7a199bfb 100644 --- a/schemas/v1.0/genericrandomerrorplugin.schema.json +++ b/schemas/v1.0/genericrandomerrorplugin.schema.json @@ -4,6 +4,9 @@ "description": "Mocks for the Dev Proxy GenericRandomErrorPlugin", "type": "object", "properties": { + "$schema": { + "type":"string" + }, "responses": { "type": "array", "items": { @@ -46,5 +49,6 @@ }, "required": [ "responses" - ] + ], + "additionalProperties": false } \ No newline at end of file diff --git a/schemas/v1.0/mockresponseplugin.schema.json b/schemas/v1.0/mockresponseplugin.schema.json index cb323404..49212055 100644 --- a/schemas/v1.0/mockresponseplugin.schema.json +++ b/schemas/v1.0/mockresponseplugin.schema.json @@ -4,6 +4,9 @@ "description": "Mocks for the Dev Proxy MockResponsePlugin", "type": "object", "properties": { + "$schema": { + "type":"string" + }, "mocks": { "type": "array", "items": { @@ -76,5 +79,6 @@ }, "required": [ "mocks" - ] + ], + "additionalProperties": false } \ No newline at end of file diff --git a/schemas/v1.0/ratelimitingplugin.schema.json b/schemas/v1.0/ratelimitingplugin.schema.json index c30c63e6..1d5c1f56 100644 --- a/schemas/v1.0/ratelimitingplugin.schema.json +++ b/schemas/v1.0/ratelimitingplugin.schema.json @@ -4,6 +4,9 @@ "description": "Mock for the Dev Proxy RateLimitingPlugin", "type": "object", "properties": { + "$schema": { + "type":"string" + }, "body": { "type": [ "object", @@ -31,5 +34,6 @@ ] } } - } + }, + "additionalProperties": false } \ No newline at end of file diff --git a/schemas/v1.0/rc.schema.json b/schemas/v1.0/rc.schema.json index 1f811332..4955b984 100644 --- a/schemas/v1.0/rc.schema.json +++ b/schemas/v1.0/rc.schema.json @@ -4,6 +4,9 @@ "description": "Configuration for Dev Proxy", "type": "object", "properties": { + "$schema": { + "type":"string" + }, "ipAddress": { "type": "string", "format": "ipv4" @@ -89,8 +92,8 @@ } } }, - "additionalProperties": true, "required": [ "plugins" - ] + ], + "additionalProperties": false } \ No newline at end of file