-
Notifications
You must be signed in to change notification settings - Fork 61
/
schema-manufacturers.json
43 lines (41 loc) · 1.02 KB
/
schema-manufacturers.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/FloEdelmann/open-fixture-library/master/schema-manufacturers.json",
"version": "5.0.0",
"type": "object",
"propertyNames": {
"$comment": "manufacturer key",
"type": "string",
"pattern": "^[a-z0-9\\-]+$|^\\$"
},
"additionalProperties": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[^\n]+$"
},
"comment": {
"type": "string",
"minLength": 1
},
"website": {
"type": "string",
"pattern": "^(ftp|http|https):\\/\\/[^ \"]+$"
},
"rdmId": {
"type": "integer",
"minimum": 0,
"maximum": 65536
}
},
"required": ["name"],
"additionalProperties": false
},
"required": ["$schema"],
"patternProperties": {
"^\\$schema$": {
"enum": ["https://raw.githubusercontent.com/FloEdelmann/open-fixture-library/master/schema-manufacturers.json"]
}
}
}