Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added new permissionConfig and examples #242

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
]
}