forked from spdx/tools-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
delete surrounding document-Tag from XML
leads to failing tests caused by jsonyamlxml writer since json and yaml expect surrounding document Signed-off-by: Meret Behrens <[email protected]>
- Loading branch information
Showing
11 changed files
with
232 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,96 @@ | ||
{ | ||
"Document": { | ||
"spdxVersion": "SPDX-2.1", | ||
"documentNamespace": "https://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301", | ||
"creationInfo": { | ||
"creators": [ | ||
"Tool: ScanCode" | ||
], | ||
"created": "2021-10-21T17:09:37Z", | ||
"licenseListVersion": "3.6" | ||
"spdxVersion": "SPDX-2.1", | ||
"documentNamespace": "https://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301", | ||
"creationInfo": { | ||
"creators": [ | ||
"Tool: ScanCode" | ||
], | ||
"created": "2021-10-21T17:09:37Z", | ||
"licenseListVersion": "3.6" | ||
}, | ||
"dataLicense": "CC0-1.0", | ||
"SPDXID": "SPDXRef-DOCUMENT", | ||
"name": "Sample_Document-V2.1", | ||
"documentDescribes": [ | ||
{ | ||
"Package": { | ||
"SPDXID": "SPDXRef-Package1", | ||
"name": "some/path1", | ||
"downloadLocation": "NOASSERTION", | ||
"filesAnalyzed": false, | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseDeclared": "NOASSERTION", | ||
"copyrightText": "Some copyright" | ||
} | ||
}, | ||
"dataLicense": "CC0-1.0", | ||
"SPDXID": "SPDXRef-DOCUMENT", | ||
"name": "Sample_Document-V2.1", | ||
"documentDescribes": [ | ||
{ | ||
"Package": { | ||
"SPDXID": "SPDXRef-Package1", | ||
"name": "some/path1", | ||
"downloadLocation": "NOASSERTION", | ||
"filesAnalyzed": false, | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseDeclared": "NOASSERTION", | ||
"copyrightText": "Some copyright" | ||
} | ||
}, | ||
{ | ||
"Package": { | ||
"SPDXID": "SPDXRef-Package2", | ||
"name": "some/path2", | ||
"downloadLocation": "NOASSERTION", | ||
"packageVerificationCode": { | ||
"packageVerificationCodeValue": "SOME code" | ||
}, | ||
"licenseInfoFromFiles": [ | ||
"LGPL-2.1-or-later" | ||
], | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseDeclared": "NOASSERTION", | ||
"copyrightText": "Some copyright", | ||
"files": [ | ||
{ | ||
"File": { | ||
"name": "./some/path/tofile", | ||
"SPDXID": "SPDXRef-File", | ||
"checksums": [ | ||
{ | ||
"algorithm": "checksumAlgorithm_sha1", | ||
"checksumValue": "SOME-SHA1" | ||
} | ||
], | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseInfoFromFiles": [ | ||
"LGPL-2.1-or-later" | ||
], | ||
"copyrightText": "NOASSERTION", | ||
"sha1": "SOME-SHA1" | ||
} | ||
{ | ||
"Package": { | ||
"SPDXID": "SPDXRef-Package2", | ||
"name": "some/path2", | ||
"downloadLocation": "NOASSERTION", | ||
"packageVerificationCode": { | ||
"packageVerificationCodeValue": "SOME code" | ||
}, | ||
"licenseInfoFromFiles": [ | ||
"LGPL-2.1-or-later" | ||
], | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseDeclared": "NOASSERTION", | ||
"copyrightText": "Some copyright", | ||
"files": [ | ||
{ | ||
"File": { | ||
"name": "./some/path/tofile", | ||
"SPDXID": "SPDXRef-File", | ||
"checksums": [ | ||
{ | ||
"algorithm": "checksumAlgorithm_sha1", | ||
"checksumValue": "SOME-SHA1" | ||
} | ||
], | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseInfoFromFiles": [ | ||
"LGPL-2.1-or-later" | ||
], | ||
"copyrightText": "NOASSERTION", | ||
"sha1": "SOME-SHA1" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"Package": { | ||
"SPDXID": "SPDXRef-Package3", | ||
"name": "some/path3", | ||
"downloadLocation": "NOASSERTION", | ||
"licenseInfoFromFiles": [ | ||
"LGPL-2.1-or-later" | ||
], | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseDeclared": "NOASSERTION", | ||
"copyrightText": "Some copyright", | ||
"files": [ | ||
{ | ||
"File": { | ||
"name": "./some/path/tofile", | ||
"SPDXID": "SPDXRef-File", | ||
"checksums": [ | ||
{ | ||
"algorithm": "checksumAlgorithm_sha1", | ||
"checksumValue": "SOME-SHA1" | ||
} | ||
], | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseInfoFromFiles": [ | ||
"LGPL-2.1-or-later" | ||
], | ||
"copyrightText": "NOASSERTION", | ||
"sha1": "SOME-SHA1" | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"Package": { | ||
"SPDXID": "SPDXRef-Package3", | ||
"name": "some/path3", | ||
"downloadLocation": "NOASSERTION", | ||
"licenseInfoFromFiles": [ | ||
"LGPL-2.1-or-later" | ||
], | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseDeclared": "NOASSERTION", | ||
"copyrightText": "Some copyright", | ||
"files": [ | ||
{ | ||
"File": { | ||
"name": "./some/path/tofile", | ||
"SPDXID": "SPDXRef-File", | ||
"checksums": [ | ||
{ | ||
"algorithm": "checksumAlgorithm_sha1", | ||
"checksumValue": "SOME-SHA1" | ||
} | ||
], | ||
"licenseConcluded": "NOASSERTION", | ||
"licenseInfoFromFiles": [ | ||
"LGPL-2.1-or-later" | ||
], | ||
"copyrightText": "NOASSERTION", | ||
"sha1": "SOME-SHA1" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,77 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<SpdxDocument> | ||
<Document> | ||
<spdxVersion>SPDX-2.1</spdxVersion> | ||
<documentNamespace>https://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301</documentNamespace> | ||
<creationInfo> | ||
<creators>Tool: ScanCode</creators> | ||
<created>2021-10-21T17:02:23Z</created> | ||
<licenseListVersion>3.6</licenseListVersion> | ||
</creationInfo> | ||
<dataLicense>CC0-1.0</dataLicense> | ||
<SPDXID>SPDXRef-DOCUMENT</SPDXID> | ||
<name>Sample_Document-V2.1</name> | ||
<documentDescribes> | ||
<Package> | ||
<SPDXID>SPDXRef-Package1</SPDXID> | ||
<name>some/path1</name> | ||
<downloadLocation>NOASSERTION</downloadLocation> | ||
<filesAnalyzed>false</filesAnalyzed> | ||
<licenseConcluded>NOASSERTION</licenseConcluded> | ||
<licenseDeclared>NOASSERTION</licenseDeclared> | ||
<copyrightText>Some copyright</copyrightText> | ||
</Package> | ||
</documentDescribes> | ||
<documentDescribes> | ||
<Package> | ||
<SPDXID>SPDXRef-Package2</SPDXID> | ||
<name>some/path2</name> | ||
<downloadLocation>NOASSERTION</downloadLocation> | ||
<packageVerificationCode> | ||
<packageVerificationCodeValue>SOME code</packageVerificationCodeValue> | ||
</packageVerificationCode> | ||
<licenseInfoFromFiles>LGPL-2.1-or-later</licenseInfoFromFiles> | ||
<licenseConcluded>NOASSERTION</licenseConcluded> | ||
<licenseDeclared>NOASSERTION</licenseDeclared> | ||
<copyrightText>Some copyright</copyrightText> | ||
<files> | ||
<File> | ||
<name>./some/path/tofile</name> | ||
<SPDXID>SPDXRef-File</SPDXID> | ||
<checksums> | ||
<algorithm>checksumAlgorithm_sha1</algorithm> | ||
<checksumValue>SOME-SHA1</checksumValue> | ||
</checksums> | ||
<licenseConcluded>NOASSERTION</licenseConcluded> | ||
<licenseInfoFromFiles>LGPL-2.1-or-later</licenseInfoFromFiles> | ||
<copyrightText>NOASSERTION</copyrightText> | ||
<sha1>SOME-SHA1</sha1> | ||
</File> | ||
</files> | ||
</Package> | ||
</documentDescribes> | ||
<documentDescribes> | ||
<Package> | ||
<SPDXID>SPDXRef-Package3</SPDXID> | ||
<name>some/path3</name> | ||
<downloadLocation>NOASSERTION</downloadLocation> | ||
<licenseInfoFromFiles>LGPL-2.1-or-later</licenseInfoFromFiles> | ||
<licenseConcluded>NOASSERTION</licenseConcluded> | ||
<licenseDeclared>NOASSERTION</licenseDeclared> | ||
<copyrightText>Some copyright</copyrightText> | ||
<files> | ||
<File> | ||
<name>./some/path/tofile</name> | ||
<SPDXID>SPDXRef-File</SPDXID> | ||
<checksums> | ||
<algorithm>checksumAlgorithm_sha1</algorithm> | ||
<checksumValue>SOME-SHA1</checksumValue> | ||
</checksums> | ||
<licenseConcluded>NOASSERTION</licenseConcluded> | ||
<licenseInfoFromFiles>LGPL-2.1-or-later</licenseInfoFromFiles> | ||
<copyrightText>NOASSERTION</copyrightText> | ||
<sha1>SOME-SHA1</sha1> | ||
</File> | ||
</files> | ||
</Package> | ||
</documentDescribes> | ||
</Document> | ||
</SpdxDocument> | ||
<Document> | ||
<spdxVersion>SPDX-2.1</spdxVersion> | ||
<documentNamespace>https://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301</documentNamespace> | ||
<creationInfo> | ||
<creators>Tool: ScanCode</creators> | ||
<created>2021-10-21T17:02:23Z</created> | ||
<licenseListVersion>3.6</licenseListVersion> | ||
</creationInfo> | ||
<dataLicense>CC0-1.0</dataLicense> | ||
<SPDXID>SPDXRef-DOCUMENT</SPDXID> | ||
<name>Sample_Document-V2.1</name> | ||
<documentDescribes> | ||
<Package> | ||
<SPDXID>SPDXRef-Package1</SPDXID> | ||
<name>some/path1</name> | ||
<downloadLocation>NOASSERTION</downloadLocation> | ||
<filesAnalyzed>false</filesAnalyzed> | ||
<licenseConcluded>NOASSERTION</licenseConcluded> | ||
<licenseDeclared>NOASSERTION</licenseDeclared> | ||
<copyrightText>Some copyright</copyrightText> | ||
</Package> | ||
</documentDescribes> | ||
<documentDescribes> | ||
<Package> | ||
<SPDXID>SPDXRef-Package2</SPDXID> | ||
<name>some/path2</name> | ||
<downloadLocation>NOASSERTION</downloadLocation> | ||
<packageVerificationCode> | ||
<packageVerificationCodeValue>SOME code</packageVerificationCodeValue> | ||
</packageVerificationCode> | ||
<licenseInfoFromFiles>LGPL-2.1-or-later</licenseInfoFromFiles> | ||
<licenseConcluded>NOASSERTION</licenseConcluded> | ||
<licenseDeclared>NOASSERTION</licenseDeclared> | ||
<copyrightText>Some copyright</copyrightText> | ||
<files> | ||
<File> | ||
<name>./some/path/tofile</name> | ||
<SPDXID>SPDXRef-File</SPDXID> | ||
<checksums> | ||
<algorithm>checksumAlgorithm_sha1</algorithm> | ||
<checksumValue>SOME-SHA1</checksumValue> | ||
</checksums> | ||
<licenseConcluded>NOASSERTION</licenseConcluded> | ||
<licenseInfoFromFiles>LGPL-2.1-or-later</licenseInfoFromFiles> | ||
<copyrightText>NOASSERTION</copyrightText> | ||
<sha1>SOME-SHA1</sha1> | ||
</File> | ||
</files> | ||
</Package> | ||
</documentDescribes> | ||
<documentDescribes> | ||
<Package> | ||
<SPDXID>SPDXRef-Package3</SPDXID> | ||
<name>some/path3</name> | ||
<downloadLocation>NOASSERTION</downloadLocation> | ||
<licenseInfoFromFiles>LGPL-2.1-or-later</licenseInfoFromFiles> | ||
<licenseConcluded>NOASSERTION</licenseConcluded> | ||
<licenseDeclared>NOASSERTION</licenseDeclared> | ||
<copyrightText>Some copyright</copyrightText> | ||
<files> | ||
<File> | ||
<name>./some/path/tofile</name> | ||
<SPDXID>SPDXRef-File</SPDXID> | ||
<checksums> | ||
<algorithm>checksumAlgorithm_sha1</algorithm> | ||
<checksumValue>SOME-SHA1</checksumValue> | ||
</checksums> | ||
<licenseConcluded>NOASSERTION</licenseConcluded> | ||
<licenseInfoFromFiles>LGPL-2.1-or-later</licenseInfoFromFiles> | ||
<copyrightText>NOASSERTION</copyrightText> | ||
<sha1>SOME-SHA1</sha1> | ||
</File> | ||
</files> | ||
</Package> | ||
</documentDescribes> | ||
</Document> |
Oops, something went wrong.