-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathAddonCatalog.schema.json
More file actions
91 lines (91 loc) · 2.21 KB
/
AddonCatalog.schema.json
File metadata and controls
91 lines (91 loc) · 2.21 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
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "AddonCatalog",
"description": "A catalog of addons indexed by addon ID. Each ID maps to a list of AddonCatalogEntry objects.",
"type": "object",
"properties": {
"$schema": {
"type": "string",
"format": "uri",
"description": "A link to the JSON Schema describing the structure of this file."
},
"_meta": {
"type": "object",
"description": "Metadata describing the catalog file itself.",
"properties": {
"description": {
"type": "string"
},
"schema_version": {
"type": "string"
}
},
"additionalProperties": true
}
},
"patternProperties": {
"^(?!\\$schema$|_meta$).+$": {
"type": "array",
"items": {
"type": "object",
"properties": {
"freecad_min": {
"type": "string",
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[\\da-zA-Z\\-.]+)?(?:\\+[\\da-zA-Z\\-.]+)?$"
},
"freecad_max": {
"type": "string",
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[\\da-zA-Z\\-.]+)?(?:\\+[\\da-zA-Z\\-.]+)?$"
},
"repository": {
"type": "string",
"format": "uri"
},
"git_ref": {
"type": "string"
},
"zip_url": {
"type": "string",
"format": "uri"
},
"note": {
"type": "string"
},
"branch_display_name": {
"type": "string"
},
"curated": {
"type": "boolean"
}
},
"anyOf": [
{
"required": [
"repository",
"git_ref"
]
},
{
"required": [
"zip_url"
]
}
],
"if": {
"not": {
"required": [
"git_ref"
]
}
},
"then": {
"required": [
"branch_display_name"
]
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}