Skip to content

Commit e0390d0

Browse files
committed
Fix Jsonschema titles for Status code overwrite policy
Fix THREESCALE-7238 Signed-off-by: Eloy Coto <[email protected]>
1 parent 41c5dcb commit e0390d0

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2121
- 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)
2222
- Fixed Acess log header [PR #1284](https://github.com/3scale/APIcast/pull/1284) [THREESCALE-6193](https://issues.redhat.com/browse/THREESCALE-6193)
2323
- Fixed Payload limit jsonschema [PR #1293](https://github.com/3scale/APIcast/pull/1293) [THREESCALE-6965](https://issues.redhat.com/browse/THREESCALE-6965)
24+
- Fixed Status code overwrite policy jsonschema [PR #1294](https://github.com/3scale/APIcast/pull/1294) [THREESCALE-7238](https://issues.redhat.com/browse/THREESCALE-7238)
2425

2526
### Added
2627

gateway/src/apicast/policy/statuscode_overwrite/apicast-policy.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
"$schema": "http://apicast.io/policy-v1.1/schema#manifest#",
33
"name": "HTTP Status Code Overwrite",
44
"summary": "Modify the HTTP status code returned by the upstream",
5-
"description":
6-
["Configures a 1-1 mapping for upstream's http codes."],
5+
"description": [
6+
"Configures a 1-1 mapping for upstream's http codes."
7+
],
78
"version": "builtin",
89
"configuration": {
910
"type": "object",
@@ -20,26 +21,27 @@
2021
"properties": {
2122
"upstream": {
2223
"description": "Upstream HTTP code to replace",
24+
"title": "Upstream",
2325
"type": "integer",
2426
"minimum": 100,
2527
"maximum": 600
2628
},
2729
"apicast": {
28-
"title": "Return HTTP code",
30+
"title": "Return HTTP code",
2931
"description": "HTTP code to return",
3032
"type": "integer",
3133
"minimum": 100,
3234
"maximum": 600
3335
}
3436
}
3537
}
36-
3738
}
3839
},
3940
"properties": {
4041
"http_statuses": {
4142
"title": "HTTP status codes map",
42-
"$ref": "#/definitions/codes" }
43+
"$ref": "#/definitions/codes"
44+
}
4345
}
4446
}
4547
}

0 commit comments

Comments
 (0)