Closed macedogm closed 2 months ago
@puerco thanks for the quick review and comments. Yes, I'll add the improvements that you requested, just a note that I'll have to travel for a few days, so there might be some delay before I update the PR.
@macedogm if you need this change we can handle the validation in a follow up. If you need this one quickly, just rebase the PR, we merge it and I can add the validation logic :)
@puerco I can wait a few days, no rush on that. It's more up to you if you prefer to merge this one quickly and do the rest on a follow up PR.
Ah the linter is not happy, otherwise LGTM
@puerco hopefully I addressed your comments. PTAL and let me know if the style is as expected.
Additionally, should we consider adding a validation in internal/cmd/add.go
to check if an alias being added is repeated with another aliases or vulnerabilities ID already present in the document? Would this validation make sense at the moment?
The vexStatementOptions are embedded in the addOptions, so your change should work in both :)
Thank you!
This is an initial implementation that adds support to vulnerability aliases as documented in the spec.
Note that support is only added when creating a new Vex document or adding a new statement. It doesn't support filtering or merging based on aliases.
Closes https://github.com/openvex/vexctl/issues/219