forked from fabianrbz/kong-plugins-docs-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: fabianrbz <715229+fabianrbz@users.noreply.github.com>
- Loading branch information
Showing
95 changed files
with
32,174 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
"entity_checks": [ | ||
{ | ||
"only_one_of": [ | ||
"config.allow", | ||
"config.deny" | ||
] | ||
}, | ||
{ | ||
"at_least_one_of": [ | ||
"config.allow", | ||
"config.deny" | ||
] | ||
} | ||
], | ||
"fields": [ | ||
{ | ||
"consumer": { | ||
"reference": "consumers", | ||
"eq": null, | ||
"type": "foreign", | ||
"description": "Custom type for representing a foreign key with a null value allowed." | ||
} | ||
}, | ||
{ | ||
"consumer_group": { | ||
"reference": "consumer_groups", | ||
"eq": null, | ||
"type": "foreign", | ||
"description": "Custom type for representing a foreign key with a null value allowed." | ||
} | ||
}, | ||
{ | ||
"protocols": { | ||
"required": true, | ||
"type": "set", | ||
"default": [ | ||
"grpc", | ||
"grpcs", | ||
"http", | ||
"https" | ||
], | ||
"description": "A set of strings representing HTTP protocols.", | ||
"elements": { | ||
"type": "string", | ||
"one_of": [ | ||
"grpc", | ||
"grpcs", | ||
"http", | ||
"https" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"config": { | ||
"fields": [ | ||
{ | ||
"allow": { | ||
"elements": { | ||
"type": "string" | ||
}, | ||
"description": "Arbitrary group names that are allowed to consume the service or route. One of `config.allow` or `config.deny` must be specified.", | ||
"type": "array" | ||
} | ||
}, | ||
{ | ||
"deny": { | ||
"elements": { | ||
"type": "string" | ||
}, | ||
"description": "Arbitrary group names that are not allowed to consume the service or route. One of `config.allow` or `config.deny` must be specified.", | ||
"type": "array" | ||
} | ||
}, | ||
{ | ||
"hide_groups_header": { | ||
"default": false, | ||
"description": "If enabled (`true`), prevents the `X-Consumer-Groups` header from being sent in the request to the upstream service.", | ||
"required": true, | ||
"type": "boolean" | ||
} | ||
}, | ||
{ | ||
"include_consumer_groups": { | ||
"default": false, | ||
"description": "If enabled (`true`), allows the consumer-groups to be used in the `allow|deny` fields", | ||
"required": false, | ||
"type": "boolean" | ||
} | ||
}, | ||
{ | ||
"always_use_authenticated_groups": { | ||
"default": false, | ||
"description": "If enabled (`true`), the authenticated groups will always be used even when an authenticated consumer already exists. If the authenticated groups don't exist, it will fallback to use the groups associated with the consumer. By default the authenticated groups will only be used when there is no consumer or the consumer is anonymous.", | ||
"required": true, | ||
"type": "boolean" | ||
} | ||
} | ||
], | ||
"required": true, | ||
"type": "record" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.