{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/krimskrams-xyz/json-schema/krimskrams-xyz-evidence-submission-schema.json",
  "title": "EvidenceSubmission",
  "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/EvidenceSubmission",
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 2083,
      "minLength": 1,
      "format": "uri",
      "title": "Url"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE",
        "HEAD"
      ],
      "title": "Method"
    },
    "rail": {
      "type": "string",
      "enum": [
        "x402",
        "mpp"
      ],
      "title": "Rail"
    },
    "tx_hash": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9:_-]+$",
      "title": "Tx Hash"
    },
    "http_status": {
      "type": "integer",
      "maximum": 599.0,
      "minimum": 100.0,
      "title": "Http Status"
    },
    "latency_ms": {
      "type": "integer",
      "maximum": 600000.0,
      "minimum": 0.0,
      "title": "Latency Ms"
    },
    "response_ok": {
      "type": "boolean",
      "title": "Response Ok"
    },
    "payer_address": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "pattern": "^[A-Za-z0-9:_-]+$",
      "title": "Payer Address"
    },
    "signature": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000,
          "pattern": "^[A-Za-z0-9+/=_:.-]+$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Signature"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "url",
    "method",
    "rail",
    "tx_hash",
    "http_status",
    "latency_ms",
    "response_ok",
    "payer_address"
  ]
}