Repository navigation
Expand file tree
/
Copy pathstation.schema.json
More file actions
78 lines (78 loc) · 1.52 KB
/
Copy pathstation.schema.json
File metadata and controls
78 lines (78 loc) · 1.52 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/AirwaveDB/database/blob/main/schema/station.schema.json",
"title": "AirwaveDB Station",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"name",
"country",
"subdivision",
"languages",
"categories",
"tags",
"homepage",
"favicon",
"type",
"sourceCount",
"updatedAt"
],
"properties": {
"id": {
"type": "string",
"pattern": "^awb_[0-9a-f]{20}$"
},
"name": {
"type": "string",
"minLength": 1
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"subdivision": {
"type": ["string", "null"]
},
"languages": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[a-z]{2,3}$"
}
},
"categories": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-]*$"
}
},
"tags": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string",
"minLength": 1
}
},
"homepage": {
"type": ["string", "null"]
},
"favicon": {
"type": ["string", "null"]
},
"type": {
"enum": ["public", "community", "college", "internet", null]
},
"sourceCount": {
"type": "integer",
"minimum": 1
},
"updatedAt": {
"type": ["string", "null"]
}
}
}