|
1 | 1 | { |
2 | 2 | "description": "Definitions particular to OpenContainer Image Specification", |
3 | 3 | "definitions": { |
4 | | - "mediaType": { |
5 | | - "id": "https://opencontainers.org/schema/image/mediaType", |
6 | | - "type": "string", |
7 | | - "pattern": "^[A-Za-z0-9][A-Za-z0-9!#$&-^_.+]{0,126}/[A-Za-z0-9][A-Za-z0-9!#$&-^_.+]{0,126}$" |
8 | | - }, |
9 | | - "digest": { |
10 | | - "description": "the cryptographic checksum digest of the object, in the pattern '<hash>:<hexadecimal digest>'", |
11 | | - "type": "string", |
12 | | - "pattern": "^[a-z0-9_+.-]+:[a-f0-9]+$" |
13 | | - }, |
14 | 4 | "manifestDescriptor": { |
15 | 5 | "id": "https://opencontainers.org/schema/image/manifestDescriptor", |
16 | 6 | "type": "object", |
|
22 | 12 | "properties": { |
23 | 13 | "mediaType": { |
24 | 14 | "description": "the mediatype of the referenced object", |
25 | | - "$ref": "#/definitions/mediaType" |
| 15 | + "$ref": "defs-descriptor.json#/definitions/mediaType" |
26 | 16 | }, |
27 | 17 | "size": { |
28 | 18 | "description": "the size in bytes of the referenced object", |
29 | 19 | "$ref": "defs.json#/definitions/int64" |
30 | 20 | }, |
31 | 21 | "digest": { |
32 | 22 | "description": "the cryptographic checksum digest of the object, in the pattern '<hash>:<hexadecimal digest>'", |
33 | | - "$ref": "#/definitions/digest" |
| 23 | + "$ref": "defs-descriptor.json#/definitions/digest" |
34 | 24 | }, |
35 | 25 | "urls": { |
36 | 26 | "description": "a list of urls from which this object may be downloaded", |
37 | | - "type": "array", |
38 | | - "items": { |
39 | | - "type": "string", |
40 | | - "format": "uri" |
41 | | - } |
| 27 | + "$ref": "defs-descriptor.json#/definitions/urls" |
42 | 28 | }, |
43 | 29 | "platform": { |
44 | 30 | "id": "https://opencontainers.org/schema/image/platform", |
|
80 | 66 | }, |
81 | 67 | "annotations": { |
82 | 68 | "id": "https://opencontainers.org/schema/image/descriptor/annotations", |
83 | | - "$ref": "#/definitions/annotations" |
| 69 | + "$ref": "defs-descriptor.json#/definitions/annotations" |
84 | 70 | } |
85 | 71 | } |
86 | | - }, |
87 | | - "annotations": { |
88 | | - "id": "https://opencontainers.org/schema/image/annotations", |
89 | | - "$ref": "defs.json#/definitions/mapStringString" |
90 | 72 | } |
91 | 73 | } |
92 | 74 | } |
0 commit comments