Skip to content

Commit

Permalink
docs: improve SPDX expression docs (CycloneDX#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevespringett authored Oct 24, 2023
2 parents 6dac012 + ad6f39d commit 9a95cff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions schema/bom-1.6.proto
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ message Source {
message LicenseChoice {
oneof choice {
License license = 1;
// A valid SPDX license expression. Refer to https://spdx.org/specifications for syntax requirements
string expression = 2;
}
}
Expand Down
1 change: 1 addition & 0 deletions schema/bom-1.6.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,7 @@
"expression": {
"type": "string",
"title": "SPDX License Expression",
"description": "A valid SPDX license expression.\nRefer to https://spdx.org/specifications for syntax requirements",
"examples": [
"Apache-2.0 AND (MIT OR GPL-2.0-only)",
"GPL-3.0-only WITH Classpath-exception-2.0"
Expand Down
7 changes: 6 additions & 1 deletion schema/bom-1.6.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,12 @@ limitations under the License.
<xs:element name="expression" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>A valid SPDX license expression.
Refer to https://spdx.org/specifications for syntax requirements</xs:documentation>
Refer to https://spdx.org/specifications for syntax requirements

Example values:
- Apache-2.0 AND (MIT OR GPL-2.0-only)
- GPL-3.0-only WITH Classpath-exception-2.0
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
Expand Down

0 comments on commit 9a95cff

Please sign in to comment.