-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathv0.0.2.json
More file actions
171 lines (171 loc) · 6.84 KB
/
v0.0.2.json
File metadata and controls
171 lines (171 loc) · 6.84 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://wheelnext.dev/variants.json",
"title": "{name}-{version}-variants.json",
"description": "Combined index metadata for wheel variants",
"type": "object",
"properties": {
"default-priorities": {
"description": "Default provider priorities",
"type": "object",
"properties": {
"namespace": {
"description": "Default namespace priorities",
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_]+$"
},
"minItems": 1,
"uniqueItems": true
},
"feature": {
"description": "Default feature priorities (by namespace)",
"type": "object",
"patternProperties": {
"^[a-z0-9_]+$": {
"description": "Preferred features",
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_]+$"
},
"minItems": 0,
"uniqueItems": true
}
},
"additionalProperties": false,
"uniqueItems": true
},
"property": {
"description": "Default property priorities (by namespace)",
"type": "object",
"patternProperties": {
"^[a-z0-9_]+$": {
"description": "Default property priorities (by feature) name",
"type": "object",
"patternProperties": {
"^[a-z0-9_]+$": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_.]+$"
},
"minItems": 0,
"uniqueItems": true
}
},
"additionalProperties": false,
"uniqueItems": true
}
},
"additionalProperties": false,
"uniqueItems": true
}
},
"additionalProperties": false,
"uniqueItems": true,
"required": [
"namespace"
]
},
"providers": {
"description": "Mapping of namespaces to provider information",
"type": "object",
"patternProperties": {
"^[A-Za-z0-9_]+$": {
"type": "object",
"description": "Provider information",
"properties": {
"plugin-api": {
"description": "Object reference to plugin class",
"type": "string",
"pattern": "^([a-zA-Z0-9._]+ *: *[a-zA-Z0-9._]+)|([a-zA-Z0-9._]+)$"
},
"enable-if": {
"description": "Environment marker specifying when to enable the plugin",
"type": "string",
"minLength": 1
},
"optional": {
"description": "Whether the provider is optional",
"type": "boolean"
},
"plugin-use": {
"description": "Whether a plugin is used: not at all, at build time or both at build and install time",
"type": "string",
"enum": ["none", "build", "all"]
},
"requires": {
"description": "Dependency specifiers for how to install the plugin",
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"minItems": 0,
"uniqueItems": true
}
},
"additionalProperties": false,
"uniqueItems": true,
"if": {
"properties": {
"plugin-use": {
"const": "none"
}
},
"required": [
"plugin-use"
]
},
"else": {
"required": [
"requires"
]
}
}
},
"additionalProperties": false,
"uniqueItems": true
},
"variants": {
"description": "Mapping of variant labels to properties",
"type": "object",
"patternProperties": {
"^[a-z0-9_.]{1,16}$": {
"type": "object",
"description": "Mapping of namespaces in a variant",
"patternProperties": {
"^[a-z0-9_.]+$": {
"patternProperties": {
"^[a-z0-9_.]+$": {
"description": "list of possible values for this variant feature.",
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z0-9_.]+$"
},
"minItems": 1,
"uniqueItems": true
}
},
"uniqueItems": true,
"additionalProperties": false
}
},
"uniqueItems": true,
"additionalProperties": false
}
},
"additionalProperties": false,
"uniqueItems": true
}
},
"required": [
"default-priorities",
"providers",
"variants"
],
"uniqueItems": true
}