summaryrefslogtreecommitdiff
path: root/spec/fixtures
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-22 02:21:37 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-04 21:10:34 +0900
commit03f72f0f419b7e05fe9207c90b92b02ef7291cd1 (patch)
tree944103f6d4c8bb2ed8dec2db36aeecf1b2b7b2f7 /spec/fixtures
parent278ac9ed5db6b191b42b52457492e551759f9d7d (diff)
downloadgitlab-ce-03f72f0f419b7e05fe9207c90b92b02ef7291cd1.tar.gz
Add spec (Halfway)
Diffstat (limited to 'spec/fixtures')
-rw-r--r--spec/fixtures/api/schemas/pipeline_schedule.json9
-rw-r--r--spec/fixtures/api/schemas/pipeline_schedule_variable.json8
2 files changed, 9 insertions, 8 deletions
diff --git a/spec/fixtures/api/schemas/pipeline_schedule.json b/spec/fixtures/api/schemas/pipeline_schedule.json
index 16bbeacddbd..c76c6945117 100644
--- a/spec/fixtures/api/schemas/pipeline_schedule.json
+++ b/spec/fixtures/api/schemas/pipeline_schedule.json
@@ -34,14 +34,7 @@
},
"variables": {
"type": ["array", "null"],
- "items": {
- "type": ["object", "null"],
- "properties": {
- "key": { "type": "string" },
- "value": { "type": "string" }
- },
- "additionalProperties": false
- }
+ "items": { "$ref": "pipeline_schedule_variable.json" }
}
},
"required": [
diff --git a/spec/fixtures/api/schemas/pipeline_schedule_variable.json b/spec/fixtures/api/schemas/pipeline_schedule_variable.json
new file mode 100644
index 00000000000..f7ccb2d44a0
--- /dev/null
+++ b/spec/fixtures/api/schemas/pipeline_schedule_variable.json
@@ -0,0 +1,8 @@
+{
+ "type": ["object", "null"],
+ "properties": {
+ "key": { "type": "string" },
+ "value": { "type": "string" }
+ },
+ "additionalProperties": false
+}