summaryrefslogtreecommitdiff
path: root/spec/fixtures
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-19 12:17:46 -0300
committerPhil Hughes <me@iamphill.com>2016-08-31 09:30:37 +0100
commit246bb231c377e2b8a6696811a200d6ac8072cebe (patch)
tree9427569a8f3b3efd21ece8593145f7031e741137 /spec/fixtures
parent4d042afeced540c0acd887714d8ec7c962b7c507 (diff)
downloadgitlab-ce-246bb231c377e2b8a6696811a200d6ac8072cebe.tar.gz
Returns the total number of issues in the JSON response
Diffstat (limited to 'spec/fixtures')
-rw-r--r--spec/fixtures/api/schemas/issues.json15
1 files changed, 13 insertions, 2 deletions
diff --git a/spec/fixtures/api/schemas/issues.json b/spec/fixtures/api/schemas/issues.json
index 0d2067f704a..70771b21c96 100644
--- a/spec/fixtures/api/schemas/issues.json
+++ b/spec/fixtures/api/schemas/issues.json
@@ -1,4 +1,15 @@
{
- "type": "array",
- "items": { "$ref": "issue.json" }
+ "type": "object",
+ "required" : [
+ "issues",
+ "size"
+ ],
+ "properties" : {
+ "issues": {
+ "type": "array",
+ "items": { "$ref": "issue.json" }
+ },
+ "size": { "type": "integer" }
+ },
+ "additionalProperties": false
}