{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repowise-dev/json-schema/repowise-dev-event-list-response-schema.json",
  "title": "EventListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repowise-dev-events-api-openapi.yml#/components/schemas/EventListResponse",
  "properties": {
    "events": {
      "items": {
        "$ref": "#/$defs/CloudEvent"
      },
      "type": "array",
      "title": "Events"
    },
    "snapshot_runs": {
      "type": "integer",
      "title": "Snapshot Runs",
      "default": 0
    },
    "empty_reason": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "baseline_only",
            "no_match",
            "nothing_moved"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Empty Reason"
    },
    "empty_note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Empty Note"
    }
  },
  "type": "object",
  "required": [
    "events"
  ],
  "$defs": {
    "CloudEvent": {
      "properties": {
        "specversion": {
          "type": "string",
          "title": "Specversion"
        },
        "id": {
          "type": "string",
          "title": "Id"
        },
        "source": {
          "type": "string",
          "title": "Source"
        },
        "type": {
          "type": "string",
          "title": "Type"
        },
        "time": {
          "type": "string",
          "title": "Time"
        },
        "datacontenttype": {
          "type": "string",
          "title": "Datacontenttype"
        },
        "subject": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Subject"
        },
        "data": {
          "additionalProperties": true,
          "type": "object",
          "title": "Data"
        }
      },
      "type": "object",
      "required": [
        "specversion",
        "id",
        "source",
        "type",
        "time",
        "datacontenttype",
        "data"
      ],
      "title": "CloudEvent"
    }
  }
}