Skip to content

Commit

Permalink
Fix Jsonschema titles for Status code overwrite policy
Browse files Browse the repository at this point in the history
Fix THREESCALE-7238
Signed-off-by: Eloy Coto <[email protected]>
  • Loading branch information
eloycoto committed Aug 5, 2021
1 parent 29d4b6b commit 7083e92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -20,26 +21,27 @@
"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,
"maximum": 600
}
}
}

}
},
"properties": {
"http_statuses": {
"title": "HTTP status codes map",
"$ref": "#/definitions/codes" }
"$ref": "#/definitions/codes"
}
}
}
}

0 comments on commit 7083e92

Please sign in to comment.