{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-report-schema.json",
  "title": "Report",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-moderation-api-openapi.yml#/components/schemas/Report",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "artifact_id": {
      "type": "string"
    },
    "artifact_short_id": {
      "type": "string"
    },
    "reason": {
      "type": "string",
      "description": "The reporter's stated reason for the report"
    },
    "detail": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional extra detail from the reporter, or null"
    },
    "reporter": {
      "type": [
        "string",
        "null"
      ],
      "description": "The reporter's IP (best-effort), or null; abuse reports are anonymous/public"
    },
    "state": {
      "type": "string",
      "enum": [
        "open",
        "actioned",
        "dismissed"
      ],
      "description": "open (awaiting review), actioned (taken down), or dismissed (no action)"
    },
    "created_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "artifact_id",
    "artifact_short_id",
    "reason",
    "detail",
    "reporter",
    "state",
    "created_at"
  ]
}