/*!***************************************************
 * diacritics
 * http://diacritics.io/
 * Copyright (c) 2016, Julian Motz
 * Released under the MIT license https://git.io/vXg2H
 *****************************************************/
{
    "title": "Language File Schema",
    "type": "object",
    "properties": {
        "metadata": {
            "type": "object",
            "properties": {
                "alphabet": {
                    "type": "string",
                    "pattern": "^[A-Z]{1}[a-z]{3}$"
                },
                "continent": {
                    "anyOf": [{
                        "type": "string",
                        "pattern": "^[A-Z]{2}$"
                    }, {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                        }
                    }]
                },
                "language": {
                    "type": "string",
                    "pattern": "^[A-Za-z]+$"
                },
                "native": {
                    "type": "string",
                    "pattern": "^[\\S]+$"
                },
                "sources": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "format": "uri"
                    },
                    "uniqueItems": true
                }
            },
            "required": ["alphabet", "continent", "language", "native"]
        },
        "data": {
            "type": "object",
            "additionalProperties": {
                "type": "object",
                "properties": {
                    "mapping": {
                        "type": "object",
                        "properties": {
                            "base": {
                                "type": "string",
                                "pattern": "^[\\S]{1}$"
                            },
                            "decompose": {
                                "type": "string",
                                "pattern": "^[\\S]+$"
                            }
                        }
                    }
                },
                "required": ["mapping"]
            }
        }
    },
    "required": ["metadata", "data"]
}

@@ -1077,32 +1077,164 @@
              %7D,%0A
+                %22variant%22: %7B%0A                    %22type%22: %22string%22,%0A                    %22pattern%22: %22%5E%5BA-Za-z %5D+$%22%0A                %7D,%0A
                 

Add variant definition