diff --git a/src/schema-validation.jsonc b/src/schema-validation.jsonc index de4bb92d48f..489e4adee9f 100644 --- a/src/schema-validation.jsonc +++ b/src/schema-validation.jsonc @@ -208,7 +208,6 @@ "project-1.0.0-rc2.json", "project.json", "prometheus.json", - "proxies.json", "pull-request-labeler.json", "pull-request-labeler-5.json", "putout.json", diff --git a/src/schemas/json/proxies.json b/src/schemas/json/proxies.json index e4355e89ae9..22d65f44c6f 100644 --- a/src/schemas/json/proxies.json +++ b/src/schemas/json/proxies.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/proxies.json", "additionalProperties": false, "definitions": { "proxy-schema": { @@ -87,11 +88,11 @@ } }, "patternProperties": { - "^backend\\.request\\.querystring\\..+$": { + "^backend\\.request\\.querystring\\.(?!).+$": { "$ref": "#/definitions/request-overrides-value-expression-schema", "description": "A query string parameter which can be set for the call to the backend. Values can reference application settings and parameters from the original client request. If the empty string is provided, the parameter will not be included on the backend request" }, - "^backend\\.request\\.headers\\..+$": { + "^backend\\.request\\.headers\\.(?!).+$": { "$ref": "#/definitions/request-overrides-value-expression-schema", "description": "A header which can be set for the call to the backend. Values can reference application settings, parameters from the original client request, and parameters from the backend response. If the empty string is provided, the header will not be included on the backend request." } @@ -133,7 +134,7 @@ } }, "patternProperties": { - "^response\\.headers\\..+$": { + "^response\\.headers\\.(?!).+$": { "$ref": "#/definitions/response-overrides-value-expression-schema", "description": "A header which can be set for the response to the client. Values can reference application settings, parameters from the original client request, and parameters from the backend response. If the empty string is provided, the header will not be included on the response." } @@ -224,7 +225,6 @@ ] } }, - "id": "https://json.schemastore.org/proxies.json", "properties": { "$schema": { "type": "string"