summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/pipeline_schedule.json
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures/api/schemas/pipeline_schedule.json')
-rw-r--r--spec/fixtures/api/schemas/pipeline_schedule.json153
1 files changed, 121 insertions, 32 deletions
diff --git a/spec/fixtures/api/schemas/pipeline_schedule.json b/spec/fixtures/api/schemas/pipeline_schedule.json
index ef5942b7eb3..ade5a76d934 100644
--- a/spec/fixtures/api/schemas/pipeline_schedule.json
+++ b/spec/fixtures/api/schemas/pipeline_schedule.json
@@ -1,53 +1,142 @@
{
"type": "object",
- "properties" : {
- "id": { "type": "integer" },
- "description": { "type": "string" },
- "ref": { "type": "string" },
- "cron": { "type": "string" },
- "cron_timezone": { "type": "string" },
- "next_run_at": { "type": "string" },
- "active": { "type": "boolean" },
- "created_at": { "type": ["string", "null"], "format": "date-time" },
- "updated_at": { "type": ["string", "null"], "format": "date-time" },
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "description": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "cron": {
+ "type": "string"
+ },
+ "cron_timezone": {
+ "type": "string"
+ },
+ "next_run_at": {
+ "type": "string"
+ },
+ "active": {
+ "type": "boolean"
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
"last_pipeline": {
- "type": ["object", "null"],
+ "type": [
+ "object",
+ "null"
+ ],
"properties": {
- "id": { "type": "integer" },
- "iid": { "type": "integer" },
- "project_id": { "type": "integer" },
- "sha": { "type": "string" },
- "ref": { "type": "string" },
- "status": { "type": "string" },
- "source": { "type": "string" },
- "web_url": { "type": ["string", "null"] },
- "created_at": { "type": ["string", "null"], "format": "date-time" },
- "updated_at": { "type": ["string", "null"], "format": "date-time" }
+ "id": {
+ "type": "integer"
+ },
+ "iid": {
+ "type": "integer"
+ },
+ "project_id": {
+ "type": "integer"
+ },
+ "sha": {
+ "type": "string"
+ },
+ "ref": {
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ },
+ "source": {
+ "type": "string"
+ },
+ "web_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "created_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ }
},
"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" }
+ "name": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ },
+ "id": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "string"
+ },
+ "avatar_url": {
+ "type": "string",
+ "format": "uri"
+ },
+ "web_url": {
+ "type": "string",
+ "format": "uri"
+ }
},
"required": [
- "id", "name", "username", "state", "avatar_url", "web_url"
+ "id",
+ "name",
+ "username",
+ "state",
+ "avatar_url",
+ "web_url"
]
},
"variables": {
"type": "array",
- "items": { "$ref": "pipeline_schedule_variable.json" }
+ "items": {
+ "$ref": "pipeline_schedule_variable.json"
+ }
}
},
"required": [
- "id", "description", "ref", "cron", "cron_timezone", "next_run_at",
- "active", "created_at", "updated_at", "owner"
+ "id",
+ "description",
+ "ref",
+ "cron",
+ "cron_timezone",
+ "next_run_at",
+ "active",
+ "created_at",
+ "updated_at",
+ "owner"
],
"additionalProperties": false
-}
+} \ No newline at end of file