forked from opencontainers/artifacts
-
Notifications
You must be signed in to change notification settings - Fork 2
/
artifactTypeSchema.0.1.json
173 lines (173 loc) · 5.22 KB
/
artifactTypeSchema.0.1.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
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
172
173
{
"definitions": {},
"type": "object",
"title": "The Root Schema",
"required": [
"mediaType",
"title",
"description",
"layerMediaTypes"
],
"properties": {
"mediaType": {
"$id": "#/properties/mediaType",
"type": "string",
"description": "Collection of localized titles, which may be displayed in registry and tool artifact listing.",
"default": "application/vnd.unknown.config.v1+json",
"examples": [
"application/vnd.unknown.config.v1+json"
],
"minLength": 35,
"maxLength": 100
},
"title": {
"$id": "#/properties/title",
"type": "object",
"description": "Collection of localized titles, which may be displayed in registry and tool artifact listing.",
"required": [
"locale",
"title"
],
"properties": {
"locale": {
"$id": "#/properties/title/items/properties/locale",
"type": "string",
"description": "language-locale ISO code",
"default": "en-US",
"examples": [
"en-US"
],
"minLength": 5,
"maxLength": 5
},
"title": {
"$id": "#/properties/title/items/properties/title",
"type": "string",
"description": "Localized title of the artifact type.",
"default": "",
"examples": [
"Unknown type"
],
"minLength": 3,
"maxLength": 30
}
}
},
"description": {
"$id": "#/properties/description",
"type": "object",
"description": "Provides a short description of the type for human consumption.",
"required": [
"locale",
"description"
],
"properties": {
"locale": {
"$id": "#/properties/title/properties/locale",
"type": "string",
"description": "language-locale ISO code",
"default": "en-US",
"examples": [
"en-US"
],
"minLength": 5,
"maxLength": 5
},
"description": {
"$id": "#/properties/description/properties/description",
"type": "string",
"description": "Localized description of the artifact type.",
"examples": [
"Unknown type"
],
"minLength": 5,
"maxLength": 255
}
}
},
"specUrl": {
"$id": "#/properties/specUrl",
"type": "string",
"description": "References a spec, providing additional details on the type.",
"format": "url"
},
"moreInfoUrl": {
"$id": "#/properties/moreInfoUrl",
"type": "string",
"description": "Provides additional details, intended for consumers of the type.",
"format": "url"
},
"tools": {
"$id": "#/properties/tools",
"type": "array",
"description": "Provides a collection of tools that may be used with artifact type.",
"items": {
"$id": "#/properties/tools/items",
"type": "object",
"required": [
"url",
"title"
],
"properties": {
"url": {
"$id": "#/properties/tools/items/properties/url",
"type": "string",
"description": "Links to a page where users can download the tool."
},
"title": {
"$id": "#/properties/tools/items/properties/title",
"type": "object",
"description": "Represents the name of the tool, displayed for human consumption.",
"required": [
"locale",
"title"
],
"properties": {
"locale": {
"$id": "#/properties/tools/items/properties/title/items/properties/locale",
"type": "string",
"description": "language-locale ISO code",
"default": "en-US",
"examples": [
"en-US"
],
"minLength": 5,
"maxLength": 5
},
"title": {
"$id": "#/properties/tools/items/properties/title/items/properties/title",
"type": "string",
"description": "Localized name of the tool, displayed for human consumption.",
"minLength": 3,
"maxLength": 30
}
}
}
}
}
},
"configSchemaReference": {
"$id": "#/properties/configSchemaReference",
"type": "string",
"description": "provides a schema reference for the artifact config object.",
"format": "url"
},
"layerMediaTypes": {
"$id": "#/properties/layerMediaTypes",
"type": "array",
"description": "Represents one or more layer mediaTypes, defined by the artifact.",
"items": {
"$id": "#/properties/layerMediaTypes/items",
"type": "string",
"default": "application/vnd.oci.unknown.layer.v1.tar",
"examples": [
"application/vnd.oci.unknown.layer.v1.bin",
"application/vnd.oci.unknown.layer.v1.json",
"application/vnd.oci.unknown.layer.v1.tar",
"application/vnd.oci.unknown.layer.v1.txt",
"application/vnd.oci.unknown.layer.v1.yaml"
]
}
}
}
}