Skip to content

Commit f6fd826

Browse files
Updates version to v0.16.0
1 parent bf221ec commit f6fd826

File tree

9 files changed

+425
-4
lines changed

9 files changed

+425
-4
lines changed

dev-proxy-abstractions/dev-proxy-abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<RootNamespace>Microsoft.DevProxy.Abstractions</RootNamespace>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8-
<Version>0.15.0</Version>
8+
<Version>0.16.0</Version>
99
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
1010
</PropertyGroup>
1111

dev-proxy-plugins/MockResponses/MockResponsePlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class MockResponseConfiguration
2727
public bool BlockUnmockedRequests { get; set; } = false;
2828

2929
[JsonPropertyName("$schema")]
30-
public string Schema { get; set; } = "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.15.0/mockresponseplugin.schema.json";
30+
public string Schema { get; set; } = "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v0.16.0/mockresponseplugin.schema.json";
3131
[JsonPropertyName("mocks")]
3232
public IEnumerable<MockResponse> Mocks { get; set; } = Array.Empty<MockResponse>();
3333
}

dev-proxy-plugins/dev-proxy-plugins.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>enable</Nullable>
77
<EnableDynamicLoading>true</EnableDynamicLoading>
88
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
9-
<Version>0.15.0</Version>
9+
<Version>0.16.0</Version>
1010
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
1111
</PropertyGroup>
1212
<PropertyGroup Condition="'$(Configuration)'=='Release'">

