Skip to content

Commit 8758545

Browse files
committed
Add clarifaction for WASM usecase
1 parent 93f6e65 commit 8758545

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

artifacts-guidance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Guidance for Artifacts Authors
22

33
Content other than OCI container images MAY be packaged using the image manifest.
4-
When this is done, the `config.mediaType` value should not be a known OCI image config [media type](media-types.md).
5-
Historically, due to registry limitations, some tools have created non-OCI conformant artifacts using the `application/vnd.oci.image.config.v1+json` value for `config.mediaType` and values specific to the artifact in `layer[*].mediaType`.
4+
When this is done, the `config.mediaType` value MAY not be a known OCI image config [media type](media-types.md).
5+
Historically, due to registry limitations, some tools have created non-OCI conformant artifacts using the `application/vnd.oci.image.config.v1+json` value for `config.mediaType` and values specific to the artifact in `layer[*].mediaType`. In some cases, the `application/vnd.oci.image.config.v1+json` may still be appropriate if the artifact is to be run via a runtime.
66
Implementation details and examples are provided in the [image manifest specification](manifest.md#guidelines-for-artifact-usage).

manifest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ The decision tree below and the associated examples MAY be used to design new ar
255255
}
256256
```
257257

258+
In the case where the artifact may be run by a runtime the `config.medaType` MAY be `application/vnd.oci.image.config.v1+json`.
259+
258260
_Implementers note:_ artifacts have historically been created without an `artifactType` field, and tooling to work with artifacts should fallback to the `config.mediaType` value.
259261

260262
[iana]: https://www.iana.org/assignments/media-types/media-types.xhtml

0 commit comments

Comments
 (0)