From c6e8f6e31838065899e0e15312071d1846a492fb Mon Sep 17 00:00:00 2001 From: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com> Date: Thu, 13 Apr 2023 12:48:40 -0500 Subject: [PATCH] Update spec.md Co-authored-by: Jon Johnson Signed-off-by: Josh Dolitsky <393494+jdolitsky@users.noreply.github.com> --- spec.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.md b/spec.md index 4364995f..cdca9200 100644 --- a/spec.md +++ b/spec.md @@ -489,7 +489,7 @@ When pushing a manifest with the `subject` field and the [referrers API](#listin 1. If the tag returns a 404, the client MUST begin with an empty image index. 1. Verify the descriptor for the manifest is not already in the referrers list (duplicate entries SHOULD NOT be created). 1. Append a descriptor for the pushed manifest to the manifests in the referrers list. - The value of the `artifactType` MUST be set to the `artifactType` value in the image manifest. + The value of the `artifactType` MUST be set to the `artifactType` value in the image manifest, if present. If the `artifactType` is empty or missing in the image manifest, the value of `artifactType` MUST be set to the config descriptor `mediaType` value. All annotations from the image manifest MUST be copied to this descriptor. 1. Push the updated referrers list using the same [referrers tag schema](#referrers-tag-schema).