Closed andrewpollock closed 2 months ago
Hi @andrewpollock,
Thanks for pointing this out. We flattened the events array due to issue/180. Can you confirm those changes are no longer needed? I have checked locally that the validation is not working on our side either, but we are missing to detect the error for some reasons. I will work on this.
@andrewpollock sorry, I have checked the schema and I have understood what's the issue with the CVEs above: we were mixing fixed
and last_affected
values in the same range, right?
We have updated the Prestashop records in our database to solve this issue. Please check pr/484 for further details.
@andrewpollock sorry, I closed both tickets by mistake. Can you confirm the validation success on your end now for the updated files?
I can confirm this now passes validation:
$ ~/go/bin/jv osv-schema/validation/schema.json vulndb/data/prestashop/BIT-prestashop-2023-39527.json
schema osv-schema/validation/schema.json: ok
instance vulndb/data/prestashop/BIT-prestashop-2023-39527.json: ok
Title
BIT-prestashop-2023-39527
What steps will reproduce the bug?
What is the expected behavior?
The record passes schema validation
What do you see instead?
The record does not pass schema validation
Additional information
I believe that instead of:
it should be:
That is, there should be two distinct
range
objects in theranges
array so that theevents
array has only oneintroduced
andfixed
orlast_affected
object perevents
array.