osv: Make root database_specific field None

This commit is contained in:
Mustafa Gezen 2023-03-06 06:01:17 +01:00
parent 13c430c2aa
commit 0a26fbbabb

View File

@ -98,7 +98,7 @@ class OSVAdvisory(BaseModel):
affected: list[OSVAffected]
references: list[OSVReference]
credits: list[OSVCredit]
database_specific: OSVDatabaseSpecific
database_specific: Optional[OSVDatabaseSpecific]
def to_osv_advisory(ui_url: str, advisory: Advisory) -> OSVAdvisory:
@ -217,7 +217,7 @@ def to_osv_advisory(ui_url: str, advisory: Advisory) -> OSVAdvisory:
affected=affected_pkgs,
references=references,
credits=osv_credits,
database_specific=OSVDatabaseSpecific(),
database_specific=None,
)