mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 07:56: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:
@@ -97,8 +97,8 @@ func TestLicenseSet_Add(t *testing.T) {
|
||||
Value: "MIT",
|
||||
SPDXExpression: "MIT",
|
||||
Type: license.Declared,
|
||||
URL: internal.NewStringSet("https://example.com"),
|
||||
Location: source.NewLocationSet(source.NewLocation("/place")),
|
||||
URLs: internal.NewStringSet("https://example.com"),
|
||||
Locations: source.NewLocationSet(source.NewLocation("/place")),
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -115,15 +115,15 @@ func TestLicenseSet_Add(t *testing.T) {
|
||||
Value: "MIT",
|
||||
SPDXExpression: "MIT",
|
||||
Type: license.Concluded,
|
||||
URL: internal.NewStringSet(),
|
||||
Location: source.NewLocationSet(),
|
||||
URLs: internal.NewStringSet(),
|
||||
Locations: source.NewLocationSet(),
|
||||
},
|
||||
{
|
||||
Value: "MIT",
|
||||
SPDXExpression: "MIT",
|
||||
Type: license.Declared,
|
||||
URL: internal.NewStringSet("https://example.com"),
|
||||
Location: source.NewLocationSet(source.NewLocation("/place")),
|
||||
URLs: internal.NewStringSet("https://example.com"),
|
||||
Locations: source.NewLocationSet(source.NewLocation("/place")),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user