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

feat(spdx_validation): Add validation for spdx id #98

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deo002
Copy link
Collaborator

@deo002 deo002 commented Feb 11, 2025

Changes

Add validation for spdx id

Submitter Checklist

  • Includes tests (if there is a feature changed/added)
  • Includes docs ( if changes are user facing)
  • I have tested my changes locally.

@deo002 deo002 requested a review from GMishx February 11, 2025 08:18
} else {
valid, _ := spdxexp.ValidateLicenses([]string{*l.SpdxId})
if !valid {
return errors.New("spdx_id does not follow spdx license expression specifications")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are these errors redirected? To stdout or API?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants