Skip to content

Commit

Permalink
Merge branch 'first-commits' of github.com:cisagov/cyhy-db into first…
Browse files Browse the repository at this point in the history
…-commits
  • Loading branch information
dav3r committed Oct 16, 2024
2 parents 5b2bb40 + fd82fe9 commit 1d3cf32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cyhy_db/models/cve_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class CVEDoc(Document):

cvss_score: float = Field(ge=0.0, le=10.0)
cvss_version: CVSSVersion = Field(default=CVSSVersion.V3_1)
# See: https://github.com/cisagov/cyhy-db/issues/7
# CVE ID as a string
id: str = Indexed(primary_field=True) # type: ignore[assignment]
severity: int = Field(ge=1, le=4, default=1)
Expand Down

0 comments on commit 1d3cf32

Please sign in to comment.