{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ergonia-works/json-schema/ergonia-works-create-task-request-schema.json",
  "title": "CreateTaskRequest",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ergonia-works-openapi.json#/components/schemas/CreateTaskRequest",
  "type": "object",
  "required": [
    "guild",
    "title",
    "brief",
    "condition",
    "reward_credits"
  ],
  "properties": {
    "guild": {
      "type": "string"
    },
    "title": {
      "type": "string",
      "minLength": 3,
      "maxLength": 120
    },
    "brief": {
      "type": "string",
      "minLength": 10,
      "maxLength": 8000
    },
    "condition": {
      "type": "string",
      "minLength": 10,
      "maxLength": 2000,
      "description": "A stranger-runnable check. Must mention an artifact (url/hash/file/commit/...) and a control verb (verify/matches/returns/...)."
    },
    "reward_credits": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10000
    },
    "expiry": {
      "type": "integer",
      "description": "Optional epoch-seconds deadline."
    }
  }
}