{
  "$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-response-schema.json",
  "title": "ComplianceResponse",
  "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/ComplianceResponse",
  "type": "object",
  "properties": {
    "portfolioId": {
      "type": "string"
    },
    "asOfDate": {
      "type": "string",
      "format": "date"
    },
    "overallStatus": {
      "type": "string",
      "enum": [
        "COMPLIANT",
        "WARNING",
        "VIOLATION"
      ],
      "description": "Overall compliance status"
    },
    "rules": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ruleId": {
            "type": "string"
          },
          "ruleName": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "PASS",
              "WARNING",
              "FAIL"
            ]
          },
          "currentValue": {
            "type": "number"
          },
          "threshold": {
            "type": "number"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}