mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 15:06:36 +01:00
fix: update field plurality of 8.0.0 schema before release (#1820)
to keep things consistent across the schema we want Locations and URLs to be plural fields now that they are fields on the License struct --------- Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
This commit is contained in:
@@ -135,7 +135,7 @@ func TestParseInstalledJsonComposerV1(t *testing.T) {
|
||||
expectedPkgs[i].Locations = locations
|
||||
locationLicenses := pkg.NewLicenseSet()
|
||||
for _, license := range expectedPkgs[i].Licenses.ToSlice() {
|
||||
license.Location = locations
|
||||
license.Locations = locations
|
||||
locationLicenses.Add(license)
|
||||
}
|
||||
expectedPkgs[i].Licenses = locationLicenses
|
||||
|
||||
Reference in New Issue
Block a user