diff --git a/cvelib/cve_api.py b/cvelib/cve_api.py index b491bac..6914a5d 100644 --- a/cvelib/cve_api.py +++ b/cvelib/cve_api.py @@ -51,7 +51,7 @@ def validate(cls, cve_json: dict, schema_path: Optional[str] = None) -> None: schema_path = cls.Schemas.CNA_PUBLISHED with open(schema_path) as schema_file: - schema = json.load(schema_file) + schema = json.load(schema_file, parse_float=decimal.Decimal) validator = Draft7Validator(schema) errors = sorted(validator.iter_errors(cve_json), key=lambda e: e.message)