Skip to content

Commit 5d11d4b

Browse files
committed
drop Validator in favour of DataSource
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 922859f commit 5d11d4b

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

vulntotal/validator.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ def to_dict(self):
4343
}
4444

4545

46-
class Validator:
47-
_raw_dump = []
46+
class DataSource:
47+
def __init__(self):
48+
self._raw_dump = []
4849

49-
def validator_advisory(self, purl) -> Iterable[VendorData]:
50+
def datasource_advisory(self, purl) -> Iterable[VendorData]:
5051
"""
51-
Yield VendorData object corresponding to vendor
52+
Yield VendorData object corresponding to DataSource
5253
"""
5354
return NotImplementedError
5455

@@ -57,7 +58,7 @@ def support_ecosystem(cls):
5758
"""
5859
Return dictionary containing supported ecosystem
5960
{
60-
"PURL equivalent ecosystem" : "Validator ecosystem",
61+
"PURL equivalent ecosystem" : "DataSource ecosystem",
6162
}
6263
"""
6364
return NotImplementedError

0 commit comments

Comments
 (0)