Skip to content

Commit 818a56a

Browse files
committed
1 parent 363d55a commit 818a56a

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed

schema/defs-image.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"description": "Definitions particular to OpenContainer Image Specification",
3+
"definitions": {
4+
"mediaType": {
5+
"id": "https://opencontainers.org/schema/image/mediaType",
6+
"type": "string",
7+
"pattern": "^[a-z]+/[0-9a-zA-Z.+]+$"
8+
},
9+
"blobObject": {
10+
"id": "https://opencontainers.org/schema/image/blobObject",
11+
"type": "object",
12+
"required": [
13+
"mediaType",
14+
"size",
15+
"digest"
16+
],
17+
"properties": {
18+
"mediaType": {
19+
"description": "the mediatype of the referenced object",
20+
"$ref": "#definitions/mediaType"
21+
},
22+
"size": {
23+
"description": "the size in bytes of the referenced object",
24+
"type": "integer"
25+
},
26+
"digest": {
27+
"description": "the cryptographic checksum digest of this object, in the pattern '<hash>:<hexadecimal digest>'",
28+
"type": "string",
29+
"pattern": "^[a-z0-9]+:[a-fA-F0-9]+$"
30+
}
31+
}
32+
},
33+
"platform": {
34+
"id": "https://opencontainers.org/schema/image/platform",
35+
"type": "object",
36+
"required": [
37+
"arch",
38+
"os"
39+
],
40+
"properties": {
41+
"arch": {
42+
"id": "https://opencontainers.org/schema/image/platform/arch",
43+
"type": "string"
44+
},
45+
"os": {
46+
"id": "https://opencontainers.org/schema/image/platform/os",
47+
"type": "string"
48+
}
49+
}
50+
}
51+
}
52+
}

schema/image-manifest-schema.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"description": "OpenContainer Image Manifest Specification",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"id": "https://opencontainers.org/schema/image/manifest",
5+
"type": "object",
6+
"properties": {
7+
"schemaVersion": {
8+
"description": "This field specifies the image manifest schema version as an integer",
9+
"id": "https://opencontainers.org/schema/image/manifest/schemaVersion",
10+
"type": "integer"
11+
},
12+
"mediaType": {
13+
"id": "https://opencontainers.org/schema/image/manifest/mediaType",
14+
"$ref": "defs-image.json#/definitions/mediaType"
15+
},
16+
"config": {
17+
"$ref": "defs-image.json#/definitions/blobObject"
18+
},
19+
"layers": {
20+
"type": "array",
21+
"items": {
22+
"$ref": "defs-image.json#/definitions/blobObject"
23+
}
24+
},
25+
"annotations": {
26+
"id": "https://opencontainers.org/schema/image/manifest/annotations",
27+
"oneOf": [
28+
{
29+
"$ref": "defs.json#/definitions/mapStringString"
30+
},
31+
{
32+
"type": "null"
33+
}
34+
]
35+
}
36+
},
37+
"required": [
38+
"schemaVersion",
39+
"mediaType",
40+
"config",
41+
"layers"
42+
]
43+
}

0 commit comments

Comments
 (0)