Skip to content

Commit 4154b6d

Browse files
committed
Make schema compatible with JsonSchema draft 4 (#2770)
1 parent ba90c4e commit 4154b6d

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

src/ReverseProxy/ConfigurationSchema.json

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"title": "YARP Configuration Schema",
42
"type": "object",
53
"properties": {
64
"ReverseProxy": {
@@ -197,31 +195,31 @@
197195
"type": [ "object", "null" ],
198196
"$comment": "Fallback that matches any custom user-defined transforms.",
199197
"properties": {
200-
"RequestHeadersCopy": false,
201-
"RequestHeaderOriginalHost": false,
202-
"RequestHeader": false,
203-
"PathRemovePrefix": false,
204-
"PathSet": false,
205-
"PathPrefix": false,
206-
"QueryRouteParameter": false,
207-
"PathPattern": false,
208-
"QueryValueParameter": false,
209-
"QueryRemoveParameter": false,
210-
"HttpMethodChange": false,
211-
"RequestHeaderRouteValue": false,
212-
"RequestHeaderRemove": false,
213-
"RequestHeadersAllowed": false,
214-
"X-Forwarded": false,
215-
"Forwarded": false,
216-
"ClientCert": false,
217-
"ResponseHeadersCopy": false,
218-
"ResponseHeader": false,
219-
"ResponseHeaderRemove": false,
220-
"ResponseHeadersAllowed": false,
221-
"ResponseTrailersCopy": false,
222-
"ResponseTrailer": false,
223-
"ResponseTrailerRemove": false,
224-
"ResponseTrailersAllowed": false
198+
"RequestHeadersCopy": { "not": {} },
199+
"RequestHeaderOriginalHost": { "not": {} },
200+
"RequestHeader": { "not": {} },
201+
"PathRemovePrefix": { "not": {} },
202+
"PathSet": { "not": {} },
203+
"PathPrefix": { "not": {} },
204+
"QueryRouteParameter": { "not": {} },
205+
"PathPattern": { "not": {} },
206+
"QueryValueParameter": { "not": {} },
207+
"QueryRemoveParameter": { "not": {} },
208+
"HttpMethodChange": { "not": {} },
209+
"RequestHeaderRouteValue": { "not": {} },
210+
"RequestHeaderRemove": { "not": {} },
211+
"RequestHeadersAllowed": { "not": {} },
212+
"X-Forwarded": { "not": {} },
213+
"Forwarded": { "not": {} },
214+
"ClientCert": { "not": {} },
215+
"ResponseHeadersCopy": { "not": {} },
216+
"ResponseHeader": { "not": {} },
217+
"ResponseHeaderRemove": { "not": {} },
218+
"ResponseHeadersAllowed": { "not": {} },
219+
"ResponseTrailersCopy": { "not": {} },
220+
"ResponseTrailer": { "not": {} },
221+
"ResponseTrailerRemove": { "not": {} },
222+
"ResponseTrailersAllowed": { "not": {} }
225223
}
226224
},
227225
{

0 commit comments

Comments
 (0)