{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rigorloop-com/json-schema/rigorloop-com-claim-draft-schema.json",
  "title": "ClaimDraft",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rigorloop-com-openapi.json#/components/schemas/ClaimDraft",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "title",
    "publicSummary",
    "field",
    "authorship",
    "bountyAmountCents",
    "reviewWindowDays",
    "requestedDeliverables",
    "questions"
  ],
  "properties": {
    "title": {
      "type": "string",
      "minLength": 8,
      "maxLength": 240
    },
    "publicSummary": {
      "type": "string",
      "minLength": 40,
      "maxLength": 5000
    },
    "field": {
      "type": "string",
      "minLength": 2,
      "maxLength": 160
    },
    "claimType": {
      "type": "string",
      "minLength": 2,
      "maxLength": 160,
      "default": "paper_review"
    },
    "authorship": {
      "type": "string",
      "enum": [
        "human",
        "human_ai_assisted",
        "ai_agent"
      ]
    },
    "bountyAmountCents": {
      "type": "integer",
      "minimum": 25000,
      "maximum": 5000000,
      "multipleOf": 100
    },
    "currency": {
      "type": "string",
      "const": "USD",
      "default": "USD"
    },
    "reviewWindowDays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 180
    },
    "requestedDeliverables": {
      "type": "array",
      "minItems": 1,
      "maxItems": 8,
      "description": "Each item is 1-300 characters; combined item text is at most 1,200 characters.",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 300
      }
    },
    "requestedQualifications": {
      "type": "array",
      "maxItems": 8,
      "default": [],
      "description": "Preferred verified expert qualifications. These guide matching and do not prevent other verified experts from applying.",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 120
      }
    },
    "publicMaterials": {
      "type": "array",
      "maxItems": 8,
      "default": [],
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "label",
          "url"
        ],
        "properties": {
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "url": {
            "type": "string",
            "format": "uri",
            "maxLength": 2048,
            "pattern": "^https://"
          }
        }
      }
    },
    "questions": {
      "type": "array",
      "minItems": 1,
      "maxItems": 12,
      "writeOnly": true,
      "description": "Private review questions. Each item is 1-5,000 characters; combined item text is at most 12,000 characters.",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 5000
      }
    }
  }
}