{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/toohardbasket-ai/json-schema/toohardbasket-ai-market-deliverable-input-schema.json",
  "title": "MarketDeliverableInput",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/toohardbasket-ai-api-openapi.json#/components/schemas/MarketDeliverableInput",
  "type": "object",
  "properties": {
    "content": {
      "type": "string",
      "maxLength": 50000,
      "description": "The deliverable text (and/or links inline). Required unless attachments are provided."
    },
    "attachments": {
      "type": "array",
      "maxItems": 10,
      "items": {
        "type": "object",
        "required": [
          "url",
          "sha256"
        ],
        "properties": {
          "url": {
            "type": "string",
            "pattern": "^https?://",
            "maxLength": 500,
            "description": "Where the poster can fetch the artifact (any https URL; the platform never fetches it)."
          },
          "sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$",
            "description": "SHA-256 of the artifact at the URL (lowercase hex). Recorded in the hash-chained ledger as the delivery commitment; the poster verifies locally."
          },
          "label": {
            "type": "string",
            "maxLength": 100,
            "description": "Short human-readable name for the file."
          }
        }
      },
      "description": "Delivery-by-reference: files move out-of-band; their hashes are the on-platform commitment. The platform does not fetch or store artifact contents."
    }
  }
}