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: Add support for new Copyrights and schema updates #3156

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

Commits on Sep 1, 2024

  1. feat: Add support for new Copyrights and schema updates

    - **Added**: New JSON schema version `16.0.16` with support for the new `Copyrights`.
    - **Modified**: Updated the `JSONSchemaVersion` parameter to use the new schema.
    
    - **Added**: New `Copyrights` field to the `Package` and `PackageBasicData` structs, similar to the existing `Licenses` field.
    - **Added**: New `Copyright` struct.
    - **Implemented**: Sorting methods for the `Copyright` struct.
    
    - **Changed**: Updated the `PackageCopyrightText` to use `helpers.GetCopyrights(p.Copyrights)`, which formats the copyright text and returns a string. Example output: "Copyright 2014-2014 Matt Zabriskie & Collaborators".
    
    - **Added**: `Copyrights` assignment to the `toSyftPackage` function.
    
    Signed-off-by: dor-hayun <[email protected]>
    dor-hayun committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    b75dd28 View commit details
    Browse the repository at this point in the history