From 0b167f815b72279463fc564f231bf417a8c7614b Mon Sep 17 00:00:00 2001 From: Aviral Takkar <39969667+avtakkar@users.noreply.github.com> Date: Mon, 27 Jun 2022 10:22:41 -0700 Subject: [PATCH] Make subject optional (#103) * make subject optional Signed-off-by: Aviral Takkar * update Signed-off-by: Aviral Takkar Co-authored-by: Aviral Takkar --- specs-go/v1/manifest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs-go/v1/manifest.go b/specs-go/v1/manifest.go index fceee79..cf77c1a 100644 --- a/specs-go/v1/manifest.go +++ b/specs-go/v1/manifest.go @@ -28,7 +28,7 @@ type Manifest struct { // Subject is an optional reference to any existing manifest within the repository. // When specified, the artifact is said to be dependent upon the referenced subject. - Subject Descriptor `json:"subject"` + Subject *Descriptor `json:"subject,omitempty"` // Annotations contains arbitrary metadata for the artifact manifest. Annotations map[string]string `json:"annotations,omitempty"`