Skip to content

Commit f853cf6

Browse files
committed
fix(ProtoBuf): add LicenseExpression bom_ref
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 19a1530 commit f853cf6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

schema/bom-1.6.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ message LicenseChoice {
373373
}
374374
// This field must only be used when "expression" is chosen as the License object has its own acknowledgement.
375375
optional LicenseAcknowledgementEnumeration acknowledgement = 3;
376+
// This field must only be used when "expression" is chosen as the License object has its own bom_ref.
377+
optional string bom_ref = 4;
376378
}
377379

378380
// Specifies the details and attributes related to a software license. It can either include a valid SPDX license identifier or a named license, along with additional properties such as license acknowledgment, comprehensive commercial licensing information, and the full text of the license.

tools/src/test/resources/1.6/valid-license-expression-1.6.textproto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ components {
1313
licenses {
1414
expression: "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0"
1515
acknowledgement: LICENSE_ACKNOWLEDGEMENT_ENUMERATION_DECLARED
16+
bom_ref: "my-license"
1617
}
1718
}

0 commit comments

Comments
 (0)