summaryrefslogtreecommitdiff
path: root/spec/fixtures/api
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2018-10-01 10:53:08 -0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2018-10-01 10:53:08 -0300
commitb18345fac49e3b0ef35a22f3d784aef9f6bf9209 (patch)
treef74c10565f781c04bbe9a62efa0e8fcd1af13982 /spec/fixtures/api
parente5d3a75aac4f0bb287699b21f3a56b8bfe499665 (diff)
downloadgitlab-ce-b18345fac49e3b0ef35a22f3d784aef9f6bf9209.tar.gz
Filter user sensitive data from discussions JSON
Diffstat (limited to 'spec/fixtures/api')
-rw-r--r--spec/fixtures/api/schemas/entities/note_user_entity.json21
1 files changed, 21 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/entities/note_user_entity.json b/spec/fixtures/api/schemas/entities/note_user_entity.json
new file mode 100644
index 00000000000..9b838054563
--- /dev/null
+++ b/spec/fixtures/api/schemas/entities/note_user_entity.json
@@ -0,0 +1,21 @@
+{
+ "type": "object",
+ "required": [
+ "id",
+ "state",
+ "avatar_url",
+ "path",
+ "name",
+ "username"
+ ],
+ "properties": {
+ "id": { "type": "integer" },
+ "state": { "type": "string" },
+ "avatar_url": { "type": "string" },
+ "path": { "type": "string" },
+ "name": { "type": "string" },
+ "username": { "type": "string" },
+ "status_tooltip_html": { "$ref": "../types/nullable_string.json" }
+ },
+ "additionalProperties": false
+}