1 // Copyright (C) 2018 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
5 "$id": "http://unicode.org/icu-filter-schema",
6 "$schema": "http://json-schema.org/draft-04/schema#",
7 "description": "JSON Schema for an ICU data filter file",
10 "localeFilter": { "$ref": "#/definitions/filter" },
13 "additionalProperties": { "$ref": "#/definitions/filter" }
22 "items": { "type": "string" }
24 "files": { "$ref": "#/definitions/filter" },
29 "pattern": "^[+-]/((\\w+|\\*)(/\\w+|/\\*)*)?$"
33 "required": ["categories", "rules"],
34 "additionalProperties": false
40 "directory": { "type": "string" },
46 "src": { "type": "string" },
47 "dest": { "type": "string" }
49 "additionalProperties": false,
50 "required": ["src", "dest"]
54 "additionalProperties": false,
55 "required": ["directory", "replacements"]
59 "enum": ["unihan", "implicithan"]
62 "additionalProperties": false,
70 "$ref": "#/definitions/blacklistWhitelistFilterTypes"
72 "whitelist": { "$ref": "#/definitions/stringList" }
74 "required": ["whitelist"],
75 "additionalProperties": false
80 "$ref": "#/definitions/blacklistWhitelistFilterTypes"
82 "blacklist": { "$ref": "#/definitions/stringList" }
84 "required": ["blacklist"],
85 "additionalProperties": false
94 "required": ["filterType"],
95 "additionalProperties": false
109 "whitelist": { "$ref": "#/definitions/stringList" }
111 "required": ["filterType", "whitelist"],
112 "additionalProperties": false
122 "items": { "$ref": "#/definitions/filter" }
125 "required": ["filterType", "unionOf"],
126 "additionalProperties": false
130 "blacklistWhitelistFilterTypes": {