{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/unicodekit-com/json-schema/unicodekit-com-character-schema.json",
  "title": "Character",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/unicodekit-com-openapi.yml#/components/schemas/Character",
  "allOf": [
    {
      "$ref": "#/$defs/CharacterSummary"
    },
    {
      "type": "object",
      "properties": {
        "categoryName": {
          "type": "string"
        },
        "scriptExtensions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "nameAliases": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "alias": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          }
        },
        "notes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Usage notes from NamesList.txt"
        },
        "decomposition": {
          "type": [
            "object",
            "null"
          ]
        },
        "simpleCaseMappings": {
          "type": "object"
        },
        "emoji": {
          "type": [
            "object",
            "null"
          ],
          "description": "CLDR name, group, subgroup, and keywords"
        },
        "unihan": {
          "type": [
            "object",
            "null"
          ],
          "description": "Han characters: definition, readings, strokes"
        },
        "properties": {
          "type": "object"
        }
      }
    }
  ],
  "$defs": {
    "CharacterSummary": {
      "type": "object",
      "properties": {
        "codepoint": {
          "type": "string"
        },
        "character": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "officialName": {
          "type": "string"
        },
        "block": {
          "type": "string"
        },
        "script": {
          "type": "string"
        },
        "scriptCode": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "age": {
          "type": "string",
          "description": "Unicode version that added it"
        },
        "isEmoji": {
          "type": "boolean"
        },
        "plane": {
          "type": "string"
        },
        "htmlDecimal": {
          "type": "string"
        },
        "htmlHex": {
          "type": "string"
        },
        "css": {
          "type": "string"
        },
        "utf8": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "utf16": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "utf32": {
          "type": "string"
        },
        "normalization": {
          "type": "object",
          "description": "NFC, NFD, NFKC, NFKD forms when they differ (codepoint labels), else null"
        },
        "unicodeVersion": {
          "type": "string"
        }
      }
    }
  }
}