Skip to content

Fix SPDX 3.0.1 export beginIntegerRange always set to 1 (#290) - #300

Merged
pellecchialuigi merged 1 commit into
mainfrom
issue-290
Jul 30, 2026
Merged

Fix SPDX 3.0.1 export beginIntegerRange always set to 1 (#290)#300
pellecchialuigi merged 1 commit into
mainfrom
issue-290

Conversation

@pellecchialuigi

Copy link
Copy Markdown
Collaborator

Replace min() with max() in PositiveIntegerRange.to_dict() so that each snippet's beginIntegerRange reflects the actual mapping offset instead of being clamped to 1 for every entry.
Add regression assertions to the SPDX validation test and correct the example export file accordingly.

Solves #290

Replace min() with max() in PositiveIntegerRange.to_dict() so that each
snippet's beginIntegerRange reflects the actual mapping offset instead of
being clamped to 1 for every entry. Add regression assertions to the SPDX
validation test and correct the example export file accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Luigi Pellecchia <pellecchia.luigi@gmail.com>
@pellecchialuigi
pellecchialuigi merged commit 5348041 into main Jul 30, 2026
4 checks passed
@pellecchialuigi
pellecchialuigi deleted the issue-290 branch July 30, 2026 06:56
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.

1 participant