-
Notifications
You must be signed in to change notification settings - Fork 2
feat: enhance license API with comprehensive metadata and expression parsing #22
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
base: main
Are you sure you want to change the base?
Conversation
// LICENSE REPRESENTATIONS | ||
// ======================================================================== | ||
|
||
message BasicLicense { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe call it License
?
string full_name = 2; | ||
} | ||
|
||
message License { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here LicenseDetailed
}; | ||
|
||
// Get detailed metadata for a specific license | ||
rpc GetDetails(LicenseRequest) returns(DetailsResponse) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method allow to query only one license. Maybe add another for querying a list of license ids?
Summary
Enhanced License API to handle complex license expressions and provide comprehensive metadata from multiple authoritative sources.
Example Response
Query:
LicenseService.GetByPurl('pkg:github/example/component')