summaryrefslogtreecommitdiff
path: root/spec/fixtures
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-01 15:41:30 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 12:58:58 -0300
commite1998844781b92d118f25cb8f8c0cbd293a25708 (patch)
tree006c9df0983d5d3534a522cdbfa303b1c4926f48 /spec/fixtures
parentbddb2f938cea11f31dc78f0c7bf9bb203ee3a4bd (diff)
downloadgitlab-ce-e1998844781b92d118f25cb8f8c0cbd293a25708.tar.gz
Projects::BoardsController#show returns a list of board lists
Diffstat (limited to 'spec/fixtures')
-rw-r--r--spec/fixtures/api/schemas/list.json35
1 files changed, 35 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/list.json b/spec/fixtures/api/schemas/list.json
new file mode 100644
index 00000000000..21239f136cd
--- /dev/null
+++ b/spec/fixtures/api/schemas/list.json
@@ -0,0 +1,35 @@
+{
+ "type": "object",
+ "required" : [
+ "id",
+ "list_type",
+ "title",
+ "position"
+ ],
+ "properties" : {
+ "id": { "type": "integer" },
+ "list_type": {
+ "type": "string",
+ "enum": ["backlog", "label", "done"]
+ },
+ "label": {
+ "type": ["object"],
+ "required": [
+ "id",
+ "color",
+ "title"
+ ],
+ "properties": {
+ "id": { "type": "integer" },
+ "color": {
+ "type": "string",
+ "pattern": "^#[0-9A-Fa-f]{3}{1,2}+$"
+ },
+ "title": { "type": "string" }
+ }
+ },
+ "title": { "type": "string" },
+ "position": { "type": ["integer", "null"] }
+ },
+ "additionalProperties": false
+}