-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnodes.schema.json
98 lines (96 loc) · 2.33 KB
/
nodes.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "urn:uuid:feee8b93-7192-4034-b404-a7fd1b9b5a12",
"title": "Schema for declaring CircuiTikZ node- and path-style components",
"type": "object",
"definitions": {
"symbolBase": {
"type": "object",
"properties": {
"displayName": {
"title": "The name to show in the UI",
"type": "string",
"minLength": 1
},
"groupName": {
"title": "The name of the group, e.g. Transistors",
"type": "string",
"minLength": 1
},
"options": {
"title": "A list of options to set in CircuiTikZ",
"type": "array",
"items": {
"oneOf": [
{ "type": "string", "minLength": 1 },
{ "type": "array", "minLength": 2, "maxLength": 2, "items": { "type": "string" } }
]
},
"uniqueItems": true
},
"pins": {
"title": "A list of CircuiTikZ pin (anchor) names",
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true
}
}
}
},
"properties": {
"nodes": {
"title": "Definitions of node-style components",
"type": "array",
"items": {
"type": "object",
"allOf": [{ "$ref": "#/definitions/symbolBase" }],
"properties": {
"name": {
"title": "The CircuiTikZ node name, e.g. nigfete for a n channel MOSFET",
"type": "string",
"minLength": 1
}
},
"required": ["name"]
}
},
"path": {
"title": "Definitions of path-style components",
"type": "array",
"items": {
"type": "object",
"allOf": [{ "$ref": "#/definitions/symbolBase" }],
"properties": {
"drawName": {
"title": "The unique (!) CircuiTikZ name used in to[...], e.g. american resistor (not R) for an resistor",
"type": "string",
"minLength": 1
},
"aliases": {
"title": "Additional names which can be used in to[...]",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"shapeName": {
"title": "The shape name used internally by CircuiTikZ; can be used to create a node",
"type": "string",
"minLength": 1
},
"stroke": {
"title": "Draw a line through the component",
"type": "boolean",
"default": false
}
},
"required": ["drawName"]
}
}
},
"required": ["nodes", "path"]
}