Skip to content

Commit a7ac485

Browse files
Rename refers field to subject (#950)
Co-authored-by: Mike Brown <[email protected]> Signed-off-by: Sajay Antony <[email protected]>
1 parent decdb15 commit a7ac485

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

artifact.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ For the media type(s) that this is compatible with see the [matrix](media-types.
2828
Each descriptor represents an artifact of any IANA mediaType.
2929
The list MAY be ordered for certain artifact types like scan results.
3030

31-
- **`refers`** *[descriptor](descriptor.md)*
31+
- **`subject`** *[descriptor](descriptor.md)*
3232

3333
This OPTIONAL property specifies a [descriptor](descriptor.md) of another manifest.
3434
This value, used by the [`referrers` API](https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-referrers), indicates a relationship to the specified manifest.
@@ -57,7 +57,7 @@ For the media type(s) that this is compatible with see the [matrix](media-types.
5757
"digest": "sha256:87923725d74f4bfb94c9e86d64170f7521aad8221a5de834851470ca142da630"
5858
}
5959
],
60-
"refers": {
60+
"subject": {
6161
"mediaType": "application/vnd.oci.image.manifest.v1+json",
6262
"size": 1234,
6363
"digest": "sha256:cc06a2839488b8bd2a2b99dcdc03d5cfd818eed72ad08ef3cc197aac64c0d0a0"

manifest.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Unlike the [image index](image-index.md), which contains information about a set
6565

6666
Entries in this field will frequently use the `+gzip` types.
6767

68-
- **`refers`** *[descriptor](descriptor.md)*
68+
- **`subject`** *[descriptor](descriptor.md)*
6969

7070
This OPTIONAL property specifies a [descriptor](descriptor.md) of another manifest.
7171
This value, used by the [`referrers` API](https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-referrers), indicates a relationship to the specified manifest.
@@ -106,7 +106,7 @@ Unlike the [image index](image-index.md), which contains information about a set
106106
"digest": "sha256:ec4b8955958665577945c89419d1af06b5f7636b4ac3da7f12184802ad867736"
107107
}
108108
],
109-
"refers": {
109+
"subject": {
110110
"mediaType": "application/vnd.oci.image.manifest.v1+json",
111111
"size": 7682,
112112
"digest": "sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270"

specs-go/v1/artifact.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ type Artifact struct {
2626
// Blobs is a collection of blobs referenced by this manifest.
2727
Blobs []Descriptor `json:"blobs,omitempty"`
2828

29-
// Refers is an optional link to any existing manifest within the repository.
30-
Refers *Descriptor `json:"refers,omitempty"`
29+
// Subject (reference) is an optional link from the artifact to another manifest forming an association between the artifact and the other manifest.
30+
Subject *Descriptor `json:"subject,omitempty"`
3131

3232
// Annotations contains arbitrary metadata for the artifact manifest.
3333
Annotations map[string]string `json:"annotations,omitempty"`

specs-go/v1/manifest.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ type Manifest struct {
3030
// Layers is an indexed list of layers referenced by the manifest.
3131
Layers []Descriptor `json:"layers"`
3232

33-
// Refers is an optional link to any existing manifest within the repository.
34-
Refers *Descriptor `json:"refers,omitempty"`
33+
// Subject is an optional link from the image manifest to another manifest forming an association between the image manifest and the other manifest.
34+
Subject *Descriptor `json:"subject,omitempty"`
3535

3636
// Annotations contains arbitrary metadata for the image manifest.
3737
Annotations map[string]string `json:"annotations,omitempty"`

0 commit comments

Comments
 (0)