{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fallax-io/json-schema/fallax-io-report-page-schema.json",
  "title": "ReportPage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fallax-io-reports-api-openapi.yml#/components/schemas/ReportPage",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Report"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` for the next page."
    },
    "hasMore": {
      "type": "boolean"
    }
  },
  "required": [
    "data",
    "nextCursor",
    "hasMore"
  ],
  "$defs": {
    "Report": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "reportedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "receivedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "source": {
          "type": "string"
        },
        "reporterEmail": {
          "type": [
            "string",
            "null"
          ]
        },
        "subject": {
          "type": [
            "string",
            "null"
          ]
        },
        "verdict": {
          "type": "string"
        },
        "credited": {
          "type": "boolean"
        },
        "dismissed": {
          "type": "boolean"
        },
        "webLink": {
          "type": [
            "string",
            "null"
          ]
        },
        "campaign": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "name"
          ]
        }
      },
      "required": [
        "id",
        "reportedAt",
        "receivedAt",
        "source",
        "reporterEmail",
        "subject",
        "verdict",
        "credited",
        "dismissed",
        "webLink",
        "campaign"
      ]
    }
  }
}