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

Use a license id or name instead of an expression if there is only one license #570

Open
lfrancke opened this issue Nov 27, 2023 · 0 comments

Comments

@lfrancke
Copy link
Contributor

lfrancke commented Nov 27, 2023

Currently, we produce SBOMs like this:

     "licenses": [
        {
          "expression": "MIT"
        }
      ],

There is an argument to be made that it'd be easier for consumers to use the other allowed form in this case:

{"license": {"id": "MIT"}}

Or name if id is not available.
Because then no SPDX expressions need to be parsed.

On the other hand, consumers need to support both methods anyway.

I'm opening this here for discussion, not necessarily because I think it's a bug.

@lfrancke lfrancke changed the title Use a license id instead of an expression if there is only one license Use a license id or name instead of an expression if there is only one license Nov 27, 2023
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

1 participant