From 685472ca6e63249ffff660e85943479366110b05 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 3 Jul 2025 08:30:21 +0000 Subject: [PATCH 1/3] Initial plan From c78b83533741811dca11adc457cffc421884f44a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 3 Jul 2025 08:35:41 +0000 Subject: [PATCH 2/3] Update all snippets to v1.0.0 schemas Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com> --- CHANGELOG.md | 4 + src/snippets.json | 82 +++++++++---------- .../config-incorrect-schema-with-plugins.json | 2 +- .../examples/config-incorrect-schema.json | 2 +- ...config-plugin-config-missing-disabled.json | 2 +- .../config-plugin-config-missing.json | 2 +- ...onfig-plugin-config-required-disabled.json | 2 +- .../config-plugin-config-required.json | 2 +- .../examples/config-plugins-codelens.json | 2 +- src/test/examples/config-schema-mismatch.json | 2 +- src/test/examples/config-schema-version.json | 2 +- src/test/examples/config-schema.json | 2 +- .../config-urls-to-watch-required.json | 2 +- src/test/examples/devproxyrc.json | 2 +- src/test/examples/mock-schema.json | 2 +- 15 files changed, 58 insertions(+), 54 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d56aef6..338751b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.0.0] - Unreleased +### Changed: + +- Snippets: All snippets that reference schemas updated to use `v1.0.0` schema + ## [0.27.0] - 2025-06-30 ### Added: diff --git a/src/snippets.json b/src/snippets.json index f36542f..fec45e1 100644 --- a/src/snippets.json +++ b/src/snippets.json @@ -3,7 +3,7 @@ "prefix": "devproxy-config-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/rc.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.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/dotnet/dev-proxy/main/schemas/v0.29.2/rc.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.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/dotnet/dev-proxy/main/schemas/v0.29.2/mockresponseplugin.mocksfile.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.mocksfile.schema.json\",", "\t\"mocks\": [", "\t\t$1", "\t]", @@ -53,7 +53,7 @@ "MocksFileSchema": { "prefix": "devproxy-mocks-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/mockresponseplugin.mocksfile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.mocksfile.schema.json\"," ], "description": "Dev Proxy mocks file schema" }, @@ -75,7 +75,7 @@ "prefix": "devproxy-prices-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/openaitelemetryplugin.pricesfile.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/openaitelemetryplugin.pricesfile.schema.json\",", "\t\"prices\": {", "\t\t$1", "\t}", @@ -162,7 +162,7 @@ "prefix": "devproxy-plugin-auth-config-apikey", "body": [ "\"auth\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/authplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/authplugin.schema.json\",", "\t\"type\": \"apiKey\",", "\t\"apiKey\": {", "\t\t\"parameters\": [", @@ -187,7 +187,7 @@ "prefix": "devproxy-plugin-auth-config-oauth2", "body": [ "\"auth\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/authplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/authplugin.schema.json\",", "\t\"type\": \"oauth2\",", "\t\"oauth2\": {", "\t\t\"metadataUrl\": \"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration\",", @@ -230,7 +230,7 @@ "prefix": "devproxy-plugin-api-center-minimal-permissions-config", "body": [ "\"apiCenterMinimalPermissionsPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/apicenterminimalpermissionsplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/apicenterminimalpermissionsplugin.schema.json\",", "\t\"subscriptionId\": \"cdae2297-7aa6-4195-bbb1-dcd89153cc72\",", "\t\"resourceGroupName\": \"resource-group-name\",", "\t\"serviceName\": \"apic-instance\",", @@ -255,7 +255,7 @@ "prefix": "devproxy-plugin-api-center-onboarding-config", "body": [ "\"apiCenterOnboardingPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/apicenteronboardingplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/apicenteronboardingplugin.schema.json\",", "\t\"subscriptionId\": \"cdae2297-7aa6-4195-bbb1-dcd89153cc72\",", "\t\"resourceGroupName\": \"resource-group-name\",", "\t\"serviceName\": \"apic-instance\",", @@ -281,7 +281,7 @@ "prefix": "devproxy-plugin-api-center-production-version-config", "body": [ "\"apiCenterProductionVersionPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/apicenterproductionversionplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/apicenterproductionversionplugin.schema.json\",", "\t\"subscriptionId\": \"cdae2297-7aa6-4195-bbb1-dcd89153cc72\",", "\t\"resourceGroupName\": \"resource-group-name\",", "\t\"serviceName\": \"apic-instance\",", @@ -305,7 +305,7 @@ "prefix": "devproxy-plugin-caching-guidance-config", "body": [ "\"cachingGuidance\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/cachingguidanceplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/cachingguidanceplugin.schema.json\",", "\t\"cacheThresholdSeconds\": 5", "}" ], @@ -327,7 +327,7 @@ "prefix": "devproxy-plugin-crud-api-config", "body": [ "\"customersApi\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/crudapiplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/crudapiplugin.schema.json\",", "\t\"apiFile\": \"customers-api.json\"", "}" ], @@ -337,7 +337,7 @@ "prefix": "devproxy-plugin-crud-api-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/crudapiplugin.apifile.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/crudapiplugin.apifile.schema.json\",", "\t\"actions\": [", "\t\t$1", "\t],", @@ -350,7 +350,7 @@ "CrudApiPluginFileSchema": { "prefix": "devproxy-plugin-crud-api-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/crudapiplugin.apifile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/crudapiplugin.apifile.schema.json\"," ], "description": "CrudApiPlugin API file schema" }, @@ -381,7 +381,7 @@ "prefix": "devproxy-plugin-dev-tools-config", "body": [ "\"devTools\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/devtoolsplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/devtoolsplugin.schema.json\",", "\t\"preferredBrowser\": \"Edge\"", "}" ], @@ -403,7 +403,7 @@ "prefix": "devproxy-plugin-entra-mock-response-config", "body": [ "\"entraMockResponsePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/mockresponseplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.schema.json\",", "\t\"mocksFile\": \"mocks.json\"", "}" ], @@ -424,7 +424,7 @@ "prefix": "devproxy-plugin-execution-summary-config", "body": [ "\"executionSummaryPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/executionsummaryplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/executionsummaryplugin.schema.json\",", "\t\"groupBy\": \"url\"", "}" ], @@ -446,7 +446,7 @@ "prefix": "devproxy-plugin-generic-random-error-config", "body": [ "\"genericRandomErrorPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/genericrandomerrorplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/genericrandomerrorplugin.schema.json\",", "\t\"errorsFile\": \"errors.json\",", "\t\"rate\": 50", "}" @@ -457,7 +457,7 @@ "prefix": "devproxy-plugin-generic-random-error-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/genericrandomerrorplugin.errorsfile.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/genericrandomerrorplugin.errorsfile.schema.json\",", "\t\"errors\": [", "\t\t$1", "\t]", @@ -468,7 +468,7 @@ "GenericRandomErrorPluginFileSchema": { "prefix": "devproxy-plugin-generic-random-error-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/genericrandomerrorplugin.errorsfile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/genericrandomerrorplugin.errorsfile.schema.json\"," ], "description": "GenericRandomErrorPlugin errors file schema" }, @@ -525,7 +525,7 @@ "prefix": "devproxy-plugin-graph-minimal-permissions-guidance-config", "body": [ "\"graphMinimalPermissionsGuidancePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/graphminimalpermissionsguidanceplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/graphminimalpermissionsguidanceplugin.schema.json\",", "\t\"permissionsToIgnore\": [", "\t\t\"profile\",", "\t\t\"openid\",", @@ -551,7 +551,7 @@ "prefix": "devproxy-plugin-graph-minimal-permissions-config", "body": [ "\"graphMinimalPermissionsPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/graphmininalpermissionsplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/graphmininalpermissionsplugin.schema.json\",", "\t\"type\": \"delegated\"", "}" ], @@ -583,7 +583,7 @@ "prefix": "devproxy-plugin-graph-mock-response-config", "body": [ "\"graphMockResponsePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/mockresponseplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.schema.json\",", "\t\"mocksFile\": \"mocks.json\"", "}" ], @@ -614,7 +614,7 @@ "prefix": "devproxy-plugin-graph-random-error-config", "body": [ "\"graphRandomErrorPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/graphrandomerrorplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/graphrandomerrorplugin.schema.json\",", "\t\"allowedErrors\": [ 429, 500, 502, 503, 504, 507 ]", "\t\"rate\": 50", "}" @@ -678,7 +678,7 @@ "prefix": "devproxy-plugin-http-file-generator-config", "body": [ "\"httpFileGeneratorPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/httpfilegeneratorplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/httpfilegeneratorplugin.schema.json\",", "\t\"includeOptionsRequests\": false", "}" ], @@ -700,7 +700,7 @@ "prefix": "devproxy-plugin-latency-config", "body": [ "\"latencyPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/latencyplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/latencyplugin.schema.json\",", "\t\"minMs\": 200,", "\t\"maxMs\": 10000", "}" @@ -722,7 +722,7 @@ "prefix": "devproxy-plugin-minimal-csom-permissions-config", "body": [ "\"minimalCsomPermissionsPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/minimalcsompermissionsplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/minimalcsompermissionsplugin.schema.json\",", "\t\"typesFilePath\": \"./api-specs\"", "}" ], @@ -744,7 +744,7 @@ "prefix": "devproxy-plugin-minimal-permissions-config", "body": [ "\"minimalPermissionsPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/minimalpermissionsplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/minimalpermissionsplugin.schema.json\",", "\t\"apiSpecsFolderPath\": \"./api-specs\"", "}" ], @@ -766,7 +766,7 @@ "prefix": "devproxy-plugin-minimal-permissions-guidance-config", "body": [ "\"minimalPermissionsGuidancePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/minimalpermissionsguidanceplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/minimalpermissionsguidanceplugin.schema.json\",", "\t\"apiSpecsFolderPath\": \"./api-specs\"", "}" ], @@ -799,7 +799,7 @@ "prefix": "devproxy-plugin-mock-request-config", "body": [ "\"mockRequestPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/mockrequestplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/mockrequestplugin.schema.json\",", "\t\"mockFile\": \"mock-request.json\"", "}" ], @@ -821,7 +821,7 @@ "prefix": "devproxy-plugin-mock-response-config", "body": [ "\"mockResponsePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/mockresponseplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.schema.json\",", "\t\"mocksFile\": \"mocks.json\"", "}" ], @@ -830,7 +830,7 @@ "MockResponsePluginFileSchema": { "prefix": "devproxy-plugin-mock-response-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/mockresponseplugin.mocksfile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.mocksfile.schema.json\"," ], "description": "MockResponsePlugin schema" }, @@ -893,7 +893,7 @@ "prefix": "devproxy-plugin-openai-telemetry-config", "body": [ "\"openAITelemetryPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/openaitelemetryplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/openaitelemetryplugin.schema.json\",", "\t\"application\": \"My app\",", "\t\"includeCosts\": true,", "\t\"pricesFile\": \"prices.json\"", @@ -916,7 +916,7 @@ "prefix": "devproxy-plugin-open-api-spec-generator-config", "body": [ "\"openApiSpecGeneratorPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/openapispecgeneratorplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/openapispecgeneratorplugin.schema.json\",", "\t\"includeOptionsRequests\": false,", "\t\"specVersion\": \"v3_0\",", "\t\"specFormat\": \"Json\"", @@ -939,7 +939,7 @@ "prefix": "devproxy-plugin-rate-limiting-config", "body": [ "\"rateLimiting\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/ratelimitingplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/ratelimitingplugin.schema.json\",", "\t\"costPerRequest\": 2,", "\t\"rateLimit\": 120,", "\t\"retryAfterSeconds\": 5", @@ -951,7 +951,7 @@ "prefix": "devproxy-plugin-rate-limiting-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/ratelimitingplugin.customresponsefile.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/ratelimitingplugin.customresponsefile.schema.json\",", "\t\"body\": {", "\t\t$1", "\t},", @@ -966,7 +966,7 @@ "RateLimitingFileSchema": { "prefix": "devproxy-plugin-rate-limiting-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/ratelimitingplugin.customresponsefile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/ratelimitingplugin.customresponsefile.schema.json\"," ], "description": "Dev Proxy rate limiting file schema" }, @@ -997,7 +997,7 @@ "prefix": "devproxy-plugin-rewrite-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/rewriteplugin.rewritesfile.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/rewriteplugin.rewritesfile.schema.json\",", "\t\"rewrites\": [", "\t\t$1", "\t]", @@ -1008,7 +1008,7 @@ "RewritePluginFileSchema": { "prefix": "devproxy-plugin-rewrite-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/rewriteplugin.rewritesfile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/rewriteplugin.rewritesfile.schema.json\"," ], "description": "RewritePlugin rewrites file schema" }, @@ -1016,7 +1016,7 @@ "prefix": "devproxy-plugin-rewrite-config", "body": [ "\"rewritePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/rewriteplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/rewriteplugin.schema.json\",", "\t\"rewritesFile\": \"rewrites.json\"", "}" ], @@ -1037,7 +1037,7 @@ "prefix": "devproxy-plugin-typespec-generator-config", "body": [ "\"typeSpecGeneratorPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.2/typespecgeneratorplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/typespecgeneratorplugin.schema.json\",", "\t\"ignoreResponseTypes\": false", "}" ], diff --git a/src/test/examples/config-incorrect-schema-with-plugins.json b/src/test/examples/config-incorrect-schema-with-plugins.json index d41feb5..45e8850 100644 --- a/src/test/examples/config-incorrect-schema-with-plugins.json +++ b/src/test/examples/config-incorrect-schema-with-plugins.json @@ -1,4 +1,4 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/mockresponseplugin.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.schema.json", "plugins": {} } \ No newline at end of file diff --git a/src/test/examples/config-incorrect-schema.json b/src/test/examples/config-incorrect-schema.json index d6d1d12..074bdcb 100644 --- a/src/test/examples/config-incorrect-schema.json +++ b/src/test/examples/config-incorrect-schema.json @@ -1,3 +1,3 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/mockresponseplugin.schema.json" + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.schema.json" } \ No newline at end of file diff --git a/src/test/examples/config-plugin-config-missing-disabled.json b/src/test/examples/config-plugin-config-missing-disabled.json index 21c2c05..aeb3857 100644 --- a/src/test/examples/config-plugin-config-missing-disabled.json +++ b/src/test/examples/config-plugin-config-missing-disabled.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", "plugins": [ { "name": "LatencyPlugin", diff --git a/src/test/examples/config-plugin-config-missing.json b/src/test/examples/config-plugin-config-missing.json index c51f922..8e43357 100644 --- a/src/test/examples/config-plugin-config-missing.json +++ b/src/test/examples/config-plugin-config-missing.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", "plugins": [ { "name": "GenericRandomErrorPlugin", diff --git a/src/test/examples/config-plugin-config-required-disabled.json b/src/test/examples/config-plugin-config-required-disabled.json index a5f120c..12f6a49 100644 --- a/src/test/examples/config-plugin-config-required-disabled.json +++ b/src/test/examples/config-plugin-config-required-disabled.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", "plugins": [ { "name": "LatencyPlugin", diff --git a/src/test/examples/config-plugin-config-required.json b/src/test/examples/config-plugin-config-required.json index 996b0f4..0c1a627 100644 --- a/src/test/examples/config-plugin-config-required.json +++ b/src/test/examples/config-plugin-config-required.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", "plugins": [ { "name": "GenericRandomErrorPlugin", diff --git a/src/test/examples/config-plugins-codelens.json b/src/test/examples/config-plugins-codelens.json index 3b513c0..248583b 100644 --- a/src/test/examples/config-plugins-codelens.json +++ b/src/test/examples/config-plugins-codelens.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.29.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", "plugins": [ { "name": "CachingGuidancePlugin", diff --git a/src/test/examples/config-schema-mismatch.json b/src/test/examples/config-schema-mismatch.json index d7ec73e..7455d92 100644 --- a/src/test/examples/config-schema-mismatch.json +++ b/src/test/examples/config-schema-mismatch.json @@ -1,4 +1,4 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", "plugins": [] } \ No newline at end of file diff --git a/src/test/examples/config-schema-version.json b/src/test/examples/config-schema-version.json index 036e8e1..dcbdc47 100644 --- a/src/test/examples/config-schema-version.json +++ b/src/test/examples/config-schema-version.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", "plugins": [ { "name": "LatencyPlugin", diff --git a/src/test/examples/config-schema.json b/src/test/examples/config-schema.json index d7ec73e..7455d92 100644 --- a/src/test/examples/config-schema.json +++ b/src/test/examples/config-schema.json @@ -1,4 +1,4 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", "plugins": [] } \ No newline at end of file diff --git a/src/test/examples/config-urls-to-watch-required.json b/src/test/examples/config-urls-to-watch-required.json index d5b7cf9..2496769 100644 --- a/src/test/examples/config-urls-to-watch-required.json +++ b/src/test/examples/config-urls-to-watch-required.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", "plugins": [], "urlsToWatch": [] } diff --git a/src/test/examples/devproxyrc.json b/src/test/examples/devproxyrc.json index 12c712e..fe86ed1 100644 --- a/src/test/examples/devproxyrc.json +++ b/src/test/examples/devproxyrc.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/rc.schema.json", "plugins": [ { "name": "LatencyPlugin", diff --git a/src/test/examples/mock-schema.json b/src/test/examples/mock-schema.json index 7cda0aa..55a863d 100644 --- a/src/test/examples/mock-schema.json +++ b/src/test/examples/mock-schema.json @@ -1,4 +1,4 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/mockresponseplugin.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.schema.json", "mocks": [] } \ No newline at end of file From 9c388ea7fabbc4d30835d0cdb691708fc94fab6a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 3 Jul 2025 09:23:00 +0000 Subject: [PATCH 3/3] Revert test example files to keep original schema versions Co-authored-by: garrytrinder <11563347+garrytrinder@users.noreply.github.com> --- src/test/examples/config-incorrect-schema-with-plugins.json | 2 +- src/test/examples/config-incorrect-schema.json | 2 +- src/test/examples/config-plugin-config-missing-disabled.json | 2 +- src/test/examples/config-plugin-config-missing.json | 2 +- src/test/examples/config-plugin-config-required-disabled.json | 2 +- src/test/examples/config-plugin-config-required.json | 2 +- src/test/examples/config-plugins-codelens.json | 2 +- src/test/examples/config-schema-mismatch.json | 2 +- src/test/examples/config-schema-version.json | 2 +- src/test/examples/config-schema.json | 2 +- src/test/examples/config-urls-to-watch-required.json | 2 +- src/test/examples/devproxyrc.json | 2 +- src/test/examples/mock-schema.json | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/test/examples/config-incorrect-schema-with-plugins.json b/src/test/examples/config-incorrect-schema-with-plugins.json index 45e8850..d41feb5 100644 --- a/src/test/examples/config-incorrect-schema-with-plugins.json +++ b/src/test/examples/config-incorrect-schema-with-plugins.json @@ -1,4 +1,4 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/mockresponseplugin.schema.json", "plugins": {} } \ No newline at end of file diff --git a/src/test/examples/config-incorrect-schema.json b/src/test/examples/config-incorrect-schema.json index 074bdcb..d6d1d12 100644 --- a/src/test/examples/config-incorrect-schema.json +++ b/src/test/examples/config-incorrect-schema.json @@ -1,3 +1,3 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.schema.json" + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/mockresponseplugin.schema.json" } \ No newline at end of file diff --git a/src/test/examples/config-plugin-config-missing-disabled.json b/src/test/examples/config-plugin-config-missing-disabled.json index aeb3857..21c2c05 100644 --- a/src/test/examples/config-plugin-config-missing-disabled.json +++ b/src/test/examples/config-plugin-config-missing-disabled.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", "plugins": [ { "name": "LatencyPlugin", diff --git a/src/test/examples/config-plugin-config-missing.json b/src/test/examples/config-plugin-config-missing.json index 8e43357..c51f922 100644 --- a/src/test/examples/config-plugin-config-missing.json +++ b/src/test/examples/config-plugin-config-missing.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", "plugins": [ { "name": "GenericRandomErrorPlugin", diff --git a/src/test/examples/config-plugin-config-required-disabled.json b/src/test/examples/config-plugin-config-required-disabled.json index 12f6a49..a5f120c 100644 --- a/src/test/examples/config-plugin-config-required-disabled.json +++ b/src/test/examples/config-plugin-config-required-disabled.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", "plugins": [ { "name": "LatencyPlugin", diff --git a/src/test/examples/config-plugin-config-required.json b/src/test/examples/config-plugin-config-required.json index 0c1a627..996b0f4 100644 --- a/src/test/examples/config-plugin-config-required.json +++ b/src/test/examples/config-plugin-config-required.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", "plugins": [ { "name": "GenericRandomErrorPlugin", diff --git a/src/test/examples/config-plugins-codelens.json b/src/test/examples/config-plugins-codelens.json index 248583b..3b513c0 100644 --- a/src/test/examples/config-plugins-codelens.json +++ b/src/test/examples/config-plugins-codelens.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.29.0/rc.schema.json", "plugins": [ { "name": "CachingGuidancePlugin", diff --git a/src/test/examples/config-schema-mismatch.json b/src/test/examples/config-schema-mismatch.json index 7455d92..d7ec73e 100644 --- a/src/test/examples/config-schema-mismatch.json +++ b/src/test/examples/config-schema-mismatch.json @@ -1,4 +1,4 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", "plugins": [] } \ No newline at end of file diff --git a/src/test/examples/config-schema-version.json b/src/test/examples/config-schema-version.json index dcbdc47..036e8e1 100644 --- a/src/test/examples/config-schema-version.json +++ b/src/test/examples/config-schema-version.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", "plugins": [ { "name": "LatencyPlugin", diff --git a/src/test/examples/config-schema.json b/src/test/examples/config-schema.json index 7455d92..d7ec73e 100644 --- a/src/test/examples/config-schema.json +++ b/src/test/examples/config-schema.json @@ -1,4 +1,4 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", "plugins": [] } \ No newline at end of file diff --git a/src/test/examples/config-urls-to-watch-required.json b/src/test/examples/config-urls-to-watch-required.json index 2496769..d5b7cf9 100644 --- a/src/test/examples/config-urls-to-watch-required.json +++ b/src/test/examples/config-urls-to-watch-required.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/rc.schema.json", "plugins": [], "urlsToWatch": [] } diff --git a/src/test/examples/devproxyrc.json b/src/test/examples/devproxyrc.json index fe86ed1..12c712e 100644 --- a/src/test/examples/devproxyrc.json +++ b/src/test/examples/devproxyrc.json @@ -1,5 +1,5 @@ { - "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.0.0/rc.schema.json", + "$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.29.0/rc.schema.json", "plugins": [ { "name": "LatencyPlugin", diff --git a/src/test/examples/mock-schema.json b/src/test/examples/mock-schema.json index 55a863d..7cda0aa 100644 --- a/src/test/examples/mock-schema.json +++ b/src/test/examples/mock-schema.json @@ -1,4 +1,4 @@ { - "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0.0/mockresponseplugin.schema.json", + "$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.24.0/mockresponseplugin.schema.json", "mocks": [] } \ No newline at end of file