Skip to content

Commit 81ac1b7

Browse files
authored
Update migration info for ContentIdentifier
Updates the differences Annex to refer to the contentIdentifier property which was recently added to the SPDX model.
1 parent e6d9a3b commit 81ac1b7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/annexes/diffs-from-previous-editions.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ The packageFileName property and packageChecksum property has been replaced by a
113113

114114
#### Translating from 2.3 to 3.0
115115

116-
Create an SPDX File with the name from the packageFileName and a verifiedUsing value from the packageChecksum for a single file. If the packageFileName is a directory, then the SPDX File is created with the directory name and is verified using the gitoid property on the File and a fileKind of directory. Create a hasDistributionArifact relationship from the SPDX Package to the SPDX File.
116+
Create an SPDX File with the name from the packageFileName and a verifiedUsing value from the packageChecksum for a single file. If the packageFileName is a directory, then the SPDX File is created with the directory name and is verified using the contentIdentifier property on the File and a fileKind of directory. Create a hasDistributionArifact relationship from the SPDX Package to the SPDX File.
117117

118118
#### Rationale
119119

@@ -123,7 +123,7 @@ Providing a File relationship to the download location will include more detaile
123123

124124
#### Description of Change
125125

126-
In SPDX 3.0, a new property externalIdentifiers and a new type ExternalIdentifier is introduced. This is in addition to retaining the ExternalRef property and classes.
126+
In SPDX 3.0, a properties externalIdentifier and contentIdentifier with types ExternalIdentifier and ContentIdentifier were introduced. This is in addition to retaining the ExternalRef property and classes.
127127

128128
In SPDX 2.3, both identifiers and references were captured in the externalRef property for packages.
129129

@@ -137,8 +137,11 @@ The following ExternalRef Types should be converted to ExternalIdentifiers:
137137
* cpe23Type
138138
* swid
139139
* purl
140-
* swh
140+
141+
The following ExternalRef Types should be converted to ContentIdentifers:
142+
141143
* gitoid
144+
* swh
142145

143146
All other ExternalRef types should remain as ExternalRef’s.
144147

0 commit comments

Comments
 (0)