aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main/protobuf/ws-issues.proto
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-ws/src/main/protobuf/ws-issues.proto')
-rw-r--r--sonar-ws/src/main/protobuf/ws-issues.proto13
1 files changed, 13 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto
index 87a34a07390..077871bebe1 100644
--- a/sonar-ws/src/main/protobuf/ws-issues.proto
+++ b/sonar-ws/src/main/protobuf/ws-issues.proto
@@ -54,6 +54,17 @@ message Operation {
repeated ActionPlan actionPlans = 5;
}
+enum IssueType {
+ // Zero is required in order to not get MAINTAINABILITY as default value
+ // See http://androiddevblog.com/protocol-buffers-pitfall-adding-enum-values/
+ UNKNOWN = 0;
+
+ // same name as in Java enum IssueType,
+ // same index values as in database (see column ISSUES.ISSUE_TYPE)
+ CODE_SMELL = 1;
+ BUG = 2;
+ VULNERABILITY = 3;
+}
message Issue {
optional string key = 1;
@@ -90,6 +101,8 @@ message Issue {
optional string updateDate = 24;
optional string fUpdateAge = 25;
optional string closeDate = 26;
+
+ optional IssueType type = 27;
}
message Transitions {