-
Notifications
You must be signed in to change notification settings - Fork 79
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
schema.json "score" pattern too strict in metric ordering, optional metrics not recognised #168
Comments
Thanks for reporting! Seems like this is very hard to validate with a regex then. @kurtseifried thoughts? |
This is why I made CVSS in the CVE schema a series of fields from day one: https://github.com/CVEProject/cve-schema/blob/master/schema/v1.0/JSON-file-format-v1.md { I guess a regex conditional expression could do the trick |
Based on conversation on ossf#168, the CVSS validation by pure regex is too strict, so remove. Fixes: ossf#168 Signed-off-by: Andrew Pollock <[email protected]>
Based on conversation on #168, the CVSS validation by pure regex is too strict, so remove. Fixes: #168 Signed-off-by: Andrew Pollock <[email protected]>
osv-schema/validation/schema.json
Lines 326 to 328 in b3ae8f1
Per CVSS v3.1 spec ( https://www.first.org/cvss/specification-document ) - emphasis mine:
The JSON schema regex rejects many valid CVSS vector values.
The text was updated successfully, but these errors were encountered: