diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-02 00:35:00 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-05 20:58:21 +0300 |
commit | 18232d7efb53381dea8727c36fc7a36dd2fd9d5e (patch) | |
tree | 3ac8700de4e27b9195c093b0b60d58cc1994dd43 /spec/fixtures/api | |
parent | 434a6158ad08104662539d11a574f12668b3e6a5 (diff) |
Extract Variable into separate JSON Schema
Diffstat (limited to 'spec/fixtures/api')
-rw-r--r-- | spec/fixtures/api/schemas/variable.json | 28 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/variables.json | 11 |
2 files changed, 21 insertions, 18 deletions
diff --git a/spec/fixtures/api/schemas/variable.json b/spec/fixtures/api/schemas/variable.json index b91ab633d26..78977118b0a 100644 --- a/spec/fixtures/api/schemas/variable.json +++ b/spec/fixtures/api/schemas/variable.json @@ -1,24 +1,16 @@ { "type": "object", - "required": ["variables"], + "required": [ + "id", + "key", + "value", + "protected" + ], "properties": { - "variables": { - "type": "array", - "items": { - "required": [ - "id", - "key", - "value", - "protected" - ], - "properties": { - "id": { "type": "integer" }, - "key": { "type": "string" }, - "value": { "type": "string" }, - "protected": { "type": "boolean" } - } - } - } + "id": { "type": "integer" }, + "key": { "type": "string" }, + "value": { "type": "string" }, + "protected": { "type": "boolean" } }, "additionalProperties": false } diff --git a/spec/fixtures/api/schemas/variables.json b/spec/fixtures/api/schemas/variables.json new file mode 100644 index 00000000000..8002f39a7b8 --- /dev/null +++ b/spec/fixtures/api/schemas/variables.json @@ -0,0 +1,11 @@ +{ + "type": "object", + "required": ["variables"], + "properties": { + "variables": { + "type": "array", + "items": { "$ref": "variable.json" } + } + }, + "additionalProperties": false +} |