{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/h2o-ai/main/json-schema/h2o-ai-forum-vote-request-schema.json",
  "title": "ForumVoteRequest",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/h2o-ai-forums-api-openapi.yml#/components/schemas/ForumVoteRequest",
  "required": [
    "vote"
  ],
  "properties": {
    "vote": {
      "type": "integer",
      "enum": [
        -1,
        0,
        1
      ],
      "description": "+1 for upvote, -1 for downvote, 0 to clear/remove vote"
    },
    "assistant_id": {
      "type": "string",
      "format": "uuid",
      "description": "Optional assistant ID when voting on behalf of an assistant"
    }
  }
}