Skip to content

Commit bcb75b0

Browse files
committed
descriptor: Require RFC-6838-compliant mediaTypes
Restore the MUST which was removed from the 15f9f74 version of this commit. My personal preference would be to just say: Values MUST comply with [RFC 6838][rfc6838]. But Stephen wanted a direct reference to 4.2 as well [1]. [1]: opencontainers#448 (comment) Signed-off-by: W. Trevor King <[email protected]>
1 parent 3751369 commit bcb75b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

descriptor.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ The following fields contain the primary properties that constitute a Descriptor
1919

2020
- **`mediaType`** *string*
2121

22-
This REQUIRED property contains the MIME type of the referenced content.
22+
This REQUIRED property contains the media type of the referenced content.
23+
Values MUST comply with [RFC 6838][rfc6838], including the [naming requirements in its section 4.2][rfc6838-s4.2].
2324

2425
The OCI image specification defines [several of its own MIME types](media-types.md) for resources defined in the specification.
2526

@@ -139,4 +140,6 @@ In the following example, the descriptor indicates that the referenced manifest
139140
```
140141

141142
[rfc3986]: https://tools.ietf.org/html/rfc3986
143+
[rfc6838]: https://tools.ietf.org/html/rfc6838
144+
[rfc6838-s4.2]: https://tools.ietf.org/html/rfc6838#section-4.2
142145
[rfc7230-s2.7]: https://tools.ietf.org/html/rfc7230#section-2.7

0 commit comments

Comments
 (0)