Skip to content

feat: add helper method to generateBomLink #726

@saquibsaifee

Description

@saquibsaifee

Improve the process of creating and validating BOM-Link URIs within XsUri.
This enhancement would standardize BOM-Link creation within XsUri, reduce potential errors in URI formation, and simplify BOM-Link validation.

from @jkowalleck

A possible solution could be something like a classmethod
XsUri.make_BomLink(cls, serialnumber: Union[UUID, string], version: int = 1, bom_ref: Optional[Union[string, BomRef]] = None) -> XsUri

And we would, of course, add a method XsUri.is_BomLink(self) -> bool

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions