Skip to content

Fix write_tv example #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 11, 2021
Merged

Conversation

SantiagoTorres
Copy link
Collaborator

I've been fiddling with the python library lately. I found a couple of little
hiccups in the write_tv example. I'm opening this PR so I don't forget,
although I'll admit I haven't done my due dilligence figuring out if this
example is in fact already fixed somewhere else (and apologies for that!).

Also, the spdx_id fields that I chose may prove to be not entirely compliant,
as I just read the validation code and picked something that passed...

The existing example for write_tv requires a couple of fields in the
Document, Package and File objects that are not defined. This causes the
example to fail, which makes its goal of being a reference for current
implementors
The current version of the example fails with "Document is Invalid"
errors, which makes it rather hard to understand what is invalid about
the document. Further, the  exception caught itself presents is already
floating information about which checks specifically made the document
invalid. Present this information to the user in such a way that they
can identify and fix the errors in their document
@MaciejKucia
Copy link

It would be nice to have this merged as the example does not work.

@pombredanne pombredanne merged commit b2c8c57 into spdx:master Jun 11, 2021
@pombredanne
Copy link
Member

Merged at last! thanks.

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.

None yet

3 participants