aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main
diff options
context:
space:
mode:
authorAntoine Vigneau <antoine.vigneau@sonarsource.com>2024-06-04 23:27:06 +0200
committersonartech <sonartech@sonarsource.com>2024-06-05 20:02:46 +0000
commitb7e5fcf95e8cce0a59991ea22fa2b3472749b0a9 (patch)
tree75641c122d078914be6c7c39d34205a958a74388 /sonar-ws/src/main
parent1b22fbd758d5c17bdb30c2d9476e76c03043428f (diff)
downloadsonarqube-b7e5fcf95e8cce0a59991ea22fa2b3472749b0a9.tar.gz
sonarqube-b7e5fcf95e8cce0a59991ea22fa2b3472749b0a9.zip
SC-13426 Align protobuf response with SonarCloud
Diffstat (limited to 'sonar-ws/src/main')
-rw-r--r--sonar-ws/src/main/protobuf/ws-settings.proto10
1 files changed, 10 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-settings.proto b/sonar-ws/src/main/protobuf/ws-settings.proto
index 03c41000121..7317a62b365 100644
--- a/sonar-ws/src/main/protobuf/ws-settings.proto
+++ b/sonar-ws/src/main/protobuf/ws-settings.proto
@@ -87,6 +87,8 @@ enum Type {
}
// Response of GET api/settings/values
+//IMPORTANT: As of August 2023 we have to align the protobuf response of values endpoint with SonarCloud, as SonarLint depends on it.
+//See https://xtranet-sonarsource.atlassian.net/wiki/spaces/DEV/pages/2878669037/Cross-product+consistency+in+protobuf+Web+endpoints
message ValuesWsResponse {
repeated Setting settings = 1;
repeated string setSecuredSettings = 2;
@@ -105,6 +107,7 @@ message Setting {
Values parentValues = 7;
FieldValues parentFieldValues = 8;
}
+ Origin parentOrigin = 9;
}
message Values {
@@ -118,3 +121,10 @@ message FieldValues {
map<string, string> value = 1;
}
}
+
+enum Origin {
+ UNDEFINED = 0;
+ INSTANCE = 1;
+ ORGANIZATION = 2;
+ PROJECT = 3;
+}