Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Sample annotation #28

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions examples/net-monitor-annotations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"mediaType": "application/vnd.oras.artifact.manifest.v1+json",
"artifactType": "org.cncf.oras.manifest.annotations",
"blobs": [],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to show that blobs are null then why do you need this property?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't expect libraries to generate "blobs": [],, I included it in the example to make it obvious the artifact.manifest supports blobs as optional, with an example of annotations.

"subjectManifest": {
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:73c803930ea3ba1e54bc25c2bdc53edd0284c62ed651fe7b00369da519a3c333",
"size": 16724
},
"annotations": {
"io.acme-rockets.foo": "values",
"io.acme-rockets.bar": "more-values"
}
}