aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2022-05-05 14:52:04 +0200
committersonartech <sonartech@sonarsource.com>2022-05-09 20:02:59 +0000
commit41af7cd13eed44de4c3941669bdb5968347f454a (patch)
tree050518f3725ee991fb0998f85129562693cffd7e /sonar-ws/src
parent3637ca1ca97c03bcc110007f9ec52c4cdef60632 (diff)
downloadsonarqube-41af7cd13eed44de4c3941669bdb5968347f454a.tar.gz
sonarqube-41af7cd13eed44de4c3941669bdb5968347f454a.zip
SONAR-16364 Update Rule API to support multiple description sections
Diffstat (limited to 'sonar-ws/src')
-rw-r--r--sonar-ws/src/main/protobuf/ws-rules.proto8
1 files changed, 7 insertions, 1 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-rules.proto b/sonar-ws/src/main/protobuf/ws-rules.proto
index 719e7b7e326..76ee26ae340 100644
--- a/sonar-ws/src/main/protobuf/ws-rules.proto
+++ b/sonar-ws/src/main/protobuf/ws-rules.proto
@@ -71,7 +71,7 @@ message Rule {
optional string repo = 2;
optional string name = 3;
optional string createdAt = 4;
- optional string htmlDesc = 5;
+ optional string htmlDesc = 5 [deprecated=true];
optional string htmlNote = 6;
optional string mdDesc = 7;
optional string mdNote = 8;
@@ -122,6 +122,12 @@ message Rule {
optional sonarqube.ws.commons.RuleScope scope = 46;
optional bool isExternal = 47;
optional DeprecatedKeys deprecatedKeys = 48;
+ repeated DescriptionSection descriptionSections = 49;
+
+ message DescriptionSection {
+ required string key = 1;
+ required string content = 2;
+ }
message Params {
repeated Param params = 1;