Skip to content
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

Upgrading and downgrading documents #160

Closed
lumjjb opened this issue Aug 26, 2022 · 0 comments · Fixed by #172
Closed

Upgrading and downgrading documents #160

lumjjb opened this issue Aug 26, 2022 · 0 comments · Fixed by #172

Comments

@lumjjb
Copy link
Collaborator

lumjjb commented Aug 26, 2022

From: #128 ... Should be partially addressed by #152

  • Upgrading and downgrading documents: It could be useful to have a function that e.g. takes an SPDX-2.1 document (spdx.Document2_1) and converts it to an SPDX_2.2 document (spdx.Document2_2). Or vice versa, going the other direction.
    • This would likely require converting the various sub-elements to the new version.
    • Could also take a strict parameter to fail if the conversion can't be done with 100% fidelity. For example, if an SPDX-2.2 document has a field or value that would be invalid in SPDX-2.1, then if strict is true then the downgrade from 2.2 to 2.1 should fail. If strict is false, then the downgrade would silently (or with a warning) drop the invalid data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant