{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/krimskrams-xyz/json-schema/krimskrams-xyz-comment-submission-schema.json",
  "title": "CommentSubmission",
  "description": "One plain-text comment, with optional payment-qualification identity.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/krimskrams_xyz_openapi.json#/components/schemas/CommentSubmission",
  "properties": {
    "target": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Target"
    },
    "author": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Author"
    },
    "text": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "title": "Text"
    },
    "token": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 256,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Token"
    },
    "wallet": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Wallet"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "text"
  ]
}