{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketsdk/json-schema/marketsdk-create-flag-dto-schema.json",
  "title": "CreateFlagDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketsdk-moderation-api-openapi.yml#/components/schemas/CreateFlagDto",
  "type": "object",
  "properties": {
    "target": {
      "type": "string",
      "description": "A listing, seller, or review id."
    },
    "reporter": {
      "type": "string",
      "description": "The end user reporting it: a buyer id or a seller id."
    },
    "reason": {
      "type": "string",
      "enum": [
        "prohibited_item",
        "counterfeit",
        "scam",
        "offensive",
        "spam",
        "other"
      ]
    },
    "note": {
      "type": "string",
      "maxLength": 2000,
      "description": "The reporter's own words."
    }
  },
  "required": [
    "target",
    "reporter",
    "reason"
  ]
}