diff options
author | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-12 04:12:04 +0900 |
---|---|---|
committer | Shinya Maeda <gitlab.shinyamaeda@gmail.com> | 2017-05-30 23:55:08 +0900 |
commit | fbd3b3d8a245072121784df11b7b41d3257b989f (patch) | |
tree | 53fd84be85bd74545d59433b1b5fcf61f5d4910e /spec/fixtures | |
parent | a16cbab3bb371941f51c3c4178b8b807de000ca8 (diff) | |
download | gitlab-ce-fbd3b3d8a245072121784df11b7b41d3257b989f.tar.gz |
Add API support for pipeline schedule
Diffstat (limited to 'spec/fixtures')
-rw-r--r-- | spec/fixtures/api/schemas/pipeline_schedule.json | 64 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/pipeline_schedules.json | 4 |
2 files changed, 68 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/pipeline_schedule.json b/spec/fixtures/api/schemas/pipeline_schedule.json new file mode 100644 index 00000000000..46309b212a1 --- /dev/null +++ b/spec/fixtures/api/schemas/pipeline_schedule.json @@ -0,0 +1,64 @@ +{ + "type": "object", + "properties" : { + "id": { "type": "integer" }, + "description": { "type": "string" }, + "ref": { "type": "string" }, + "cron": { "type": "string" }, + "cron_timezone": { "type": "string" }, + "next_run_at": { "type": "date" }, + "active": { "type": "boolean" }, + "created_at": { "type": "date" }, + "updated_at": { "type": "date" }, + "deleted_at": { "type": "date" }, + "last_pipeline": { + "type": ["object", "null"], + "properties": { + "id": { "type": "integer" }, + "sha": { "type": "string" }, + "ref": { "type": "string" }, + "status": { "type": "string" }, + "before_sha": { "type": ["string", "null"] }, + "tag": { "type": ["boolean", "null"] }, + "yaml_errors": { "type": ["string", "null"] }, + "user": { + "type": ["object", "null"], + "properties": { + "name": { "type": "string" }, + "username": { "type": "string" }, + "id": { "type": "integer" }, + "state": { "type": "string" }, + "avatar_url": { "type": "uri" }, + "web_url": { "type": "uri" } + }, + "additionalProperties": false + }, + "created_at": { "type": "date" }, + "updated_at": { "type": "date" }, + "started_at": { "type": "date" }, + "finished_at": { "type": "date" }, + "committed_at": { "type": ["string", "null"] }, + "duration": { "type": ["integer", "null"] }, + "coverage": { "type": ["string", "null"] } + }, + "additionalProperties": false + }, + "owner": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "username": { "type": "string" }, + "id": { "type": "integer" }, + "state": { "type": "string" }, + "avatar_url": { "type": "uri" }, + "web_url": { "type": "uri" } + }, + "additionalProperties": false + } + }, + "required": [ + "id", "description", "ref", "cron", "cron_timezone", "next_run_at", + "active", "created_at", "updated_at", "deleted_at", "owner" + ], + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/pipeline_schedules.json b/spec/fixtures/api/schemas/pipeline_schedules.json new file mode 100644 index 00000000000..173a28d2505 --- /dev/null +++ b/spec/fixtures/api/schemas/pipeline_schedules.json @@ -0,0 +1,4 @@ +{ + "type": "array", + "items": { "$ref": "pipeline_schedule.json" } +} |