RedHatProductSecurity / cvss

CVSS2/3/4 library with interactive calculator for Python 2 and Python 3
GNU Lesser General Public License v3.0
79 stars 28 forks source link

Minimal JSON representation #39

Closed mprpic closed 1 year ago

mprpic commented 1 year ago

This is a replacement PR for #36 that cleans up some of the code there with the feedback that was provided, and adds the same logic for CVSS 2.

The question stands whether minimal should be the default or not. If we want to keep backwards compatibility, then I guess we should use minimal=False even though it feels more correct to me to just spit out the minimal representation by default.