Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-02-02 00:18:03 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-02-05 20:58:20 +0300
commit434a6158ad08104662539d11a574f12668b3e6a5 (patch)
tree93d4e043402fdbf1ad428954fd625f9d202088c3 /spec/fixtures
parent558057010f02fc931db08d8dedfc7cdeb6192ecb (diff)
Fix Variable JSON Schema
Diffstat (limited to 'spec/fixtures')
-rw-r--r--spec/fixtures/api/schemas/variable.json26
1 files changed, 22 insertions, 4 deletions
diff --git a/spec/fixtures/api/schemas/variable.json b/spec/fixtures/api/schemas/variable.json
index 422b4738418..b91ab633d26 100644
--- a/spec/fixtures/api/schemas/variable.json
+++ b/spec/fixtures/api/schemas/variable.json
@@ -1,6 +1,24 @@
{
- "id": "string",
- "key": "string",
- "value": "string",
- "protected": "boolean"
+ "type": "object",
+ "required": ["variables"],
+ "properties": {
+ "variables": {
+ "type": "array",
+ "items": {
+ "required": [
+ "id",
+ "key",
+ "value",
+ "protected"
+ ],
+ "properties": {
+ "id": { "type": "integer" },
+ "key": { "type": "string" },
+ "value": { "type": "string" },
+ "protected": { "type": "boolean" }
+ }
+ }
+ }
+ },
+ "additionalProperties": false
}