Skip to content

Commit

Permalink
Merge pull request #655 from 3scale/token-introspection-manifest-summary
Browse files Browse the repository at this point in the history
Require summary in policy manifests and add it to the ones that do not have one
  • Loading branch information
mikz authored Mar 14, 2018
2 parents 69ff05c + c7b40fa commit b9d2b62
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Bug in URL rewriting policy that ignored the `commands` attribute in the policy manifest [PR #641](https://github.com/3scale/apicast/pull/641)
- Skip comentaries after `search` values in resolv.conf [PR #635](https://github.com/3scale/apicast/pull/635)


## Changed

- `summary` is now required in policy manifests [PR #655](https://github.com/3scale/apicast/pull/655)

## [3.2.0-beta1] - 2018-02-20

## Added
Expand Down
1 change: 1 addition & 0 deletions examples/policies/ngx-example/1.0.0/apicast-policy.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "http://apicast.io/policy-v1/schema#manifest#",
"name": "Ngx example policy",
"summary": "Sets request headers",
"description":
["This policy is meant to be just an example.",
"It sets request headers based on the configuration.",
Expand Down
2 changes: 1 addition & 1 deletion gateway/src/apicast/policy/manifest-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@
"$ref": "#/definitions/schema"
}
},
"required": ["name", "version", "configuration"]
"required": ["name", "version", "configuration", "summary"]
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "http://apicast.io/poolicy-v1/schema#manifest#",
"name": "oauth2 token introspection policy",
"summary": "Configures OAuth 2.0 Token Introspection.",
"description":
["This policy executes OAuth 2.0 Token Introspection",
"(https://tools.ietf.org/html/rfc7662) for every API calls."],
["This policy executes OAuth 2.0 Token Introspection ",
"(https://tools.ietf.org/html/rfc7662) for every API call."],
"version": "builtin",
"configuration": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://apicast.io/policy-v1/schema#manifest#",
"name": "Example policy",
"description": "An example policy to be used in integration tests.",
"summary": "An example policy to be used in integration tests.",
"version": "1.0.0",
"configuration": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://apicast.io/policy-v1/schema#manifest#",
"name": "Example policy 1",
"description": "Just an example.",
"summary": "Just an example.",
"version": "1.0.0",
"configuration": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://apicast.io/policy-v1/schema#manifest#",
"name": "Example policy 2",
"description": "Just an example with a version mismatch.",
"summary": "Just an example with a version mismatch.",
"version": "2.0.0",
"configuration": {
"type": "object",
Expand Down

0 comments on commit b9d2b62

Please sign in to comment.