Skip to content

Commit

Permalink
fix: Omit empty component and data type UUIDs, for JSON and YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
spdawson committed Nov 22, 2022
1 parent 64bd111 commit 83060c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/report/output/dataflow/types/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package types

type Component struct {
Name string
UUID string
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
Locations []ComponentLocation
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/report/output/dataflow/types/datatypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package types

type Datatype struct {
Name string `json:"name"`
UUID string `json:"uuid,omitempty"`
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
Detectors []DatatypeDetector `json:"detectors"`
}

Expand Down

0 comments on commit 83060c6

Please sign in to comment.