Commit c28fb3ea authored by Parker Mauney's avatar Parker Mauney Committed by Achilleas Pipinellis

Fix invalid JSON keys/values in API docs

Replace nil -> null and add missing quotes.
parent 5afc9890
...@@ -757,7 +757,7 @@ Diff comments also contain position: ...@@ -757,7 +757,7 @@ Diff comments also contain position:
"notes": [ "notes": [
{ {
"id": 1128, "id": 1128,
"type": DiffNote, "type": "DiffNote",
"body": "diff comment", "body": "diff comment",
"attachment": null, "attachment": null,
"author": { "author": {
...@@ -1089,7 +1089,7 @@ Diff comments contain also position: ...@@ -1089,7 +1089,7 @@ Diff comments contain also position:
"notes": [ "notes": [
{ {
"id": 1128, "id": 1128,
"type": DiffNote, "type": "DiffNote",
"body": "diff comment", "body": "diff comment",
"attachment": null, "attachment": null,
"author": { "author": {
......
...@@ -144,9 +144,9 @@ Example response: ...@@ -144,9 +144,9 @@ Example response:
}, },
"evidences":[ "evidences":[
{ {
sha: "760d6cdfb0879c3ffedec13af470e0f71cf52c6cde4d", "sha": "760d6cdfb0879c3ffedec13af470e0f71cf52c6cde4d",
filepath: "https://gitlab.example.com/root/awesome-app/-/releases/v0.2/evidence.json", "filepath": "https://gitlab.example.com/root/awesome-app/-/releases/v0.2/evidence.json",
collected_at: "2019-01-03T01:56:19.539Z" "collected_at": "2019-01-03T01:56:19.539Z"
} }
] ]
}, },
...@@ -208,9 +208,9 @@ Example response: ...@@ -208,9 +208,9 @@ Example response:
}, },
"evidences":[ "evidences":[
{ {
sha: "c3ffedec13af470e760d6cdfb08790f71cf52c6cde4d", "sha": "c3ffedec13af470e760d6cdfb08790f71cf52c6cde4d",
filepath: "https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json", "filepath": "https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json",
collected_at: "2019-01-03T01:55:18.203Z" "collected_at": "2019-01-03T01:55:18.203Z"
} }
] ]
} }
...@@ -340,9 +340,9 @@ Example response: ...@@ -340,9 +340,9 @@ Example response:
}, },
"evidences":[ "evidences":[
{ {
sha: "760d6cdfb0879c3ffedec13af470e0f71cf52c6cde4d", "sha": "760d6cdfb0879c3ffedec13af470e0f71cf52c6cde4d",
filepath: "https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json", "filepath": "https://gitlab.example.com/root/awesome-app/-/releases/v0.1/evidence.json",
collected_at: "2019-07-16T14:00:12.256Z" "collected_at": "2019-07-16T14:00:12.256Z"
} }
] ]
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment