diff --git a/CHANGELOG.md b/CHANGELOG.md index 01e3dba..dcf7fb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Command: `dev-proxy-toolkit.config-new` - Create new configuration file - Command: `dev-proxy-toolkit.restart` - Restart Dev Proxy +### Changed: + +- Snippets: Updated all snippets to use `v0.27.0` schema + ## [0.20.0] - 2025-04-01 ### Added: diff --git a/src/snippets.json b/src/snippets.json index 1ec9ebb..40ad343 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.26.0/rc.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.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.26.0/rc.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.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.26.0/mockresponseplugin.mocksfile.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.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.26.0/mockresponseplugin.mocksfile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/mockresponseplugin.mocksfile.schema.json\"," ], "description": "Dev Proxy mocks file schema" }, @@ -140,7 +140,7 @@ "prefix": "devproxy-plugin-auth-config-apikey", "body": [ "\"auth\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/authplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/authplugin.schema.json\",", "\t\"type\": \"apiKey\",", "\t\"apiKey\": {", "\t\t\"parameters\": [", @@ -165,7 +165,7 @@ "prefix": "devproxy-plugin-auth-config-oauth2", "body": [ "\"auth\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/authplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/authplugin.schema.json\",", "\t\"type\": \"oauth2\",", "\t\"oauth2\": {", "\t\t\"metadataUrl\": \"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration\",", @@ -208,7 +208,7 @@ "prefix": "devproxy-plugin-api-center-minimal-permissions-config", "body": [ "\"apiCenterMinimalPermissionsPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/apicenterminimalpermissionsplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/apicenterminimalpermissionsplugin.schema.json\",", "\t\"subscriptionId\": \"cdae2297-7aa6-4195-bbb1-dcd89153cc72\",", "\t\"resourceGroupName\": \"resource-group-name\",", "\t\"serviceName\": \"apic-instance\",", @@ -233,7 +233,7 @@ "prefix": "devproxy-plugin-api-center-onboarding-config", "body": [ "\"apiCenterOnboardingPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/apicenteronboardingplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/apicenteronboardingplugin.schema.json\",", "\t\"subscriptionId\": \"cdae2297-7aa6-4195-bbb1-dcd89153cc72\",", "\t\"resourceGroupName\": \"resource-group-name\",", "\t\"serviceName\": \"apic-instance\",", @@ -259,7 +259,7 @@ "prefix": "devproxy-plugin-api-center-production-version-config", "body": [ "\"apiCenterProductionVersionPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/apicenterproductionversionplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/apicenterproductionversionplugin.schema.json\",", "\t\"subscriptionId\": \"cdae2297-7aa6-4195-bbb1-dcd89153cc72\",", "\t\"resourceGroupName\": \"resource-group-name\",", "\t\"serviceName\": \"apic-instance\",", @@ -283,7 +283,7 @@ "prefix": "devproxy-plugin-caching-guidance-config", "body": [ "\"cachingGuidance\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/cachingguidanceplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/cachingguidanceplugin.schema.json\",", "\t\"cacheThresholdSeconds\": 5", "}" ], @@ -305,7 +305,7 @@ "prefix": "devproxy-plugin-crud-api-config", "body": [ "\"customersApi\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/crudapiplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/crudapiplugin.schema.json\",", "\t\"apiFile\": \"customers-api.json\"", "}" ], @@ -315,7 +315,7 @@ "prefix": "devproxy-plugin-crud-api-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/crudapiplugin.apifile.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/crudapiplugin.apifile.schema.json\",", "\t\"actions\": [", "\t\t$1", "\t],", @@ -328,7 +328,7 @@ "CrudApiPluginFileSchema": { "prefix": "devproxy-plugin-crud-api-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/crudapiplugin.apifile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/crudapiplugin.apifile.schema.json\"," ], "description": "CrudApiPlugin API file schema" }, @@ -359,7 +359,7 @@ "prefix": "devproxy-plugin-dev-tools-config", "body": [ "\"devTools\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/devtoolsplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/devtoolsplugin.schema.json\",", "\t\"preferredBrowser\": \"Edge\"", "}" ], @@ -381,7 +381,7 @@ "prefix": "devproxy-plugin-entra-mock-response-config", "body": [ "\"entraMockResponsePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/mockresponseplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/mockresponseplugin.schema.json\",", "\t\"mocksFile\": \"mocks.json\"", "}" ], @@ -402,7 +402,7 @@ "prefix": "devproxy-plugin-execution-summary-config", "body": [ "\"executionSummaryPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/executionsummaryplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/executionsummaryplugin.schema.json\",", "\t\"groupBy\": \"url\"", "}" ], @@ -424,7 +424,7 @@ "prefix": "devproxy-plugin-generic-random-error-config", "body": [ "\"genericRandomErrorPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/genericrandomerrorplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/genericrandomerrorplugin.schema.json\",", "\t\"errorsFile\": \"errors.json\",", "\t\"rate\": 50", "}" @@ -435,7 +435,7 @@ "prefix": "devproxy-plugin-generic-random-error-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/genericrandomerrorplugin.errorsfile.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/genericrandomerrorplugin.errorsfile.schema.json\",", "\t\"errors\": [", "\t\t$1", "\t]", @@ -446,7 +446,7 @@ "GenericRandomErrorPluginFileSchema": { "prefix": "devproxy-plugin-generic-random-error-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/genericrandomerrorplugin.errorsfile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/genericrandomerrorplugin.errorsfile.schema.json\"," ], "description": "GenericRandomErrorPlugin errors file schema" }, @@ -503,7 +503,7 @@ "prefix": "devproxy-plugin-graph-minimal-permissions-guidance-config", "body": [ "\"graphMinimalPermissionsGuidancePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/graphminimalpermissionsguidanceplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/graphminimalpermissionsguidanceplugin.schema.json\",", "\t\"permissionsToIgnore\": [", "\t\t\"profile\",", "\t\t\"openid\",", @@ -529,7 +529,7 @@ "prefix": "devproxy-plugin-graph-minimal-permissions-config", "body": [ "\"graphMinimalPermissionsPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/graphmininalpermissionsplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/graphmininalpermissionsplugin.schema.json\",", "\t\"type\": \"delegated\"", "}" ], @@ -561,7 +561,7 @@ "prefix": "devproxy-plugin-graph-mock-response-config", "body": [ "\"graphMockResponsePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/mockresponseplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/mockresponseplugin.schema.json\",", "\t\"mocksFile\": \"mocks.json\"", "}" ], @@ -592,7 +592,7 @@ "prefix": "devproxy-plugin-graph-random-error-config", "body": [ "\"graphRandomErrorPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/graphrandomerrorplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/graphrandomerrorplugin.schema.json\",", "\t\"allowedErrors\": [ 429, 500, 502, 503, 504, 507 ]", "\t\"rate\": 50", "}" @@ -656,7 +656,7 @@ "prefix": "devproxy-plugin-http-file-generator-config", "body": [ "\"httpFileGeneratorPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/httpfilegeneratorplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/httpfilegeneratorplugin.schema.json\",", "\t\"includeOptionsRequests\": false", "}" ], @@ -678,7 +678,7 @@ "prefix": "devproxy-plugin-latency-config", "body": [ "\"latencyPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/latencyplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/latencyplugin.schema.json\",", "\t\"minMs\": 200,", "\t\"maxMs\": 10000", "}" @@ -700,7 +700,7 @@ "prefix": "devproxy-plugin-minimal-csom-permissions-config", "body": [ "\"minimalCsomPermissionsPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/minimalcsompermissionsplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/minimalcsompermissionsplugin.schema.json\",", "\t\"typesFilePath\": \"./api-specs\"", "}" ], @@ -722,7 +722,7 @@ "prefix": "devproxy-plugin-minimal-permissions-config", "body": [ "\"minimalPermissionsPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/minimalpermissionsplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/minimalpermissionsplugin.schema.json\",", "\t\"apiSpecsFolderPath\": \"./api-specs\"", "}" ], @@ -744,7 +744,7 @@ "prefix": "devproxy-plugin-minimal-permissions-guidance-config", "body": [ "\"minimalPermissionsGuidancePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/minimalpermissionsguidanceplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/minimalpermissionsguidanceplugin.schema.json\",", "\t\"apiSpecsFolderPath\": \"./api-specs\"", "}" ], @@ -777,7 +777,7 @@ "prefix": "devproxy-plugin-mock-request-config", "body": [ "\"mockRequestPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/mockrequestplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/mockrequestplugin.schema.json\",", "\t\"mockFile\": \"mock-request.json\"", "}" ], @@ -799,7 +799,7 @@ "prefix": "devproxy-plugin-mock-response-config", "body": [ "\"mockResponsePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/mockresponseplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/mockresponseplugin.schema.json\",", "\t\"mocksFile\": \"mocks.json\"", "}" ], @@ -808,7 +808,7 @@ "MockResponsePluginFileSchema": { "prefix": "devproxy-plugin-mock-response-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/mockresponseplugin.mocksfile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/mockresponseplugin.mocksfile.schema.json\"," ], "description": "MockResponsePlugin schema" }, @@ -870,7 +870,7 @@ "prefix": "devproxy-plugin-open-api-spec-generator-config", "body": [ "\"openApiSpecGeneratorPlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/openapispecgeneratorplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/openapispecgeneratorplugin.schema.json\",", "\t\"includeOptionsRequests\": false,", "\t\"specVersion\": \"v3_0\",", "\t\"specFormat\": \"Json\"", @@ -893,7 +893,7 @@ "prefix": "devproxy-plugin-rate-limiting-config", "body": [ "\"rateLimiting\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/ratelimitingplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/ratelimitingplugin.schema.json\",", "\t\"costPerRequest\": 2,", "\t\"rateLimit\": 120,", "\t\"retryAfterSeconds\": 5", @@ -905,7 +905,7 @@ "prefix": "devproxy-plugin-rate-limiting-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/ratelimitingplugin.customresponsefile.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/ratelimitingplugin.customresponsefile.schema.json\",", "\t\"body\": {", "\t\t$1", "\t},", @@ -920,7 +920,7 @@ "RateLimitingFileSchema": { "prefix": "devproxy-plugin-rate-limiting-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/ratelimitingplugin.customresponsefile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/ratelimitingplugin.customresponsefile.schema.json\"," ], "description": "Dev Proxy rate limiting file schema" }, @@ -951,7 +951,7 @@ "prefix": "devproxy-plugin-rewrite-file", "body": [ "{", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/rewriteplugin.rewritesfile.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/rewriteplugin.rewritesfile.schema.json\",", "\t\"rewrites\": [", "\t\t$1", "\t]", @@ -962,7 +962,7 @@ "RewritePluginFileSchema":{ "prefix": "devproxy-plugin-rewrite-file-schema", "body": [ - "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/rewriteplugin.rewritesfile.schema.json\"," + "\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/rewriteplugin.rewritesfile.schema.json\"," ], "description": "RewritePlugin rewrites file schema" }, @@ -970,13 +970,13 @@ "prefix": "devproxy-plugin-rewrite-config", "body": [ "\"rewritePlugin\": {", - "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.26.0/rewriteplugin.schema.json\",", + "\t\"\\$schema\": \"https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v0.27.0/rewriteplugin.schema.json\",", "\t\"rewritesFile\": \"rewrites.json\"", "}" ], "description": "RewritePlugin config section" }, - "UrlDiscoveryPlugin": { + "UrlDiscoveryPlugin": { "prefix": "devproxy-plugin-url-discovery", "body": [ "{",