{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketsdk/json-schema/marketsdk-flag-object-schema.json",
  "title": "FlagObject",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketsdk-moderation-api-openapi.yml#/components/schemas/FlagObject",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "flag"
      ]
    },
    "id": {
      "type": "string"
    },
    "target_type": {
      "type": "string",
      "enum": [
        "listing",
        "seller",
        "review"
      ]
    },
    "target": {
      "type": "string"
    },
    "reporter": {
      "type": "string"
    },
    "reason": {
      "type": "string",
      "enum": [
        "prohibited_item",
        "counterfeit",
        "scam",
        "offensive",
        "spam",
        "other"
      ]
    },
    "note": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "resolved"
      ]
    },
    "resolution": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "dismissed",
        "content_removed",
        "seller_suspended",
        null
      ]
    },
    "action": {
      "type": [
        "string",
        "null"
      ],
      "description": "The moderation action that resolved it."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "resolved_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "object",
    "id",
    "target_type",
    "target",
    "reporter",
    "reason",
    "note",
    "status",
    "resolution",
    "action",
    "created_at",
    "resolved_at"
  ]
}