Skip to content

Commit

Permalink
Add enum to model
Browse files Browse the repository at this point in the history
Signed-off-by: patrickpa <[email protected]>
  • Loading branch information
patrickpa committed Jun 5, 2024
1 parent 0e3b3ec commit 57e3dd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qc_baselib/models/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .common import ParamType


class IssueSeverity(enum.Enum):
class IssueSeverity(enum.IntEnum):
ERROR = 1
WARNING = 2
INFORMATION = 3
Expand Down Expand Up @@ -60,7 +60,7 @@ class IssueType(BaseXmlModel, tag="Issue"):
locations: List[LocationType] = []
issue_id: int = attr(name="issueId")
description: str = attr(name="description")
level: int = attr(name="level")
level: IssueSeverity = attr(name="level")


class CheckerType(BaseXmlModel, tag="Checker"):
Expand Down

0 comments on commit 57e3dd2

Please sign in to comment.