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: config.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -248,7 +248,7 @@ Note: Any OPTIONAL field MAY also be set to null, which is equivalent to being a
248
248
This field is used to mark if the history item created a filesystem diff.
249
249
It is set to true if this history item doesn't correspond to an actual layer in the rootfs section (for example, Dockerfile's [ENV](https://docs.docker.com/engine/reference/builder/#/env) command results in no change to the filesystem).
250
250
251
-
Any extra fields in the Image JSON struct are considered implementation specific and MUST be ignored by any implementations which are unable to interpret them.
251
+
Any extra fields in the Image JSON struct are considered implementation specific and MUST NOT generate an error by any implementations which are unable to interpret them.
252
252
253
253
Whitespace is OPTIONAL and implementations MAY have compact JSON with no whitespace.
Copy file name to clipboardExpand all lines: considerations.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,12 @@
1
1
# Extensibility
2
2
3
-
Implementations that are reading/processing [manifests](manifest.md) or [image indexes](image-index.md) MUST NOT generate an error if they encounter an unknown property.
4
-
Instead they MUST ignore unknown properties.
3
+
Implementations storing or copying content MUST NOT modify or alter the content in a way that would change the digest of the content. Examples of these implementations include:
4
+
* A [registry implementing the distribution specification](https://github.com/opencontainers/distribution-spec/blob/main/spec.md#definitions), including local registries, caching proxies
5
+
* An application which copies content to disk or between registries
6
+
7
+
Implementations processing content SHOULD NOT generate an error if they encounter an unknown property in a known media type. Examples of these implementations include:
8
+
* A [runtime implementing the runtime specification](https://github.com/opencontainers/runtime-spec/blob/main/spec.md)
9
+
* An implementation using OCI to retrieve and utilize artifacts, e.g.: a WASM runtime
Copy file name to clipboardExpand all lines: image-layout.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ This index provides an established path (`/index.json`) to have an entry point f
147
147
* No semantic restriction is given for the "org.opencontainers.image.ref.name" annotation of descriptors.
148
148
* In general the `mediaType` of each [descriptor][descriptors] object in the `manifests` field will be either `application/vnd.oci.image.index.v1+json` or `application/vnd.oci.image.manifest.v1+json`.
149
149
* Future versions of the spec MAY use a different mediatype (i.e. a new versioned format).
150
-
* An encountered `mediaType` that is unknown SHOULD be safely ignored.
150
+
* An encountered `mediaType` that is unknown MUST NOT generate an error.
Copy file name to clipboardExpand all lines: manifest.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ Unlike the [image index](image-index.md), which contains information about a set
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
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].
34
+
Implementations storing or copying image manifests MUST NOT error on encountering an `artifactType` that is unknown to the implementation.
34
35
35
36
-**`config`***[descriptor](descriptor.md)*
36
37
@@ -40,6 +41,11 @@ Unlike the [image index](image-index.md), which contains information about a set
40
41
-**`mediaType`***string*
41
42
42
43
This [descriptor property](descriptor.md#properties) has additional restrictions for `config`.
44
+
45
+
Implementations MUST NOT attempt to parse the referenced content if this media type is unknown and instead consider the referenced content as arbitrary binary data (e.g.: as `application/octet-stream`).
46
+
47
+
Implementations storing or copying image manifests MUST NOT error on encountering a value that is unknown to the implementation.
48
+
43
49
Implementations MUST support at least the following media types:
0 commit comments