-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathchanneldata-1.schema.json
110 lines (110 loc) · 3.25 KB
/
channeldata-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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://schemas.conda.io/channeldata-1.schema.json",
"type": "object",
"title": "channeldata.json",
"description": "The channeldata file contains information that is common to the channel as a whole. Split out by package name, the information for each package name should be the latest available and consistent across all subdirs.",
"required": [
"schema_version"
],
"properties": {
"$schema": {
"type": "string",
"const": "https://schemas.conda.io/channeldata-1.schema.json",
"format": "uri"
},
"schema_version": {
"type": "integer",
"description": "The API version or schema version of the channeldata file.",
"const": 1
},
"packages": {
"description": "The value for each key is a package name contained within the channel.",
"patternProperties": {
"^[a-z0-9_](?!_)[._-]?([a-z0-9]+(\\.|-|_|$))*$": {
"$ref": "#/definitions/channeldata_record"
}
},
"additionalProperties": false
},
"subdirs": {
"type": "array",
"items": {"$ref": "common-1.schema.json#/definitions/subdir"},
"description": "All subdirs contained within the channel."
}
},
"definitions": {
"channeldata_record": {
"$id": "#/definitions/channeldata_record",
"type": "object",
"description": "Information about the latest version of each package name contained within the channel.",
"required": [
"reference_package",
"version"
],
"properties": {
"description": {
"type": "string"
},
"dev_url": {
"type": "string",
"format": "uri"
},
"doc_source_url": {
"type": "string",
"format": "uri"
},
"doc_url": {
"type": "string",
"format": "uri"
},
"home": {
"type": "string",
"format": "uri"
},
"icon_hash": {
"oneOf": [
{
"type": "string",
"pattern": "^md5:[0-9a-f]{32}$"
},
{
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
}
]
},
"icon_url": {
"type": "string",
"pattern": "^icons/.+$"
},
"license": {
"type": "string"
},
"license_family": {"$ref": "common-1.schema.json#/definitions/license_family"},
"spdx_license": {"$ref": "common-1.schema.json#/definitions/spdx_license"},
"source_git_url": {
"type": "string",
"format": "uri"
},
"reference_package": {
"type": "string",
"description": "The {subdir}/{fn} that was used to create the entry in channeldata."
},
"source_url": {
"type": "string",
"format": "uri"
},
"subdirs": {
"type": "array",
"items": {"$ref": "common-1.schema.json#/definitions/subdir"}
},
"summary": {
"type": "string"
},
"timestamp": {"$ref": "common-1.schema.json#/definitions/timestamp"},
"version": {"$ref": "common-1.schema.json#/definitions/package_version"}
}
}
}
}