Skip to content

Commit 19348d0

Browse files
author
Nicolaus Weidner
committed
[issue-344] rename seeAlso to seeAlsos in json/yaml/xml
Signed-off-by: Nicolaus Weidner <[email protected]>
1 parent 95ce203 commit 19348d0

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

spdx/parsers/jsonyamlxml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def parse_extracted_license_info(self, extracted_license_info):
233233
self.parse_ext_lic_name(extracted_license.get("name"))
234234
self.parse_ext_lic_comment(extracted_license.get("comment"))
235235
self.parse_ext_lic_text(extracted_license.get("extractedText"))
236-
self.parse_ext_lic_cross_refs(extracted_license.get("seeAlso"))
236+
self.parse_ext_lic_cross_refs(extracted_license.get("seeAlsos"))
237237
else:
238238
self.value_error("EXTR_LIC", extracted_license)
239239

spdx/parsers/xmlparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, builder, logger):
2929
"creators",
3030
"externalDocumentRefs",
3131
"extractedLicenseInfos",
32-
"seeAlso",
32+
"seeAlsos",
3333
"annotations",
3434
"relationships",
3535
"snippets",

spdx/writers/jsonyamlxml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,10 @@ def create_extracted_license(self):
465465
if extracted_license.cross_ref:
466466
if isinstance(extracted_license.cross_ref, Literal):
467467
extracted_license_object[
468-
"seeAlso"
468+
"seeAlsos"
469469
] = extracted_license.cross_ref.toPython()
470470
else:
471-
extracted_license_object["seeAlso"] = extracted_license.cross_ref
471+
extracted_license_object["seeAlsos"] = extracted_license.cross_ref
472472

473473
if extracted_license.comment:
474474
if isinstance(extracted_license.comment, Literal):

tests/data/formats/SPDXJsonExample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"comment": "This is tye CyperNeko License",
161161
"licenseId": "LicenseRef-3",
162162
"name": "CyberNeko License",
163-
"seeAlso": [
163+
"seeAlsos": [
164164
"http://justasample.url.com",
165165
"http://people.apache.org/~andyc/neko/LICENSE"
166166
]

tests/data/formats/SPDXXmlExample.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</extractedText>
164164
<comment>This is tye CyperNeko License</comment>
165165
<licenseId>LicenseRef-3</licenseId>
166166
<name>CyberNeko License</name>
167-
<seeAlso>http://justasample.url.com</seeAlso>
168-
<seeAlso>http://people.apache.org/~andyc/neko/LICENSE</seeAlso>
167+
<seeAlsos>http://justasample.url.com</seeAlsos>
168+
<seeAlsos>http://people.apache.org/~andyc/neko/LICENSE</seeAlsos>
169169
</hasExtractedLicensingInfos>
170170
<hasExtractedLicensingInfos>
171171
<extractedText>/*

tests/data/formats/SPDXYamlExample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Document:
103103
\ USE OF THIS SOFTWARE,\nEVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
104104
licenseId: LicenseRef-3
105105
name: CyberNeko License
106-
seeAlso:
106+
seeAlsos:
107107
- http://justasample.url.com
108108
- http://people.apache.org/~andyc/neko/LICENSE
109109
- extractedText: "/*\n * (c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006,\

0 commit comments

Comments
 (0)