Skip to content

Commit

Permalink
More robust dependency handling
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed Nov 16, 2024
1 parent cda6b30 commit 61b7e62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/dx/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ func (d *Dependency) UnmarshalJSON(data []byte) error {
}

d.Name = dat["name"].(string)
if _, ok := dat["kind"]; !ok {
return fmt.Errorf("kind is mandatory for dependency")
}
d.Kind = dat["kind"].(string)

switch d.Kind {
Expand Down

0 comments on commit 61b7e62

Please sign in to comment.