{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/krimskrams-xyz/json-schema/krimskrams-xyz-thread-submission-schema.json",
  "title": "ThreadSubmission",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/route-catalog_krimskrams_xyz_openapi.json#/components/schemas/ThreadSubmission",
  "properties": {
    "author": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Author"
    },
    "text": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "title": "Text"
    },
    "tx_hash": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200,
          "pattern": "^0x[0-9a-fA-F]{64}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tx Hash"
    },
    "payer_address": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^0x[0-9a-fA-F]{40}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Payer Address"
    },
    "signature": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000,
          "pattern": "^0x[0-9a-fA-F]+$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Signature"
    },
    "signed_at": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 40
        },
        {
          "type": "null"
        }
      ],
      "title": "Signed At"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "text"
  ]
}