-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathrepodata-1.schema.json
94 lines (94 loc) · 2.53 KB
/
repodata-1.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
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
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://schemas.conda.io/repodata-1.schema.json",
"type": "object",
"title": "repodata.json",
"$comment": "TODO add back to required: repodata_version",
"required": [
"info"
],
"properties": {
"$schema": {
"type": "string",
"const": "https://schemas.conda.io/repodata-1.schema.json",
"format": "uri"
},
"repodata_version": {
"type": "integer",
"title": "The API version or schema version of the repodata file.",
"const": 1
},
"info": {
"type": "object",
"properties": {
"subdir": {
"$ref": "common-1.schema.json#/definitions/subdir"
}
},
"required": ["subdir"]
},
"packages": {
"type": "object",
"title": "Metadata for 'v1' .tar.bz2 Conda packages.",
"description": "Filename key of each package should be validated against {name}-{version}-{build}{ext} metadata for the package.",
"patternProperties": {
"^.+\\.tar\\.bz2$": {"$ref": "repodata-record-1.schema.json"}
},
"additionalProperties": false
},
"packages.conda": {
"type": "object",
"title": "Metadata for 'v2' .conda Conda packages.",
"description": "Filename key of each package should be validated against {name}-{version}-{build}{ext} metadata for the package.",
"patternProperties": {
"^.+\\.conda$": {"$ref": "repodata-record-1.schema.json"}
},
"additionalProperties": false
},
"removed": {
"type": "array",
"items": {
"type": "string",
"pattern": "^.+(\\.tar\\.bz2)|(\\.conda)$",
"description": "Packages that had previously been in this repodata file but have now been removed.",
"examples": [
"blinker-1.4-py37_0.tar.bz2",
"blinker-1.4-py37_0.conda"
]
}
},
"signatures": {
"type": "object",
"patternProperties": {
"^.+(\\.tar\\.bz2)|(\\.conda)$": {"$ref": "#/definitions/signature"}
},
"additionalProperties": false
}
},
"definitions": {
"signature": {
"type": "object",
"properties": {
"metadata_sha256": {
"type": "string"
},
"metadata_size": {
"type": "integer",
"minimum": 0
},
"sig": {
"type": "string"
},
"key": {
"type": "string"
}
},
"required": [
"metadata_sha256",
"metadata_size",
"sig",
"key"
]
}
}
}