de.elide-model-config.7.0.0-pr2.source-code.elideSecuritySchema.json Maven / Gradle / Ivy
{
"$schema": "https://json-schema.org/draft-04/schema#",
"description": "Elide Security config json/hjson schema",
"type": "object",
"properties": {
"roles": {
"title": "Security Roles",
"description": "List of Roles that will map to security checks",
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"format": "elideRole"
}
},
"rules": {
"title": "Security Rules",
"description": "List of RSQL filter expression templates",
"type": "array",
"uniqueItems": true,
"items": {
"properties": {
"type": {
"title": "Rule Type",
"description": "Type of security rule",
"type": "string",
"enum": [
"filter"
]
},
"filter": {
"title": "Rule Filter",
"description": "Rule filter expression",
"type": "string",
"enum": [
"filter"
]
},
"name": {
"title": "Rule Name",
"description": "Name of the security rule",
"type": "string"
}
},
"required": [
"filter",
"name"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
}