Skip to content

Conversation

@Jake-Shadle
Copy link
Member

Allows parsing of unknown license or exception identifiers if ParseMode::allow_unknown is true. Rather than complicating the API, allowing unknown identifiers will assume the intent of the user based on the identifier position, if it follows a WITH|with it's assumed to be an exception, and is treated as an AdditionRef- that the user forgot to clarify. If the identifier is in the position that would be valid for an SPDX short id, it is treated as a License-Ref in a similar manner.

Resolves: #82

@Jake-Shadle Jake-Shadle merged commit 583928e into main Dec 1, 2025
6 checks passed
@Jake-Shadle Jake-Shadle deleted the allow-unknown branch December 1, 2025 16:59
@weihanglo
Copy link
Contributor

Thank you so much, Jake!

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.

Support parsing with unknown license/exception identifer

2 participants