Skip to content

Commit 24027e1

Browse files
authored
Merge pull request #1010 from imjasonh/media-type-iana
Require IANA mediaType for image config.mediaType and layers.mediaType
2 parents a914a16 + 336b02c commit 24027e1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

manifest.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Unlike the [image index](image-index.md), which contains information about a set
4040

4141
Manifests concerned with portability SHOULD use one of the above media types.
4242

43+
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].
44+
4345
- **`layers`** *array of objects*
4446

4547
Each item in the array MUST be a [descriptor](descriptor.md).
@@ -65,6 +67,8 @@ Unlike the [image index](image-index.md), which contains information about a set
6567

6668
Entries in this field will frequently use the `+gzip` types.
6769

70+
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].
71+
6872
- **`subject`** *[descriptor](descriptor.md)*
6973

7074
This OPTIONAL property specifies a [descriptor](descriptor.md) of another manifest.
@@ -117,3 +121,7 @@ Unlike the [image index](image-index.md), which contains information about a set
117121
}
118122
}
119123
```
124+
125+
[iana]: https://www.iana.org/assignments/media-types/media-types.xhtml
126+
[rfc6838]: https://tools.ietf.org/html/rfc6838
127+
[rfc6838-s4.2]: https://tools.ietf.org/html/rfc6838#section-4.2

0 commit comments

Comments
 (0)