-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
backward/forward compatibility for Tools (cdx 1.5) #115
Comments
Hey @manifestori, appreciate you reaching out! The
What I think should happen:
I'd love to avoid having to maintain custom marshalling logic for |
We would never be able to approach this without custom logic for I liked you're approach for going with A different approach would be to change We just need to decide how to convert |
Apologies for the late reply @manifestori.
Doesn't seem like |
Yeah I figured, but that's close enough. So basically, adding ToolsLegacy for older specs, and use Tools for current spec. I guess cdx spec won't change Tools again soon ;) |
Yeah that sounds like a good way forward!
Sure hope so... |
Are you looking for community contributions or is it already on your roadmap @nscuro? |
hey @nscuro , +1 on the above, is this high on your priority list? otherwise happy to contribute the fix myself |
Thanks @northdpole, appreciate the offer! It would indeed help immensely if we could get this contributed, as I am a bit burried with other stuff. However, if this is critical for you and potentially others, I may be able to re-prioritize. |
it's not critical at the moment as most tools I use support format definition, i'll try and get to this in the next 2 weeks |
sorry folks, I've ran out of time to do this, please don't wait for me |
So the way I've settled on is this:
|
closes #115 Signed-off-by: nscuro <nscuro@protonmail.com>
Hi :)
I've been following the progress of cdx1.5 support in this library for quite some time now. I've noticed tools such as
Trivy
already used in production (trivy
cli tool).I wondered about your approach to maintaining compatibility (read/write) for Tools. It's the first time you've had to change the actual field type. Will you use an overriding mechanism, such as implementing UnmarshalJSON and convert
old
slices into the new model?The decoding part is much more apparent as
convertTool
would probably be used for this purpose.Can I work on this solution? I'd like to see a v1.5 compatible version of this library in the stable release.
The text was updated successfully, but these errors were encountered: