Skip to content

Commit 9b9f21b

Browse files
committed
added new permissionConfig and examples
1 parent 8a7c6ea commit 9b9f21b

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"defaultSetting": "allow all"
3+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"defaultSetting": "block all",
3+
"domainExceptions": {
4+
"hassel.hoff": {}
5+
}
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"defaultSetting": "block all",
3+
"userExceptions": {
4+
"@david:hassel.hoff": {}
5+
}
6+
}

src/schema/permissionConfig.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$id": "https://gematik.de/ti-m/permissionConfig.json",
3+
"$schema": "http://json-schema.org/draft-07/schema#",
4+
"title": "Permission Configuration",
5+
"type": "object",
6+
"properties": {
7+
"defaultSetting": {
8+
"type": "string",
9+
"enum": [
10+
"allow all",
11+
"block all"
12+
]
13+
},
14+
"domainExceptions": {
15+
"type": "object",
16+
"description": "The map of servers to in-/exclude. This is a mapping of Matrix server name (https://spec.matrix.org/v1.3/appendices/#server-name) to empty object.",
17+
"patternProperties": {
18+
"^.*$": {
19+
"type": "object",
20+
"description": "An empty object for future enhancement"
21+
}
22+
},
23+
"additionalProperties": false
24+
},
25+
"userExceptions": {
26+
"type": "object",
27+
"description": "The map of users to in-/exclude. This is a mapping of Matrix user ID (https://spec.matrix.org/v1.3/appendices/#user-identifiers) to empty object.",
28+
"patternProperties": {
29+
"^@.*$": {
30+
"type": "object",
31+
"description": "An empty object for future enhancement"
32+
}
33+
},
34+
"additionalProperties": false
35+
}
36+
},
37+
"required": [
38+
"defaultSetting"
39+
]
40+
}

0 commit comments

Comments
 (0)