Skip to content

Comments

fix: handle ExternalDocumentRef tag in CreationInfo parser state#279

Merged
kzantow merged 1 commit intospdx:mainfrom
dschmidt:fix/external-document-ref-in-creation-info
Feb 23, 2026
Merged

fix: handle ExternalDocumentRef tag in CreationInfo parser state#279
kzantow merged 1 commit intospdx:mainfrom
dschmidt:fix/external-document-ref-in-creation-info

Conversation

@dschmidt
Copy link
Contributor

Fixes #195

The tag-value parser rejected valid SPDX documents where ExternalDocumentRef appeared after Creator/Created tags. The spec doesn't mandate field ordering, so the parser was too strict.

Adds ExternalDocumentRef as a recognized tag in parsePairFromCreationInfo for v2_1, v2_2, and v2_3 — using the same delegation pattern already used for DocumentComment.

…x#195)

Signed-off-by: Dominik Schmidt <dev@dominik-schmidt.de>
@dschmidt dschmidt force-pushed the fix/external-document-ref-in-creation-info branch from a59e85e to 756325d Compare February 23, 2026 14:14
Copy link
Collaborator

@kzantow kzantow left a comment

Choose a reason for hiding this comment

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

LGTM thanks, @dschmidt!

@kzantow kzantow merged commit 0ac8cc6 into spdx:main Feb 23, 2026
6 checks passed
@dschmidt
Copy link
Contributor Author

you're welcome, thanks for reacting so quickly :)

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.

SPDX tag-value parsing fails for ExternalDocumentRef in document.

2 participants