You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the library does not support snippets. To do that, the following steps are necessary:
Add snippets to the spdx2model with properties according to https://spdx.github.io/spdx-spec/v2.3/snippet-information/. The class should have a constructor that takes the required arguments and an object for all optional properties, described by an interface. Consider if there are properties for which we can assume default values. Check for example the file or the package class for reference. Don't forget to add it to document.
Add method addSnippet to the api. The method should take as few required arguments as possible and take all remaining optional arguments in an object. Add an interface for all optional parameters. Add a static method fromApi to the snippets class in spdx2model to enable creating snippets from the api.
Currently, the library does not support snippets. To do that, the following steps are necessary:
Add snippets to the
spdx2model
with properties according to https://spdx.github.io/spdx-spec/v2.3/snippet-information/. The class should have a constructor that takes the required arguments and an object for all optional properties, described by an interface. Consider if there are properties for which we can assume default values. Check for example thefile
or thepackage
class for reference. Don't forget to add it to document.Add method
addSnippet
to the api. The method should take as few required arguments as possible and take all remaining optional arguments in an object. Add an interface for all optional parameters. Add a static methodfromApi
to the snippets class inspdx2model
to enable creating snippets from the api.Add snippets to the json converter. Implement a class
JsonSnippet
with properties according to https://github.com/spdx/spdx-spec/blob/development/v2.3.1/schemas/spdx-schema.json. The class should have a static methodfromSnippet
that can be used to convert snippets fromspdx2model
to JsonSnippet. Don't forget to add it to document.Extend the "elaborate" test in the converter tests with all added properties to verify that the created json is valid.
Extend the elaborate sample sbom and make sure that the CI is green when creating a PR.
Add snippets to DOCUMENTATION.md, including the required and optional properties.
Mark snippets as DONE in README.md.
The text was updated successfully, but these errors were encountered: