Skip to content

Commit e4a0e53

Browse files
committed
Correct severity output in JSON
1 parent d41a68d commit e4a0e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/japr/japr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def _print_json(
102102
"result": result.result.name,
103103
"filePath": result.file_path,
104104
"isFixAvailable": result.fix is not None,
105-
"severity": str(check.severity),
105+
"severity": check.severity.name,
106106
"reason": check.reason,
107107
"advice": check.advice,
108108
"isSuppressed": result.id in suppressed_checks,

0 commit comments

Comments
 (0)