diff --git a/schema/bom-1.6.proto b/schema/bom-1.6.proto index 7312e33f..3e6ee48c 100644 --- a/schema/bom-1.6.proto +++ b/schema/bom-1.6.proto @@ -465,7 +465,7 @@ message Metadata { // The organization that supplied the component that the BOM describes. The supplier may often be the manufacture, but may also be a distributor or repackager. optional OrganizationalEntity supplier = 6; // The license information for the BOM document. This may be different from the license(s) of the component(s) that the BOM describes. - optional LicenseChoice licenses = 7; + repeated LicenseChoice licenses = 7; // Specifies optional, custom, properties repeated Property properties = 8; // Lifecycles communicate the stage(s) in which data in the BOM was captured. Different types of data may be available at various phases of a lifecycle, such as the Software Development Lifecycle (SDLC), IT Asset Management (ITAM), and Software Asset Management (SAM). Thus, a BOM may include data specific to or only obtainable in a given lifecycle. diff --git a/tools/src/test/resources/1.6/valid-metadata-license-1.6.json b/tools/src/test/resources/1.6/valid-metadata-license-1.6.json index 84b43e79..3ee6eebf 100644 --- a/tools/src/test/resources/1.6/valid-metadata-license-1.6.json +++ b/tools/src/test/resources/1.6/valid-metadata-license-1.6.json @@ -9,6 +9,14 @@ "license": { "id": "Apache-2.0" } + }, + { + "license": { + "name": "My License", + "text": { + "content": "My License Text" + } + } } ] }, diff --git a/tools/src/test/resources/1.6/valid-metadata-license-1.6.textproto b/tools/src/test/resources/1.6/valid-metadata-license-1.6.textproto index 29703465..b761c2ec 100644 --- a/tools/src/test/resources/1.6/valid-metadata-license-1.6.textproto +++ b/tools/src/test/resources/1.6/valid-metadata-license-1.6.textproto @@ -10,4 +10,12 @@ metadata { id: "Apache-2.0" } } + licenses { + license { + name: "My License" + text { + value: "My License Text" + } + } + } } diff --git a/tools/src/test/resources/1.6/valid-metadata-license-1.6.xml b/tools/src/test/resources/1.6/valid-metadata-license-1.6.xml index a319587a..e8c02a31 100644 --- a/tools/src/test/resources/1.6/valid-metadata-license-1.6.xml +++ b/tools/src/test/resources/1.6/valid-metadata-license-1.6.xml @@ -1,11 +1,17 @@ - + Apache-2.0 + + My License + My License Text + - + \ No newline at end of file