Skip to content

Commit aa4d29e

Browse files
committed
Add JSON schema snippets
Closes #1
1 parent 97a03cd commit aa4d29e

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

src/snippets.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
],
1414
"description": "Dev Proxy config file"
1515
},
16+
"ConfigSchema": {
17+
"prefix": "devproxy-config-schema",
18+
"body": [
19+
"\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/rc.schema.json\","
20+
],
21+
"description": "Dev Proxy config schema"
22+
},
1623
"Errors": {
1724
"prefix": "devproxy-errors",
1825
"body": [
@@ -67,6 +74,13 @@
6774
],
6875
"description": "CrudApiPlugin config section"
6976
},
77+
"CrudApiPluginSchema": {
78+
"prefix": "devproxy-plugin-crud-api-schema",
79+
"body": [
80+
"\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/crudapiplugin.schema.json\","
81+
],
82+
"description": "CrudApiPlugin schema"
83+
},
7084
"DevToolsPlugin": {
7185
"prefix": "devproxy-plugin-dev-tools",
7286
"body": [
@@ -130,6 +144,14 @@
130144
],
131145
"description": "GenericRandomErrorPlugin config section"
132146
},
147+
"GenericRandomErrorPluginSchema": {
148+
"prefix": "devproxy-plugin-generic-random-error-schema",
149+
"body": [
150+
"\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/genericrandomerrorplugin.schema.json\","
151+
152+
],
153+
"description": "GenericRandomErrorPlugin schema"
154+
},
133155
"GraphBetaSupportGuidancePlugin": {
134156
"prefix": "devproxy-plugin-graph-beta-support-guidance",
135157
"body": [
@@ -358,7 +380,14 @@
358380
"},"
359381
],
360382
"description": "MockResponsePlugin config section"
361-
},
383+
},
384+
"MockResponsePluginSchema": {
385+
"prefix": "devproxy-plugin-mock-response-schema",
386+
"body": [
387+
"\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/mockresponseplugin.schema.json\","
388+
],
389+
"description": "MockResponsePlugin schema"
390+
},
362391
"ODataPagingGuidancePlugin": {
363392
"prefix": "devproxy-plugin-odata-paging-guidance",
364393
"body": [
@@ -425,6 +454,13 @@
425454
],
426455
"description": "RateLimitingPlugin config section"
427456
},
457+
"RateLimitingPluginSchema": {
458+
"prefix": "devproxy-plugin-rate-limiting-schema",
459+
"body": [
460+
"\"\\$schema\": \"https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/ratelimitingplugin.schema.json\","
461+
],
462+
"description": "RateLimitingPlugin schema"
463+
},
428464
"RetryAfterPlugin": {
429465
"prefix": "devproxy-plugin-retry-after",
430466
"body": [

0 commit comments

Comments
 (0)