Skip to content

Commit

Permalink
refactor: remove unnecessary struct tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nscuro committed Mar 4, 2021
1 parent c0398f6 commit 351269b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cyclonedx.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ const (
)

type Dependency struct {
Ref string `json:"-" xml:"ref,attr"`
Dependencies *[]Dependency `json:"-" xml:"dependency,omitempty"`
Ref string `xml:"ref,attr"`
Dependencies *[]Dependency `xml:"dependency,omitempty"`
}

// dependencyJSON is temporarily used for marshalling and unmarshalling Dependency instances to and from JSON
type dependencyJSON struct {
Ref string `json:"ref" xml:"-"`
DependsOn []string `json:"dependsOn,omitempty" xml:"-"`
Ref string `json:"ref"`
DependsOn []string `json:"dependsOn,omitempty"`
}

func (d Dependency) MarshalJSON() ([]byte, error) {
Expand Down

0 comments on commit 351269b

Please sign in to comment.