Skip to content

Conversation

meretp
Copy link
Collaborator

@meretp meretp commented Nov 29, 2022

fixes #328

Signed-off-by: Meret Behrens meret.behrens@tngtech.com

@@ -205,6 +205,22 @@ def set_file_type(self, doc, type_value):

return super(FileBuilder, self).set_file_type(doc, f"namespace#fileType_{type_value.lower()}")

def set_file_copyright(self, doc, text):
"""
Raise OrderError if no package or file defined.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Luckily, packages are out of the equation now :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted

Comment on lines 218 to 214
else:
raise CardinalityError("File::CopyRight")
else:
raise OrderError("File::CopyRight")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

early return could be applied

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applied

@meretp meretp force-pushed the fix_jsonyamlxml_parser branch from f8591d2 to a21fcda Compare November 29, 2022 12:35
Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
@meretp meretp merged commit d448cf1 into spdx:main Nov 29, 2022
@meretp meretp deleted the fix_jsonyamlxml_parser branch November 29, 2022 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

json parsing issue when no packages are present
2 participants