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

Commit

Permalink
Make subject optional (#103)
Browse files Browse the repository at this point in the history
* make subject optional

Signed-off-by: Aviral Takkar <aviral26@users.noreply.github.com>

* update

Signed-off-by: Aviral Takkar <aviral26@users.noreply.github.com>

Co-authored-by: Aviral Takkar <aviral26@users.noreply.github.com>
  • Loading branch information
avtakkar and aviral26 authored Jun 27, 2022
1 parent 7c0b1c0 commit 0b167f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs-go/v1/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 0b167f8

Please sign in to comment.