Skip to content

Commit

Permalink
added seperate schemas for epa and pro
Browse files Browse the repository at this point in the history
  • Loading branch information
ichderjens committed Jul 29, 2024
1 parent f1c6b07 commit e23c904
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 0 deletions.
53 changes: 53 additions & 0 deletions src/schema/TI-M_Pro/permissionConfig_V1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"$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
},
"groupExceptions": {
"type": "array",
"uniqueItems": true,
"items": {
"groupName": {
"description": "The name of the group to be in-/excluded",
"type": "string",
"enum": [
"isInsuredPerson"
]
}
}
}
},
"required": [
"defaultSetting"
]
}
40 changes: 40 additions & 0 deletions src/schema/TI-M_ePA/permissionConfig_V1.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"
]
}
8 changes: 8 additions & 0 deletions src/schema/examples/permissionConfig.group-exception.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"defaultSetting": "allow all",
"groupExceptions": [
{
"groupName": "isInsuredPerson"
}
]
}

0 comments on commit e23c904

Please sign in to comment.