dev-proxy/dev-proxy.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Nullable>enable</Nullable>
99
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1010
<Title>Dev Proxy</Title>
11-
<Version>0.15.0</Version>
11+
<Version>0.16.0</Version>
1212
<Company>Microsoft</Company>
1313
<Product>Dev Proxy</Product>
1414
<AssemblyName>devproxy</AssemblyName>
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "CRUD API plugin API definition",
4+
"description": "API definition for use with the CRUD API Dev Proxy plugin",
5+
"type": "object",
6+
"properties": {
7+
"$schema": {
8+
"type": "string"
9+
},
10+
"baseUrl": {
11+
"type": "string"
12+
},
13+
"dataFile": {
14+
"type": "string"
15+
},
16+
"actions": {
17+
"type": "array",
18+
"items": {
19+
"type": "object",
20+
"properties": {
21+
"action": {
22+
"type": "string",
23+
"enum": [
24+
"create",
25+
"getAll",
26+
"getOne",
27+
"getMany",
28+
"merge",
29+
"update",
30+
"delete"
31+
]
32+
},
33+
"url": {
34+
"type": "string"
35+
},
36+
"query": {
37+
"type": "string"
38+
},
39+
"method": {
40+
"type": "string",
41+
"enum": [
42+
"GET",
43+
"POST",
44+
"PUT",
45+
"PATCH",
46+
"DELETE"
47+
]
48+
},
49+
"auth": {
50+
"type": "string",
51+
"enum": [
52+
"none",
53+
"entra"
54+
]
55+
},
56+
"entraAuthConfig": {
57+
"type": "object",
58+
"properties": {
59+
"audience": {
60+
"type": "string"
61+
},
62+
"issuer": {
63+
"type": "string"
64+
},
65+
"scopes": {
66+
"type": "array",
67+
"items": {
68+
"type": "string"
69+
}
70+
},
71+
"roles": {
72+
"type": "array",
73+
"items": {
74+
"type": "string"
75+
}
76+
},
77+
"validateLifetime": {
78+
"type": "boolean"
79+
},
80+
"validateSigningKey": {
81+
"type": "boolean"
82+
}
83+
}
84+
}
85+
},
86+
"required": [
87+
"action"
88+
],
89+
"additionalProperties": false
90+
}
91+
},
92+
"auth": {
93+
"type": "string",
94+
"enum": [
95+
"none",
96+
"entra"
97+
]
98+
},
99+
"entraAuthConfig": {
100+
"type": "object",
101+
"properties": {
102+
"audience": {
103+
"type": "string"
104+
},
105+
"issuer": {
106+
"type": "string"
107+
},
108+
"scopes": {
109+
"type": "array",
110+
"items": {
111+
"type": "string"
112+
}
113+
},
114+
"roles": {
115+
"type": "array",
116+
"items": {
117+
"type": "string"
118+
}
119+
},
120+
"validateLifetime": {
121+
"type": "boolean"
122+
},
123+
"validateSigningKey": {
124+
"type": "boolean"
125+
}
126+
}
127+
}
128+
},
129+
"required": [
130+
"baseUrl",
131+
"dataFile",
132+
"actions"
133+
],
134+
"additionalProperties": false
135+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Dev Proxy GenericRandomErrorPlugin responses",
4+
"description": "Mocks for the Dev Proxy GenericRandomErrorPlugin",
5+
"type": "object",
6+
"properties": {
7+
"$schema": {
8+
"type":"string"
9+
},
10+
"responses": {
11+
"type": "array",
12+
"items": {
13+
"type": "object",
14+
"properties": {
15+
"body": {
16+
"type": [
17+
"object",
18+
"array",
19+
"string"
20+
]
21+
},
22+
"statusCode": {
23+
"type": "integer"
24+
},
25+
"headers": {
26+
"type": "array",
27+
"items": {
28+
"type": "object",
29+
"properties": {
30+
"name": {
31+
"type": "string"
32+
},
33+
"value": {
34+
"type": "string"
35+
}
36+
},
37+
"required": [
38+
"name",
39+
"value"
40+
]
41+
}
42+
}
43+
}
44+
}
45+
}
46+
},
47+
"required": [
48+
"responses"
49+
],
50+
"additionalProperties": false
51+
}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Dev Proxy MockResponsePlugin mocks",
4+
"description": "Mocks for the Dev Proxy MockResponsePlugin",
5+
"type": "object",
6+
"properties": {
7+
"$schema": {
8+
"type": "string"
9+
},
10+
"mocks": {
11+
"type": "array",
12+
"items": {
13+
"type": "object",
14+
"properties": {
15+
"request": {
16+
"type": "object",
17+
"properties": {
18+
"url": {
19+
"type": "string"
20+
},
21+
"method": {
22+
"type": "string",
23+
"enum": [
24+
"GET",
25+
"POST",
26+
"PUT",
27+
"PATCH",
28+
"DELETE",
29+
"HEAD",
30+
"OPTIONS",
31+
"CONNECT",
32+
"TRACE"
33+
]
34+
},
35+
"nth": {
36+
"type": "integer"
37+
}
38+
},
39+
"required": [
40+
"url"
41+
]
42+
},
43+
"response": {
44+
"type": "object",
45+
"properties": {
46+
"body": {
47+
"type": [
48+
"object",
49+
"array",
50+
"string"
51+
]
52+
},
53+
"statusCode": {
54+
"type": "integer"
55+
},
56+
"headers": {
57+
"type": "array",
58+
"items": {
59+
"type": "object",
60+
"properties": {
61+
"name": {
62+
"type": "string"
63+
},
64+
"value": {
65+
"type": "string"
66+
}
67+
},
68+
"required": [
69+
"name",
70+
"value"
71+
]
72+
}
73+
}
74+
}
75+
}
76+
},
77+
"required": [
78+
"request",
79+
"response"
80+
]
81+
}
82+
}
83+
},
84+
"required": [
85+
"mocks"
86+
],
87+
"additionalProperties": false
88+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Dev Proxy RateLimitingPlugin response",
4+
"description": "Mock for the Dev Proxy RateLimitingPlugin",
5+
"type": "object",
6+
"properties": {
7+
"$schema": {
8+
"type":"string"
9+
},
10+
"body": {
11+
"type": [
12+
"object",
13+
"array",
14+
"string"
15+
]
16+
},
17+
"statusCode": {
18+
"type": "integer"
19+
},
20+
"headers": {
21+
"type": "array",
22+
"items": {
23+
"type": "object",
24+
"properties": {
25+
"name": {
26+
"type": "string"
27+
},
28+
"value": {
29+
"type": "string"
30+
}
31+
},
32+
"required": [
33+
"name",
34+
"value"
35+
]
36+
}
37+
}
38+
},
39+
"additionalProperties": false
40+
}

0 commit comments

Comments
 (0)