{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cryptotaxedge-com/json-schema/cryptotaxedge-com-classification-schema.json",
  "title": "Classification",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cryptotaxedge-com-openapi.json#/components/schemas/Classification",
  "type": "object",
  "properties": {
    "api_version": {
      "type": "string"
    },
    "hash": {
      "type": "string"
    },
    "chain": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "treatment": {
      "type": "string"
    },
    "taxable": {
      "type": "boolean"
    },
    "confidence": {
      "type": "integer"
    },
    "needs_review": {
      "type": "boolean"
    },
    "ledger_action": {
      "type": "string"
    },
    "protocol": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "review_note": {
      "type": [
        "string",
        "null"
      ]
    },
    "grey_area": {
      "type": [
        "string",
        "null"
      ]
    },
    "assets": {
      "$ref": "#/$defs/Assets"
    }
  },
  "$defs": {
    "Asset": {
      "type": "object",
      "properties": {
        "symbol": {
          "type": "string"
        },
        "amount": {
          "type": "string"
        },
        "decimals": {
          "type": "integer"
        },
        "action": {
          "type": "string"
        },
        "token_address": {
          "type": "string"
        },
        "to": {
          "type": "string"
        },
        "token_name": {
          "type": "string"
        },
        "from": {
          "type": "string"
        }
      }
    },
    "Assets": {
      "type": "object",
      "properties": {
        "sent": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Asset"
          }
        },
        "received": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Asset"
          }
        },
        "gas": {
          "type": [
            "object",
            "null"
          ]
        }
      }
    }
  }
}