diff --git a/CHANGELOG.md b/CHANGELOG.md index e5e2a6a4d..53eb0085c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed warning messages [PR #1282](https://github.com/3scale/APIcast/pull/1282) [THREESCALE-5816](https://issues.redhat.com/browse/THREESCALE-5816) - Fixed lua socket error on ssl_certificate [PR #1283](https://github.com/3scale/APIcast/pull/1283) [THREESCALE-7230](https://issues.redhat.com/browse/THREESCALE-7230) - Fixed Acess log header [PR #1284](https://github.com/3scale/APIcast/pull/1284) [THREESCALE-6193](https://issues.redhat.com/browse/THREESCALE-6193) +- Fixed Status code overwrite policy jsonschema [PR #1294](https://github.com/3scale/APIcast/pull/1294) [THREESCALE-7238](https://issues.redhat.com/browse/THREESCALE-7238) ### Added diff --git a/gateway/src/apicast/policy/statuscode_overwrite/apicast-policy.json b/gateway/src/apicast/policy/statuscode_overwrite/apicast-policy.json index 639eaa95e..575e7cdbf 100644 --- a/gateway/src/apicast/policy/statuscode_overwrite/apicast-policy.json +++ b/gateway/src/apicast/policy/statuscode_overwrite/apicast-policy.json @@ -2,8 +2,9 @@ "$schema": "http://apicast.io/policy-v1.1/schema#manifest#", "name": "HTTP Status Code Overwrite", "summary": "Modify the HTTP status code returned by the upstream", - "description": - ["Configures a 1-1 mapping for upstream's http codes."], + "description": [ + "Configures a 1-1 mapping for upstream's http codes." + ], "version": "builtin", "configuration": { "type": "object", @@ -20,12 +21,13 @@ "properties": { "upstream": { "description": "Upstream HTTP code to replace", + "title": "Upstream", "type": "integer", "minimum": 100, "maximum": 600 }, "apicast": { - "title": "Return HTTP code", + "title": "Return HTTP code", "description": "HTTP code to return", "type": "integer", "minimum": 100, @@ -33,13 +35,13 @@ } } } - } }, "properties": { "http_statuses": { "title": "HTTP status codes map", - "$ref": "#/definitions/codes" } + "$ref": "#/definitions/codes" + } } } }