diff options
Diffstat (limited to 'spec/fixtures/api/schemas/status')
-rw-r--r-- | spec/fixtures/api/schemas/status/action.json | 22 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/status/ci_detailed_status.json | 26 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/status/illustration.json | 19 |
3 files changed, 67 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/status/action.json b/spec/fixtures/api/schemas/status/action.json new file mode 100644 index 00000000000..99a576e6c5b --- /dev/null +++ b/spec/fixtures/api/schemas/status/action.json @@ -0,0 +1,22 @@ +{ + "type": "object", + "required": [ + "icon", + "title", + "path", + "method" + ], + "properties": { + "icon": { + "type": "string", + "enum": [ + "retry", + "play", + "cancel" + ] + }, + "title": { "type": "string" }, + "path": { "type": "string" }, + "method": { "$ref": "../http_method.json" } + } +} diff --git a/spec/fixtures/api/schemas/status/ci_detailed_status.json b/spec/fixtures/api/schemas/status/ci_detailed_status.json new file mode 100644 index 00000000000..8d0f1e4a6af --- /dev/null +++ b/spec/fixtures/api/schemas/status/ci_detailed_status.json @@ -0,0 +1,26 @@ +{ + "type": "object", + "required": [ + "icon", + "text", + "label", + "group", + "tooltip", + "has_details", + "details_path", + "favicon" + ], + "properties": { + "icon": { "type": "string" }, + "text": { "type": "string" }, + "label": { "type": "string" }, + "group": { "type": "string" }, + "tooltip": { "type": "string" }, + "has_details": { "type": "boolean" }, + "details_path": { "type": "string" }, + "favicon": { "type": "string" }, + "illustration": { "$ref": "illustration.json" }, + "action": { "$ref": "action.json" } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/status/illustration.json b/spec/fixtures/api/schemas/status/illustration.json new file mode 100644 index 00000000000..9a085f5f1ee --- /dev/null +++ b/spec/fixtures/api/schemas/status/illustration.json @@ -0,0 +1,19 @@ +{ + "oneOf": [ + { "type": "null" }, + { + "type": "object", + "required": [ + "image", + "size", + "title" + ], + "properties": { + "image": { "type": "string" }, + "size": { "type": "string" }, + "title": { "type": "string" }, + "content": { "type": "string" } + } + } + ] +} |