Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DevProxy.Abstractions/DevProxy.Abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<RootNamespace>DevProxy.Abstractions</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>1.1.0</Version>
<Version>1.2.0</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
2 changes: 1 addition & 1 deletion DevProxy.Plugins/DevProxy.Plugins.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<EnableDynamicLoading>true</EnableDynamicLoading>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
<Version>1.1.0</Version>
<Version>1.2.0</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand Down
2 changes: 1 addition & 1 deletion DevProxy.Plugins/Mocking/MockResponsePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public sealed class MockResponseConfiguration
[JsonIgnore]
public bool NoMocks { get; set; }
[JsonPropertyName("$schema")]
public string Schema { get; set; } = "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/mockresponseplugin.mocksfile.schema.json";
public string Schema { get; set; } = "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/mockresponseplugin.mocksfile.schema.json";
}

public class MockResponsePlugin(
Expand Down
2 changes: 1 addition & 1 deletion DevProxy/DevProxy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Nullable>enable</Nullable>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Title>Dev Proxy</Title>
<Version>1.1.0</Version>
<Version>1.2.0</Version>
<Company>.NET Foundation</Company>
<Product>Dev Proxy</Product>
<AssemblyName>devproxy</AssemblyName>
Expand Down
2 changes: 1 addition & 1 deletion DevProxy/config/m365-mocks.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/mockresponseplugin.mocksfile.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/mockresponseplugin.mocksfile.schema.json",
"mocks": [
{
"request": {
Expand Down
18 changes: 9 additions & 9 deletions DevProxy/config/m365.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/rc.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/rc.schema.json",
"plugins": [
{
"name": "DevToolsPlugin",
Expand Down Expand Up @@ -173,11 +173,11 @@
"https://*.sharepoint-df.*/*_vti_bin/*"
],
"mocksPlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/mockresponseplugin.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/mockresponseplugin.schema.json",
"mocksFile": "m365-mocks.json"
},
"graphRandomErrorsPlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/graphrandomerrorplugin.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/graphrandomerrorplugin.schema.json",
"allowedErrors": [
429,
500,
Expand All @@ -189,28 +189,28 @@
"rate": 50
},
"executionSummaryPlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/executionsummaryplugin.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/executionsummaryplugin.schema.json",
"groupBy": "url"
},
"graphMinimalPermissionsPlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/graphminimalpermissionsplugin.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/graphminimalpermissionsplugin.schema.json",
"type": "delegated"
},
"cachingGuidance": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/cachingguidanceplugin.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/cachingguidanceplugin.schema.json",
"cacheThresholdSeconds": 5
},
"latencyPlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/latencyplugin.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/latencyplugin.schema.json",
"minMs": 200,
"maxMs": 10000
},
"devTools": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/devtoolsplugin.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/devtoolsplugin.schema.json",
"preferredBrowser": "Edge"
},
"rateLimiting": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/ratelimitingplugin.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/ratelimitingplugin.schema.json",
"costPerRequest": 2,
"rateLimit": 120,
"retryAfterSeconds": 5
Expand Down
2 changes: 1 addition & 1 deletion DevProxy/config/microsoft-graph-rate-limiting.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/rc.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/rc.schema.json",
"plugins": [
{
"name": "RateLimitingPlugin",
Expand Down
6 changes: 3 additions & 3 deletions DevProxy/config/microsoft-graph.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/rc.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/rc.schema.json",
"plugins": [
{
"name": "GraphSelectGuidancePlugin",
Expand Down Expand Up @@ -67,7 +67,7 @@
"https://microsoftgraph.chinacloudapi.cn/beta/*"
],
"graphRandomErrorsPlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/graphrandomerrorplugin.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/graphrandomerrorplugin.schema.json",
"allowedErrors": [
429,
500,
Expand All @@ -79,7 +79,7 @@
"rate": 50
},
"executionSummaryPlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/executionsummaryplugin.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/executionsummaryplugin.schema.json",
"groupBy": "url"
},
"labelMode": "text",
Expand Down
2 changes: 1 addition & 1 deletion DevProxy/config/spo-csom-types.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/minimalcsompermissions.types.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/minimalcsompermissions.types.schema.json",
"types": {
"268004ae-ef6b-4e9b-8425-127220d84719": "Microsoft.Online.SharePoint.TenantAdministration.Tenant",
"3747adcd-a3c3-41b9-bfab-4a64dd2f1e0a": "Microsoft.SharePoint.Client.RequestContext"
Expand Down
2 changes: 1 addition & 1 deletion DevProxy/devproxy-errors.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/genericrandomerrorplugin.errorsfile.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/genericrandomerrorplugin.errorsfile.schema.json",
"errors": [
{
"request": {
Expand Down
4 changes: 2 additions & 2 deletions DevProxy/devproxyrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/rc.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/rc.schema.json",
"plugins": [
{
"name": "RetryAfterPlugin",
Expand All @@ -17,7 +17,7 @@
"https://jsonplaceholder.typicode.com/*"
],
"genericRandomErrorPlugin": {
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.1.0/genericrandomerrorplugin.schema.json",
"$schema": "https://raw.githubusercontent.com/dotnet/dev-proxy/main/schemas/v1.2.0/genericrandomerrorplugin.schema.json",
"errorsFile": "devproxy-errors.json",
"rate": 50
},
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:24.04

ARG DEVPROXY_VERSION=1.1.0
ARG DEVPROXY_VERSION=1.2.0
ARG USERNAME=devproxy
ENV DEVPROXY_VERSION=${DEVPROXY_VERSION}

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_beta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:24.04

ARG DEVPROXY_VERSION=1.1.0
ARG DEVPROXY_VERSION=1.2.0
ARG USERNAME=devproxy
ENV DEVPROXY_VERSION=${DEVPROXY_VERSION}

Expand Down
4 changes: 2 additions & 2 deletions install-beta.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#define MyAppName "Dev Proxy Beta"
; for local use only. In production replaced by a command line arg
#define MyAppSetupExeName "dev-proxy-installer-win-x64-1.1.0-beta.1"
#define MyAppVersion "1.1.0-beta.1"
#define MyAppSetupExeName "dev-proxy-installer-win-x64-1.2.0-beta.1"
#define MyAppVersion "1.2.0-beta.1"
#define MyAppPublisher ".NET Foundation"
#define MyAppURL "https://aka.ms/devproxy"
#define DevProxyExecutable "devproxy-beta.exe"
Expand Down
4 changes: 2 additions & 2 deletions install.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

#define MyAppName "Dev Proxy"
; for local use only. In production replaced by a command line arg
#define MyAppSetupExeName "dev-proxy-installer-win-x64-1.1.0"
#define MyAppVersion "1.1.0"
#define MyAppSetupExeName "dev-proxy-installer-win-x64-1.2.0"
#define MyAppVersion "1.2.0"
#define MyAppPublisher ".NET Foundation"
#define MyAppURL "https://aka.ms/devproxy"
#define DevProxyExecutable "devproxy.exe"
Expand Down
34 changes: 34 additions & 0 deletions schemas/v1.2.0/apicenterminimalpermissionsplugin.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Dev Proxy ApiCenterMinimalPermissionsPlugin config schema",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"description": "The JSON schema reference for validation."
},
"resourceGroupName": {
"type": "string",
"description": "Name of the resource group where the Azure API Center is located."
},
"serviceName": {
"type": "string",
"description": "Name of the Azure API Center instance that Dev Proxy should use to check if the APIs used in the app are registered."
},
"subscriptionId": {
"type": "string",
"description": "ID of the Azure subscription where the Azure API Center instance is located."
},
"workspace": {
"type": "string",
"description": "Name of the Azure API Center workspace to use. Default is 'default'.",
"default": "default"
}
},
"required": [
"resourceGroupName",
"serviceName",
"subscriptionId"
],
"additionalProperties": false
}
37 changes: 37 additions & 0 deletions schemas/v1.2.0/apicenteronboardingplugin.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Dev Proxy ApiCenterOnboardingPlugin config schema",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"description": "The JSON schema reference for validation."
},
"createApicEntryForNewApis": {
"type": "boolean",
"description": "Set to true to have Dev Proxy create new API entries for APIs detected but not yet registered in API Center. When false, Dev Proxy only lists unregistered APIs. Default is true."
},
"resourceGroupName": {
"type": "string",
"description": "Name of the resource group where the Azure API Center is located."
},
"serviceName": {
"type": "string",
"description": "Name of the Azure API Center instance that Dev Proxy should use to check if the APIs used in the app are registered."
},
"subscriptionId": {
"type": "string",
"description": "ID of the Azure subscription where the Azure API Center instance is located."
},
"workspace": {
"type": "string",
"description": "Name of the Azure API Center workspace to use. Default is 'default'."
}
},
"required": [
"resourceGroupName",
"serviceName",
"subscriptionId"
],
"additionalProperties": false
}
33 changes: 33 additions & 0 deletions schemas/v1.2.0/apicenterproductionversionplugin.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Dev Proxy ApiCenterProductionVersionPlugin config schema",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"description": "The JSON schema reference for validation."
},
"resourceGroupName": {
"type": "string",
"description": "Name of the resource group where the Azure API Center is located."
},
"serviceName": {
"type": "string",
"description": "Name of the Azure API Center instance that Dev Proxy should use to check if the APIs used in the app are registered."
},
"subscriptionId": {
"type": "string",
"description": "ID of the Azure subscription where the Azure API Center instance is located."
},
"workspace": {
"type": "string",
"description": "Name of the Azure API Center workspace to use. Default is 'default'."
}
},
"required": [
"resourceGroupName",
"serviceName",
"subscriptionId"
],
"additionalProperties": false
}
Loading
Loading