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

Add API to return licenses as a map in addition to list #237

Open
dwalluck opened this issue May 2, 2024 · 1 comment
Open

Add API to return licenses as a map in addition to list #237

dwalluck opened this issue May 2, 2024 · 1 comment

Comments

@dwalluck
Copy link
Contributor

dwalluck commented May 2, 2024

I see that the license list is actually using a map internally, but the API returns a list Map::values(). Is it possible to add an API which also returns a Map with key String licenseId and value SpdxListedLicense? This would be more performant rather than having to recreate a map from the list.

@goneall
Copy link
Member

goneall commented May 3, 2024

Sounds like a useful API - if you'd like to create a PR, I can review merge. Otherwise, I'll take a look at this after implementing the SPDX 3.0 support.

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

2 participants