{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algo-pw/json-schema/algo-pw-task-request-schema.json",
  "title": "TaskRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algo-pw-openapi.json#/components/schemas/TaskRequest",
  "required": [
    "interactionId",
    "type",
    "title",
    "rubric",
    "reward",
    "slots",
    "deadline"
  ],
  "type": "object",
  "properties": {
    "interactionId": {
      "type": "string",
      "format": "uuid"
    },
    "type": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "rubric": {
      "type": "string"
    },
    "reward": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int64"
    },
    "slots": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "deadline": {
      "format": "date-time"
    },
    "visibility": {
      "type": "string",
      "default": "private"
    },
    "fundingUnit": {
      "type": "string",
      "default": "earned"
    },
    "method": {
      "type": "string",
      "default": "community"
    },
    "fixtureId": {
      "type": [
        "null",
        "string"
      ]
    },
    "subsidyGrantId": {
      "type": [
        "null",
        "string"
      ],
      "format": "uuid"
    },
    "researchRunId": {
      "type": [
        "null",
        "string"
      ],
      "format": "uuid"
    }
  }
}