You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: descriptor.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ The following fields contain the primary properties that constitute a Descriptor
19
19
-**`mediaType`***string*
20
20
21
21
This REQUIRED property contains the media type of the referenced content.
22
-
Values MUST comply with [RFC 6838][rfc6838], including the [naming requirements in its section 4.2][rfc6838-s4.2].
22
+
Values MUST comply with the [media type syntax](media-types.md#media-type-syntax).
23
23
24
24
The OCI image specification defines [several of its own MIME types](media-types.md) for resources defined in the specification.
25
25
@@ -56,7 +56,7 @@ The following fields contain the primary properties that constitute a Descriptor
56
56
57
57
This OPTIONAL property contains the type of an artifact when the descriptor points to an artifact.
58
58
This is the value of the config descriptor `mediaType` when the descriptor references an [image manifest](manifest.md).
59
-
If defined, the value MUST comply with [RFC 6838][rfc6838], including the [naming requirements in its section 4.2][rfc6838-s4.2], and MAY be registered with [IANA][iana].
59
+
If defined, the value MUST comply with the [media type syntax](media-types.md#media-type-syntax).
60
60
61
61
Descriptors pointing to [`application/vnd.oci.image.manifest.v1+json`](manifest.md) SHOULD include the extended field `platform`, see [Image Index Property Descriptions](image-index.md#image-index-property-descriptions) for details.
62
62
@@ -214,8 +214,5 @@ In the following example, the descriptor indicates the type of artifact it is re
Copy file name to clipboardExpand all lines: image-index.md
+1-4Lines changed: 1 addition & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ For the media type(s) that this document is compatible with, see the [matrix][ma
25
25
-**`artifactType`***string*
26
26
27
27
This OPTIONAL property contains the type of an artifact when the manifest is used for an artifact.
28
-
If defined, the value MUST comply with [RFC 6838][rfc6838], including the [naming requirements in its section 4.2][rfc6838-s4.2], and MAY be registered with [IANA][iana].
28
+
If defined, the value MUST comply with the [media type syntax](media-types.md#media-type-syntax).
29
29
30
30
-**`manifests`***array of objects*
31
31
@@ -183,8 +183,5 @@ These values SHOULD match (or be similar to) their analog listed in [the Go Lang
Copy file name to clipboardExpand all lines: manifest.md
+3-6Lines changed: 3 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Unlike the [image index](image-index.md), which contains information about a set
30
30
31
31
This OPTIONAL property contains the type of an artifact when the manifest is used for an artifact.
32
32
This MUST be set when `config.mediaType` is set to the [empty value](#guidance-for-an-empty-descriptor).
33
-
If defined, the value MUST comply with [RFC 6838][rfc6838], including the [naming requirements in its section 4.2][rfc6838-s4.2], and MAY be registered with [IANA][iana].
33
+
If defined, the value MUST comply with the [media type syntax](media-types.md#media-type-syntax).
34
34
Implementations storing or copying image manifests MUST NOT error on encountering an `artifactType` that is unknown to the implementation.
35
35
36
36
-**`config`***[descriptor](descriptor.md)*
@@ -53,7 +53,7 @@ Unlike the [image index](image-index.md), which contains information about a set
53
53
Manifests for container images concerned with portability SHOULD use one of the above media types.
54
54
Manifests for artifacts concerned with portability SHOULD use `config.mediaType` as described in [Guidelines for Artifact Usage](#guidelines-for-artifact-usage).
55
55
56
-
If the manifest uses a different media type than the above, it MUST comply with [RFC 6838][rfc6838], including the [naming requirements in its section 4.2][rfc6838-s4.2], and MAY be registered with [IANA][iana].
56
+
If the manifest uses a different media type than the above, it MUST comply with the [media type syntax](media-types.md#media-type-syntax).
57
57
58
58
To set an effectively null or empty config and maintain portability see the [guidance for an empty descriptor](#guidance-for-an-empty-descriptor) below, and `DescriptorEmptyJSON` of the reference code.
59
59
@@ -89,7 +89,7 @@ Unlike the [image index](image-index.md), which contains information about a set
89
89
90
90
Entries in this field will frequently use the `+gzip` types.
91
91
92
-
If the manifest uses a different media type than the above, it MUST comply with [RFC 6838][rfc6838], including the [naming requirements in its section 4.2][rfc6838-s4.2], and MAY be registered with [IANA][iana].
92
+
If the manifest uses a different media type than the above, it MUST comply with the [media type syntax](media-types.md#media-type-syntax).
93
93
94
94
See [Guidelines for Artifact Usage](#guidelines-for-artifact-usage) for other uses of the `layers`.
95
95
@@ -260,7 +260,4 @@ The decision tree below and the associated examples MAY be used to design new ar
260
260
_Implementers note:_ artifacts have historically been created without an `artifactType` field, and tooling to work with artifacts should fallback to the `config.mediaType` value.
Copy file name to clipboardExpand all lines: media-types.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,17 @@ The following media types identify a ["Layer" with distribution restrictions](la
18
18
-`application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`: ["Layer", as a tar archive with distribution restrictions](layer.md#gzip-media-types) compressed with [gzip][rfc1952]
19
19
-`application/vnd.oci.image.layer.nondistributable.v1.tar+zstd`: ["Layer", as a tar archive with distribution restrictions](layer.md#zstd-media-types) compressed with [zstd][rfc8478]
20
20
21
+
## Media Type Syntax
22
+
23
+
Media types values MUST comply with [RFC 6838][rfc6838], including the [naming requirements in its section 4.2][rfc6838-s4.2], and MAY be registered with [IANA][iana].
24
+
Media types values MUST have a top-level type and subtype name, separated by a `/`, without any parameters.
25
+
26
+
The following regular expression may be used to validate media types:
[Blob](image-layout.md) retrieval methods MAY return media type metadata.
@@ -86,5 +97,8 @@ The following figure shows how the above media types reference each other:
86
97
[Descriptors](descriptor.md) are used for all references.
87
98
The image-index being a "fat manifest" references a list of image manifests per target platform. An image manifest references exactly one target configuration and possibly many layers.
0 commit comments