Skip to content

Commit 35da594

Browse files
committed
feat: update schema
1 parent 614f62b commit 35da594

File tree

110 files changed

+18268
-14743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+18268
-14743
lines changed

schemas/ace.json

Lines changed: 210 additions & 79 deletions
Large diffs are not rendered by default.

schemas/acl.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,24 @@
22
"fields": [
33
{
44
"consumer": {
5-
"eq": null,
6-
"reference": "consumers",
75
"description": "Custom type for representing a foreign key with a null value allowed.",
8-
"type": "foreign"
6+
"type": "foreign",
7+
"eq": null,
8+
"reference": "consumers"
99
}
1010
},
1111
{
1212
"consumer_group": {
13-
"eq": null,
14-
"reference": "consumer_groups",
1513
"description": "Custom type for representing a foreign key with a null value allowed.",
16-
"type": "foreign"
14+
"type": "foreign",
15+
"eq": null,
16+
"reference": "consumer_groups"
1717
}
1818
},
1919
{
2020
"protocols": {
21+
"required": true,
22+
"type": "set",
2123
"default": [
2224
"grpc",
2325
"grpcs",
@@ -33,15 +35,11 @@
3335
"https"
3436
]
3537
},
36-
"required": true,
37-
"type": "set",
3838
"description": "A set of strings representing HTTP protocols."
3939
}
4040
},
4141
{
4242
"config": {
43-
"required": true,
44-
"type": "record",
4543
"fields": [
4644
{
4745
"allow": {
@@ -63,29 +61,31 @@
6361
},
6462
{
6563
"hide_groups_header": {
66-
"default": false,
6764
"required": true,
65+
"default": false,
6866
"type": "boolean",
6967
"description": "If enabled (`true`), prevents the `X-Consumer-Groups` header from being sent in the request to the upstream service."
7068
}
7169
},
7270
{
7371
"include_consumer_groups": {
74-
"default": false,
7572
"required": false,
73+
"default": false,
7674
"type": "boolean",
7775
"description": "If enabled (`true`), allows the consumer-groups to be used in the `allow|deny` fields"
7876
}
7977
},
8078
{
8179
"always_use_authenticated_groups": {
82-
"default": false,
8380
"required": true,
81+
"default": false,
8482
"type": "boolean",
8583
"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."
8684
}
8785
}
88-
]
86+
],
87+
"type": "record",
88+
"required": true
8989
}
9090
}
9191
],

0 commit comments

Comments
 (0)