diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-01 22:18:03 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-05 18:58:20 +0100 |
commit | 434a6158ad08104662539d11a574f12668b3e6a5 (patch) | |
tree | 93d4e043402fdbf1ad428954fd625f9d202088c3 /spec/fixtures/api/schemas/variable.json | |
parent | 558057010f02fc931db08d8dedfc7cdeb6192ecb (diff) | |
download | gitlab-ce-434a6158ad08104662539d11a574f12668b3e6a5.tar.gz |
Fix Variable JSON Schema
Diffstat (limited to 'spec/fixtures/api/schemas/variable.json')
-rw-r--r-- | spec/fixtures/api/schemas/variable.json | 26 |
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 } |