aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server/src
diff options
context:
space:
mode:
authorBenoit <43733395+benoit-sns@users.noreply.github.com>2018-12-05 09:14:47 +0100
committerSonarTech <sonartech@sonarsource.com>2018-12-05 20:20:58 +0100
commit19c12eade9048014f3de1c833274399d823f53aa (patch)
tree622bb57918d21293865016ad13c8704ac61e2016 /server/sonar-server/src
parenta08697f54c9f0b98c1a811c22135b9ae303df05e (diff)
downloadsonarqube-19c12eade9048014f3de1c833274399d823f53aa.tar.gz
sonarqube-19c12eade9048014f3de1c833274399d823f53aa.zip
SONAR-11457 Fix invalid json in api response example
Diffstat (limited to 'server/sonar-server/src')
-rw-r--r--server/sonar-server/src/main/resources/org/sonar/server/issue/ws/component-tags-example.json8
-rw-r--r--server/sonar-server/src/main/resources/org/sonar/server/projectanalysis/ws/create_event-example.json2
-rw-r--r--server/sonar-server/src/main/resources/org/sonar/server/projectanalysis/ws/update_event-example.json2
-rw-r--r--server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json12
4 files changed, 12 insertions, 12 deletions
diff --git a/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/component-tags-example.json b/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/component-tags-example.json
index 3e00535cb05..f2c89f9c709 100644
--- a/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/component-tags-example.json
+++ b/server/sonar-server/src/main/resources/org/sonar/server/issue/ws/component-tags-example.json
@@ -1,7 +1,7 @@
{
"tags": [
- { key: "convention", value: 42 },
- { key: "cwe", value: 12 },
- { key: "security", value: 5 }
+ { "key": "convention", "value": 42 },
+ { "key": "cwe", "value": 12 },
+ { "key": "security", "value": 5 }
]
-} \ No newline at end of file
+}
diff --git a/server/sonar-server/src/main/resources/org/sonar/server/projectanalysis/ws/create_event-example.json b/server/sonar-server/src/main/resources/org/sonar/server/projectanalysis/ws/create_event-example.json
index 2c4917e3e58..f728e0a09bd 100644
--- a/server/sonar-server/src/main/resources/org/sonar/server/projectanalysis/ws/create_event-example.json
+++ b/server/sonar-server/src/main/resources/org/sonar/server/projectanalysis/ws/create_event-example.json
@@ -3,6 +3,6 @@
"analysis": "A2",
"key": "E1",
"category": "OTHER",
- "name": "My Custom Event",
+ "name": "My Custom Event"
}
}
diff --git a/server/sonar-server/src/main/resources/org/sonar/server/projectanalysis/ws/update_event-example.json b/server/sonar-server/src/main/resources/org/sonar/server/projectanalysis/ws/update_event-example.json
index 2c4917e3e58..f728e0a09bd 100644
--- a/server/sonar-server/src/main/resources/org/sonar/server/projectanalysis/ws/update_event-example.json
+++ b/server/sonar-server/src/main/resources/org/sonar/server/projectanalysis/ws/update_event-example.json
@@ -3,6 +3,6 @@
"analysis": "A2",
"key": "E1",
"category": "OTHER",
- "name": "My Custom Event",
+ "name": "My Custom Event"
}
}
diff --git a/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json b/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json
index 32c2b3ab91b..3ecb866a8cd 100644
--- a/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json
+++ b/server/sonar-server/src/main/resources/org/sonar/server/source/ws/lines-example.json
@@ -1,10 +1,10 @@
{
"sources": [
- {"line": 20, "code": "<span class=\"k\">package </span>org.sonar.check;", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false],
- {"line": 21, "code":"", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"],
- {"line": 22, "code":"<span class=\"k\">public </span><span class=\"k\">enum </span><span class=\"sym-922 sym\">Priority</span> {", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":true],
- {"line": 23, "code":" <span class=\"cppd\">/**</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false],
- {"line": 24, "code":"<span class=\"cppd\"> * WARNING : DO NOT CHANGE THE ENUMERATION ORDER</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false],
- {"line": 25, "code":"<span class=\"cppd\"> * the enum ordinal is used for db persistence</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false]
+ {"line": 20, "code": "<span class=\"k\">package </span>org.sonar.check;", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false},
+ {"line": 21, "code":"", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5"},
+ {"line": 22, "code":"<span class=\"k\">public </span><span class=\"k\">enum </span><span class=\"sym-922 sym\">Priority</span> {", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":true},
+ {"line": 23, "code":" <span class=\"cppd\">/**</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false},
+ {"line": 24, "code":"<span class=\"cppd\"> * WARNING : DO NOT CHANGE THE ENUMERATION ORDER</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false},
+ {"line": 25, "code":"<span class=\"cppd\"> * the enum ordinal is used for db persistence</span>", "scmAuthor": "simon.brandhof@sonarsource.com", "scmDate": "2011-01-02T12:34:56+0100", "scmRevision":"a1e2b3e5d6f5", "isNew":false}
]
}