{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-paginated-published-event-list-schema.json",
  "title": "PaginatedPublishedEventList",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elation-health-event-subscriptions-api-openapi.yml#/components/schemas/PaginatedPublishedEventList",
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "results": {
      "items": {
        "$ref": "#/$defs/PublishedEvent"
      },
      "type": "array"
    }
  },
  "required": [
    "results"
  ],
  "type": "object",
  "$defs": {
    "PublishedEvent": {
      "properties": {
        "error_content": {
          "type": [
            "string",
            "null"
          ]
        },
        "event_id": {
          "readOnly": true,
          "type": "integer"
        },
        "event_type": {
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "type": "integer"
        },
        "processed_date": {
          "format": "date-time",
          "type": "string"
        },
        "resource": {
          "readOnly": true,
          "type": "string"
        },
        "resource_id": {
          "readOnly": true,
          "type": "integer"
        },
        "status_code": {
          "maximum": 2147483647,
          "minimum": -2147483648,
          "type": [
            "integer",
            "null"
          ]
        },
        "target": {
          "readOnly": true,
          "type": "string"
        }
      },
      "required": [
        "processed_date"
      ],
      "type": "object"
    }
  }
}