Skip to content

python: make StringProp to decode SPDX alias with actual ID#34

Closed
hongxu-jia wants to merge 1 commit into
JPEWdev:mainfrom
hongxu-jia:main
Closed

python: make StringProp to decode SPDX alias with actual ID#34
hongxu-jia wants to merge 1 commit into
JPEWdev:mainfrom
hongxu-jia:main

Conversation

@hongxu-jia

Copy link
Copy Markdown

This commit make StringProp to decode string as IRI first in which replace SPDX alias with actual ID. For other situation, still return string as usual

This commit make StringProp to decode string as IRI first in which replace SPDX alias with
actual ID. For other situation, still return string as usual

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
@JPEWdev JPEWdev force-pushed the main branch 2 times, most recently from 044f11f to 5fadc0d Compare February 6, 2025 15:34
@JPEWdev

JPEWdev commented Feb 12, 2025

Copy link
Copy Markdown
Owner

We can't fix this here, unfortunately. It would not be correct to assume that the value in a dictionary was an IRI and attempt to de reference it an object.

Instead, a fix is needed in the SPDX 3 spec to make the mapping map the string keys to Elements instead strings, spdx/spdx-3-model#969

@JPEWdev JPEWdev closed this Feb 12, 2025
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.

2 participants