File size: 316 Bytes
ac704e3
 
 
 
 
 
 
 
 
631793e
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from pydantic import BaseModel

# Just the ID is sufficient, as the API itself handles fetching the data from the NVD
class CVERequest(BaseModel):
    cve_id: str

class PredictionResponse(BaseModel):
    cve_id: str
    probability: float
    prediction: int
    vendor: str | None = None
    cwe: str | None = None