Skip to content

Commit

Permalink
Merge pull request #242 from gematik/new_permission_config
Browse files Browse the repository at this point in the history
added new permissionConfig and examples
  • Loading branch information
Johennes authored Jun 4, 2024
2 parents 8a7c6ea + 9b9f21b commit eb1d6b0
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/schema/examples/permissionConfig.default-only.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"defaultSetting": "allow all"
}
6 changes: 6 additions & 0 deletions src/schema/examples/permissionConfig.domain-exception.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"defaultSetting": "block all",
"domainExceptions": {
"hassel.hoff": {}
}
}
6 changes: 6 additions & 0 deletions src/schema/examples/permissionConfig.user-exception.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"defaultSetting": "block all",
"userExceptions": {
"@david:hassel.hoff": {}
}
}
40 changes: 40 additions & 0 deletions src/schema/permissionConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$id": "https://gematik.de/ti-m/permissionConfig.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Permission Configuration",
"type": "object",
"properties": {
"defaultSetting": {
"type": "string",
"enum": [
"allow all",
"block all"
]
},
"domainExceptions": {
"type": "object",
"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.",
"patternProperties": {
"^.*$": {
"type": "object",
"description": "An empty object for future enhancement"
}
},
"additionalProperties": false
},
"userExceptions": {
"type": "object",
"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.",
"patternProperties": {
"^@.*$": {
"type": "object",
"description": "An empty object for future enhancement"
}
},
"additionalProperties": false
}
},
"required": [
"defaultSetting"
]
}

0 comments on commit eb1d6b0

Please sign in to comment.