From 9b2865663a7266a2d38ebbbe03c1ca54d94aae6f Mon Sep 17 00:00:00 2001 From: Garry Trinder Date: Tue, 26 Nov 2024 16:39:52 +0000 Subject: [PATCH] Update snippets to use v0.23.0 schema. Closes #152 --- CHANGELOG.md | 4 ++++ src/snippets.json | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 373f478..003e5d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Snippets: `devproxy-plugin-rewrite` - RewritePlugin instance - Snippets: `devproxy-plugin-rewrite-config` - RewritePlugin config section +### Changed: + +- Snippets: All snippets that reference schemas updated to use `v0.23.0` schema + ## [0.12.0] - 2024-10-31 > **Note**: `0.11.x` pre-releases are not included in this changelog. They were used to test the new features and fixes before the final release. diff --git a/src/snippets.json b/src/snippets.json index 301409d..93b8a70 100644 --- a/src/snippets.json +++ b/src/snippets.json @@ -3,7 +3,7 @@ "prefix": "devproxy-config-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.22.0/rc.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.23.0/rc.schema.json\",", "\t\"plugins\": [", "\t\t$1", "\t],", @@ -20,7 +20,7 @@ "ConfigFileSchema": { "prefix": "devproxy-config-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.22.0/rc.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.23.0/rc.schema.json\"," ], "description": "Dev Proxy config file schema" }, @@ -42,7 +42,7 @@ "prefix": "devproxy-mocks-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.22.0/mockresponseplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.23.0/mockresponseplugin.schema.json\",", "\t\"mocks\": [", "\t\t$1", "\t]", @@ -53,7 +53,7 @@ "MocksFileSchema": { "prefix": "devproxy-mocks-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.22.0/mockresponseplugin.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.23.0/mockresponseplugin.schema.json\"," ], "description": "Dev Proxy mocks file schema" }, @@ -295,7 +295,7 @@ "prefix": "devproxy-plugin-crud-api-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.22.0/crudapiplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.23.0/crudapiplugin.schema.json\",", "\t\"actions\": [", "\t\t$1", "\t],", @@ -308,7 +308,7 @@ "CrudApiPluginFileSchema": { "prefix": "devproxy-plugin-crud-api-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.22.0/crudapiplugin.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.23.0/crudapiplugin.schema.json\"," ], "description": "CrudApiPlugin API file schema" }, @@ -412,7 +412,7 @@ "prefix": "devproxy-plugin-generic-random-error-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.22.0/genericrandomerrorplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.23.0/genericrandomerrorplugin.schema.json\",", "\t\"errors\": [", "\t\t$1", "\t]", @@ -423,7 +423,7 @@ "GenericRandomErrorPluginFileSchema": { "prefix": "devproxy-plugin-generic-random-error-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.22.0/genericrandomerrorplugin.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.23.0/genericrandomerrorplugin.schema.json\"," ], "description": "GenericRandomErrorPlugin errors file schema" }, @@ -733,7 +733,7 @@ "MockResponsePluginFileSchema": { "prefix": "devproxy-plugin-mock-response-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.22.0/mockresponseplugin.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.23.0/mockresponseplugin.schema.json\"," ], "description": "MockResponsePlugin schema" }, @@ -818,7 +818,7 @@ "prefix": "devproxy-plugin-rate-limiting-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.22.0/ratelimitingplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.23.0/ratelimitingplugin.schema.json\",", "\t\"body\": {", "\t\t$1", "\t},", @@ -833,7 +833,7 @@ "RateLimitingFileSchema": { "prefix": "devproxy-plugin-rate-limiting-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.22.0/ratelimitingplugin.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.23.0/ratelimitingplugin.schema.json\"," ], "description": "Dev Proxy rate limiting file schema" },