Skip to content

Commit 4b64e6b

Browse files
committed
refactor schema version to variable
1 parent 82947e2 commit 4b64e6b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ssvc/selection.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
from ssvc._mixins import VersionField
3030
from ssvc.decision_points.base import DecisionPoint
3131

32+
SCHEMA_VERSION = "2.0.0"
33+
3234

3335
class MinimalSelection(BaseModel):
3436
"""
@@ -65,8 +67,8 @@ class MinimalSelectionList(BaseModel):
6567
A down-selection of SSVC Decision Points that represent an evaluation at a specific time of a Vulnerability evaluation.
6668
"""
6769

68-
schemaVersion: Literal["2.0.0"] = Field(
69-
default="2.0.0",
70+
schemaVersion: Literal[SCHEMA_VERSION] = Field(
71+
default=SCHEMA_VERSION,
7072
description="The schema version of this selection list.",
7173
)
7274

0 commit comments

Comments
 (0)