1{
2 "description": "OpenContainer Image Index Specification",
3 "$schema": "http://json-schema.org/draft-04/schema#",
4 "id": "https://opencontainers.org/schema/image/index",
5 "type": "object",
6 "properties": {
7 "schemaVersion": {
8 "description": "This field specifies the image index schema version as an integer",
9 "id": "https://opencontainers.org/schema/image/index/schemaVersion",
10 "type": "integer",
11 "minimum": 2,
12 "maximum": 2
13 },
14 "mediaType": {
15 "description": "the mediatype of the referenced object",
16 "$ref": "defs-descriptor.json#/definitions/mediaType"
17 },
18 "artifactType": {
19 "description": "the artifact mediatype of the referenced object",
20 "$ref": "defs-descriptor.json#/definitions/mediaType"
21 },
22 "subject": {
23 "$ref": "content-descriptor.json"
24 },
25 "manifests": {
26 "type": "array",
27 "items": {
28 "id": "https://opencontainers.org/schema/image/manifestDescriptor",
29 "type": "object",
30 "required": [
31 "mediaType",
32 "size",
33 "digest"
34 ],
35 "properties": {
36 "mediaType": {
37 "description": "the mediatype of the referenced object",
38 "$ref": "defs-descriptor.json#/definitions/mediaType"
39 },
40 "size": {
41 "description": "the size in bytes of the referenced object",
42 "$ref": "defs.json#/definitions/int64"
43 },
44 "digest": {
45 "description": "the cryptographic checksum digest of the object, in the pattern '<algorithm>:<encoded>'",
46 "$ref": "defs-descriptor.json#/definitions/digest"
47 },
48 "urls": {
49 "description": "a list of urls from which this object may be downloaded",
50 "$ref": "defs-descriptor.json#/definitions/urls"
51 },
52 "platform": {
53 "id": "https://opencontainers.org/schema/image/platform",
54 "type": "object",
55 "required": [
56 "architecture",
57 "os"
58 ],
59 "properties": {
60 "architecture": {
61 "id": "https://opencontainers.org/schema/image/platform/architecture",
62 "type": "string"
63 },
64 "os": {
65 "id": "https://opencontainers.org/schema/image/platform/os",
66 "type": "string"
67 },
68 "os.version": {
69 "id": "https://opencontainers.org/schema/image/platform/os.version",
70 "type": "string"
71 },
72 "os.features": {
73 "id": "https://opencontainers.org/schema/image/platform/os.features",
74 "type": "array",
75 "items": {
76 "type": "string"
77 }
78 },
79 "variant": {
80 "type": "string"
81 }
82 }
83 },
84 "annotations": {
85 "id": "https://opencontainers.org/schema/image/descriptor/annotations",
86 "$ref": "defs-descriptor.json#/definitions/annotations"
87 }
88 }
89 }
90 },
91 "annotations": {
92 "id": "https://opencontainers.org/schema/image/index/annotations",
93 "$ref": "defs-descriptor.json#/definitions/annotations"
94 }
95 },
96 "required": [
97 "schemaVersion",
98 "manifests"
99 ]
100}
View as plain text