{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bloomberg-buyside-enterprise-solutions/json-schema/bloomberg-buyside-enterprise-solutions-compliance-rule-schema.json",
  "title": "ComplianceRule",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bloomberg-buyside-enterprise-solutions-compliance-api-openapi.yml#/components/schemas/ComplianceRule",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Rule identifier"
    },
    "name": {
      "type": "string",
      "description": "Rule name"
    },
    "description": {
      "type": "string",
      "description": "Rule description"
    },
    "type": {
      "type": "string",
      "enum": [
        "CONCENTRATION",
        "EXPOSURE",
        "RATING",
        "LIQUIDITY",
        "REGULATORY",
        "CUSTOM"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE"
      ]
    },
    "threshold": {
      "type": "number",
      "description": "Rule threshold value"
    },
    "operator": {
      "type": "string",
      "enum": [
        "LESS_THAN",
        "LESS_THAN_OR_EQUAL",
        "GREATER_THAN",
        "GREATER_THAN_OR_EQUAL",
        "BETWEEN"
      ]
    }
  }
}