All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.elide-model-config.7.1.4.source-code.elideSecuritySchema.json Maven / Gradle / Ivy

{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$defs": {
        "elideRole" : {
              "type": "string",
              "pattern": "^[A-Za-z][0-9A-Za-z. ]*$",
              "errorMessage": {
                  "pattern": "{0}: does not match the elideRole pattern must start with an alphabetic character and can include alphabets, numbers, spaces and ''.'' only."
              }
        }
    },
    "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": {
                "$ref": "#/$defs/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
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy