{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/verbaterm-com/json-schema/verbaterm-com-ask-request-schema.json",
  "title": "AskRequest",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/verbaterm-com-openapi.json#/components/schemas/AskRequest",
  "type": "object",
  "required": [
    "question",
    "reviewRef"
  ],
  "properties": {
    "question": {
      "type": "string",
      "minLength": 3
    },
    "reviewRef": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "kind",
            "sessionId"
          ],
          "properties": {
            "kind": {
              "const": "private"
            },
            "sessionId": {
              "type": "string"
            }
          }
        },
        {
          "type": "object",
          "required": [
            "kind",
            "libraryReviewId"
          ],
          "properties": {
            "kind": {
              "const": "public"
            },
            "libraryReviewId": {
              "type": "string"
            }
          }
        },
        {
          "type": "object",
          "required": [
            "kind",
            "companySlug",
            "productSlug",
            "policyKind"
          ],
          "properties": {
            "kind": {
              "const": "public_path"
            },
            "companySlug": {
              "type": "string"
            },
            "productSlug": {
              "type": "string"
            },
            "policyKind": {
              "type": "string"
            }
          }
        }
      ]
    },
    "priorTurns": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "user",
              "assistant"
            ]
          },
          "content": {
            "type": "string"
          }
        }
      }
    }
  }
}