-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathshuttle.schema.json
64 lines (64 loc) · 2.16 KB
/
shuttle.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Tiny Tapeout Shuttle Info Schema",
"type": "object",
"properties": {
"version": { "type": "integer", "minimum": 3, "maximum": 3 },
"id": { "type": "string" },
"name": { "type": "string" },
"repo": { "type": "string", "format": "uri" },
"commit": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
"projects": {
"type": "array",
"items": {
"type": "object",
"properties": {
"macro": { "type": "string" },
"address": { "type": "integer" },
"title": { "type": "string" },
"author": { "type": "string" },
"description": { "type": "string" },
"clock_hz": { "type": "integer" },
"tiles": { "type": "string", "pattern": "^[1-8]+x[12]$" },
"analog_pins": {
"type": "array",
"items": { "type": "integer" }
},
"repo": { "type": "string", "format": "uri" },
"commit": { "type": "string", "pattern": "^[0-9a-f]{40}|$" },
"pinout": {
"type": "object",
"propertyNames": {
"pattern": "^[a-z_]+\\[\\d+\\]$"
},
"additionalProperties": { "type": "string" }
},
"danger_level": {
"type": "string",
"enum": ["unknown", "safe", "medium", "high"],
"default": "unknown",
"description": "Indicates the safety level of the design: 'safe' = design is safe to run, 'medium' = design can damage the ASIC under certain conditions, 'high' = design will damage the ASIC, 'unknown' = safety level is unknown"
},
"danger_reason": {
"type": "string",
"description": "Explanation of why the danger level is set to 'medium' or 'high'"
}
},
"required": [
"macro",
"address",
"title",
"author",
"description",
"clock_hz",
"tiles",
"analog_pins",
"repo",
"commit",
"pinout"
]
}
}
},
"required": ["version", "id", "name", "repo", "commit", "projects"]
}