{
  "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "$schema": { "type": "string" },
    "data": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "twoLetterId": {
            "type": "string",
            "description": "Two-letter language code used by phone operating systems"
          },
          "exonym": {
            "type": "string",
            "description": "English name of the language"
          },
          "alternatives": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "exonym": {
                  "type": "string",
                  "description": "English name of the alternative language"
                },
                "threeLetterId": {
                  "type": "string",
                  "description": "Three-letter ISO 639-3 language code"
                }
              },
              "required": ["exonym", "threeLetterId"],
              "additionalProperties": false
            },
            "description": "Alternative language options that can be used for this phone language"
          }
        },
        "required": ["twoLetterId", "exonym", "alternatives"],
        "additionalProperties": false
      }
    }
  },
  "required": ["$schema", "data"]
}
