{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/anilist/refs/heads/main/json-schema/anilist-charactername-schema.json",
  "title": "CharacterName",
  "description": "The names of the character",
  "type": "object",
  "properties": {
    "first": {
      "type": "string",
      "description": "The character's given name"
    },
    "middle": {
      "type": "string",
      "description": "The character's middle name"
    },
    "last": {
      "type": "string",
      "description": "The character's surname"
    },
    "full": {
      "type": "string",
      "description": "The character's first and last name"
    },
    "native": {
      "type": "string",
      "description": "The character's full name in their native language"
    },
    "alternative": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Other names the character might be referred to as"
    },
    "alternativeSpoiler": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Other names the character might be referred to as but are spoilers"
    },
    "userPreferred": {
      "type": "string",
      "description": "The currently authenticated users preferred name language. Default romaji for non-authenticated"
    }
  }
}