Debian Codegraph @

schemas/icon-definition.schema.json

raw
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "title": "IconDefinition",
4 "type": "object",
5 "required": ["prefix", "iconName", "icon"],
6 "properties": {
7 "prefix": {
8 "title": "IconPrefix",
9 "type": "string",
10 "description": "A Font Awesome shortPrefixId, such as fas, far, or fab."
11 },
12 "iconName": {
13 "title": "IconName",
14 "type": "string",
15 "description": "A Font Awesome icon name."
16 },
17 "icon": {
18 "type": "array",
19 "minItems": 5,
20 "maxItems": 5,
21 "items": [
22 {
23 "type": "number",
24 "description": "viewBox width of the icon."
25 },
26 {
27 "type": "number",
28 "description": "viewBox height of the icon."
29 },
30 {
31 "type": "array",
32 "items": {
33 "oneOf": [
34 {
35 "type": "string",
36 "description": "A name alias, normally this is the old name when an icon has been renamed."
37 },
38 {
39 "type": "integer",
40 "description": "A composite unicode alias, represented as a base 10 integer."
41 }
42 ]
43 },
44 "description": "Ligatures. This is deprecated and will normally be empty."
45 },
46 {
47 "type": "string",
48 "description": "The main or canonical unicode for the icon."
49 },
50 {
51 "oneOf": [
52 {
53 "type": "string",
54 "description": "The single SVG path data as a string, for a monotone icon. Used in a d attribute of an SVG path element."
55 },
56 {
57 "type": "array",
58 "minItems": 2,
59 "maxItems": 2,
60 "items": {
61 "type": "string"
62 },
63 "description": "Array of SVG path data string, for a duotone icon. A duotone icon always has two paths, even if one is an empty string. Each is used in the d attribute of an SVG path element. Secondary path is listed first, primary is listed second."
64 }
65 ],
66 "description": "SVG path data. A monotone icon always has a single path as a string. A duotone icon always has two paths as an array of strings."
67 }
68 ],
69 "description": "Icon dimensions, paths, and unicode."
70 }
71 },
72 "additionalProperties": false
73 }