Skip to content

Commit 003ab52

Browse files
authored
fix(ProtoBuf): add LicenseExpression.bom_ref (#529)
fixes #515 Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 0266339 commit 003ab52

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
@@ -375,6 +375,8 @@ message LicenseChoice {
375375
}
376376
// This field must only be used when "expression" is chosen as the License object has its own acknowledgement.
377377
optional LicenseAcknowledgementEnumeration acknowledgement = 3;
378+
// This field must only be used when "expression" is chosen as the License object has its own bom_ref.
379+
optional string bom_ref = 4;
378380
}
379381

380382
// 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)