1
1
{
2
- "Config " : {
3
- "prefix" : " devproxy-config" ,
2
+ "ConfigFile " : {
3
+ "prefix" : " devproxy-config-file " ,
4
4
"body" : [
5
5
" {" ,
6
6
" \t\"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/rc.schema.json\" ," ,
10
10
],
11
11
"description" : " Dev Proxy config file"
12
12
},
13
- "ConfigSchema " : {
14
- "prefix" : " devproxy-config-schema" ,
13
+ "ConfigFileSchema " : {
14
+ "prefix" : " devproxy-config-file- schema" ,
15
15
"body" : [
16
16
" \"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/rc.schema.json\" ,"
17
17
],
18
- "description" : " Dev Proxy config schema"
18
+ "description" : " Dev Proxy config file schema"
19
19
},
20
- "Errors " : {
21
- "prefix" : " devproxy-errors " ,
20
+ "MocksFile " : {
21
+ "prefix" : " devproxy-mocks-file " ,
22
22
"body" : [
23
23
" {" ,
24
- " \t\"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/genericrandomerrorplugin.schema.json\" ," ,
25
- " \t\" responses\" : [" ,
26
- " \t\t $1" ,
27
- " \t ]" ,
24
+ " \t\"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/mockresponseplugin.schema.json\" ," ,
25
+ " \t\" mocks\" : [$1]" ,
28
26
" }"
29
27
],
30
- "description" : " Dev Proxy errors file"
28
+ "description" : " Dev Proxy mocks file"
29
+ },
30
+ "MocksFileSchema" : {
31
+ "prefix" : " devproxy-mocks-file-schema" ,
32
+ "body" : [
33
+ " \"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/mockresponseplugin.schema.json\" ,"
34
+ ],
35
+ "description" : " Dev Proxy mocks file schema"
31
36
},
32
37
"CachingGuidancePlugin" : {
33
38
"prefix" : " devproxy-plugin-caching-guidance" ,
71
76
],
72
77
"description" : " CrudApiPlugin config section"
73
78
},
74
- "CrudApiPluginSchema" : {
75
- "prefix" : " devproxy-plugin-crud-api-schema" ,
79
+ "CrudApiPluginApiFile" : {
80
+ "prefix" : " devproxy-plugin-crud-api-file" ,
81
+ "body" : [
82
+ " {" ,
83
+ " \t\"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/crudapiplugin.schema.json\" ," ,
84
+ " \t\" actions\" : [$1]," ,
85
+ " \t\" baseUrl\" : \" $2\" ," ,
86
+ " \t\" dataFile\" : \" $3\" " ,
87
+ " }"
88
+ ],
89
+ "description" : " CrudApiPlugin API file"
90
+ },
91
+ "CrudApiPluginFileSchema" : {
92
+ "prefix" : " devproxy-plugin-crud-api-file-schema" ,
76
93
"body" : [
77
94
" \"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/crudapiplugin.schema.json\" ,"
78
95
],
79
- "description" : " CrudApiPlugin schema"
96
+ "description" : " CrudApiPlugin API file schema"
80
97
},
81
98
"DevToolsPlugin" : {
82
99
"prefix" : " devproxy-plugin-dev-tools" ,
141
158
],
142
159
"description" : " GenericRandomErrorPlugin config section"
143
160
},
144
- "GenericRandomErrorPluginSchema" : {
145
- "prefix" : " devproxy-plugin-generic-random-error-schema" ,
161
+ "GenericRandomErrorPluginFile" : {
162
+ "prefix" : " devproxy-plugin-generic-random-error-file" ,
163
+ "body" : [
164
+ " {" ,
165
+ " \t\"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/genericrandomerrorplugin.schema.json\" ," ,
166
+ " \t\" responses\" : [$1]" ,
167
+ " }"
168
+ ],
169
+ "description" : " GenericRandomErrorPlugin errors file"
170
+ },
171
+ "GenericRandomErrorPluginFileSchema" : {
172
+ "prefix" : " devproxy-plugin-generic-random-error-file-schema" ,
146
173
"body" : [
147
174
" \"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/genericrandomerrorplugin.schema.json\" ,"
148
-
149
175
],
150
- "description" : " GenericRandomErrorPlugin schema"
176
+ "description" : " GenericRandomErrorPlugin errors file schema"
151
177
},
152
178
"GraphBetaSupportGuidancePlugin" : {
153
179
"prefix" : " devproxy-plugin-graph-beta-support-guidance" ,
378
404
],
379
405
"description" : " MockResponsePlugin config section"
380
406
},
381
- "MockResponsePluginSchema " : {
407
+ "MockResponsePluginFileSchema " : {
382
408
"prefix" : " devproxy-plugin-mock-response-schema" ,
383
409
"body" : [
384
410
" \"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/mockresponseplugin.schema.json\" ,"
451
477
],
452
478
"description" : " RateLimitingPlugin config section"
453
479
},
454
- "RateLimitingPluginSchema " : {
455
- "prefix" : " devproxy-plugin-rate-limiting-schema " ,
480
+ "RateLimitingFile " : {
481
+ "prefix" : " devproxy-plugin-rate-limiting-file " ,
456
482
"body" : [
457
- " \"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/ratelimitingplugin.schema.json\" ,"
483
+ " {" ,
484
+ " \t\"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/ratelimitingplugin.schema.json\" ," ,
485
+ " \t\" body\" : {$1}," ,
486
+ " \t\" headers\" : [$2]," ,
487
+ " \t\" statusCode\" : 429$3" ,
488
+ " }"
458
489
],
459
- "description" : " RateLimitingPlugin schema"
490
+ "description" : " Dev Proxy rate limiting file"
491
+ },
492
+ "RateLimitingFileSchema" : {
493
+ "prefix" : " devproxy-plugin-rate-limiting-file-schema" ,
494
+ "body" : [
495
+ " \"\\ $schema\" : \" https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/crudapiplugin.schema.json\" ,"
496
+ ],
497
+ "description" : " Dev Proxy rate limiting file schema"
460
498
},
461
499
"RetryAfterPlugin" : {
462
500
"prefix" : " devproxy-plugin-retry-after" ,
474
512
"body" : [
475
513
" {" ,
476
514
" \t\" statusCode\" : ${1:400}," ,
477
- " \t\" body\" : {" ,
478
- " \t\t $2" ,
479
- " \t }," ,
480
- " \t\" headers\" : [" ,
481
- " \t\t $3" ,
482
- " \t ]" ,
515
+ " \t\" body\" : { $2 }," ,
516
+ " \t\" headers\" : [ $3 ]" ,
483
517
" }"
484
518
],
485
- "description" : " Empty Dev Proxy response"
519
+ "description" : " Dev Proxy response"
486
520
},
487
521
"ResponseHeader" : {
488
522
"prefix" : " devproxy-response-header" ,
492
526
" \t\" value\" : \" $2\" " ,
493
527
" }"
494
528
],
495
- "description" : " Empty Dev Proxy response header"
529
+ "description" : " Dev Proxy response header"
496
530
}
497
531
}
0 commit comments