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

Allow access to the spec version #446

Open
ctron opened this issue Aug 1, 2023 · 2 comments
Open

Allow access to the spec version #446

ctron opened this issue Aug 1, 2023 · 2 comments

Comments

@ctron
Copy link
Contributor

ctron commented Aug 1, 2023

Currently, after parsing an SBOM. The specVersion field is not available.

However, what might happen is that the 1.3 parser parses a 1.4 version successfully. However, without reparsing and inspecting the raw JSON (or XML), it seems impossible to check if this was actually a 1.3 or 1.4 document. Which might be necessary to know in some cases.

I can come up with a PR for this if that helps.

@Shnatsel
Copy link
Contributor

Hey! I'm helping maintain the repo now. This seems like a reasonable addition, I would be happy to accept a PR that exposes the field if this is still relevant.

@justahero
Copy link
Contributor

Hi @ctron ,

sorry for the late reply, do you think the change in PR #583 covers your use case?

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

No branches or pull requests

3 participants