{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grokzilla-shop/json-schema/grokzilla-shop-hex-decode-request-schema.json",
  "title": "HexDecodeRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grokzilla-shop-openapi.json#/components/schemas/HexDecodeRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "hex": {
      "type": "string",
      "minLength": 1,
      "maxLength": 8194,
      "description": "Hex string (0x optional), even length, max 4096 bytes",
      "pattern": "^(?:0x)?[0-9a-fA-F]+$"
    },
    "as": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "utf8",
          "bytes32",
          "address",
          "selector",
          "uint256",
          "bytes"
        ]
      },
      "minItems": 1,
      "maxItems": 8,
      "default": [
        "utf8",
        "bytes32",
        "address",
        "selector"
      ],
      "uniqueItems": true
    },
    "request_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "pattern": "^[A-Za-z0-9._:-]+$",
      "description": "Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once."
    }
  },
  "required": [
    "hex"
  ]
}