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

feature: add validators #23

Open
thomas-fossati opened this issue Sep 8, 2021 · 0 comments
Open

feature: add validators #23

thomas-fossati opened this issue Sep 8, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@thomas-fossati
Copy link
Contributor

Currently it is left as an exercise for the user to make sure the assembled (Co)SWID is syntactically correct, e.g., that all non-optional fields have been correctly filled in and that any co-constraint is satisfied.

Ideally, the library should provide this facility via a public Valid() error function that is implemented by each component and can be recursively called by the top-level SoftwareIdentity.

@thomas-fossati thomas-fossati added the enhancement New feature or request label Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant