mirror of
https://github.com/resf/distro-tools.git
synced 2024-12-24 11:48:34 +00:00
osv: Make root database_specific field None
This commit is contained in:
parent
13c430c2aa
commit
0a26fbbabb
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user