{
  "$ref": "$defs/token-list",
  "$defs": {
    "token-list": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "description": "The actual text content of the token"
          },
          "metadata": {
            "type": "object",
            "properties": {
              "style": {
                "type": "object",
                "properties": {
                  "color": {
                    "type": "string",
                    "minLength": 1
                  },
                  "styleCodes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "bold",
                        "italic",
                        "underline",
                        "dim",
                        "blink",
                        "reverse",
                        "strikethrough"
                      ]
                    }
                  },
                  "htmlStyleFormat": {
                    "type": "string",
                    "enum": [
                      "css",
                      "className"
                    ],
                    "description": "HTML style format"
                  }
                },
                "required": [
                  "color"
                ],
                "additionalProperties": false,
                "description": "Styling information for this token"
              }
            },
            "additionalProperties": {},
            "description": "Additional token metadata including style information"
          }
        },
        "required": [
          "content"
        ],
        "additionalProperties": false
      }
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "version": "0.1.1"
}