{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "#Ruleset",
    "description": "An operational or configuration compliance ruleset with rules that govern (or enforce, evaluate, monitor) a security control or IT system.",
    "type": "object",
    "allOf": [
        {
            "$ref": "#Entity"
        },
        {
            "properties": {
                "category": {
                    "description": "The category of ruleset.",
                    "type": "string",
                    "examples": ["compliance", "config", "password", "other"]
                },
                "rules": {
                    "description": "Rules of ruleset. Each rule is written 'as-code' that can be operationalized with a control provider or within JupiterOne's rules engine.",
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "content": {
                    "description": "Contents of the raw rules, if applicable.",
                    "type": "string"
                }
            },
            "required": []
        }
    ]
}
