diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-19 18:17:46 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-31 11:30:37 +0300 |
commit | 246bb231c377e2b8a6696811a200d6ac8072cebe (patch) | |
tree | 9427569a8f3b3efd21ece8593145f7031e741137 /spec/fixtures | |
parent | 4d042afeced540c0acd887714d8ec7c962b7c507 (diff) |
Returns the total number of issues in the JSON response
Diffstat (limited to 'spec/fixtures')
-rw-r--r-- | spec/fixtures/api/schemas/issues.json | 15 |
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 } |