diff options
Diffstat (limited to 'spec/fixtures/api/schemas')
-rw-r--r-- | spec/fixtures/api/schemas/deployment.json | 3 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/evidences/evidence.json | 11 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/evidences/issue.json | 25 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/evidences/milestone.json | 27 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/evidences/project.json | 16 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/evidences/release.json | 25 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/job/build_trace.json | 31 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/job/build_trace_line.json | 18 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/job/build_trace_line_content.json | 11 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/list.json | 3 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/board.json | 3 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/deployment.json | 5 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/environment.json | 3 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/release.json | 10 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/release/release_for_guest.json | 13 |
15 files changed, 199 insertions, 5 deletions
diff --git a/spec/fixtures/api/schemas/deployment.json b/spec/fixtures/api/schemas/deployment.json index 81c2d1ef5ab..0cfeadfe548 100644 --- a/spec/fixtures/api/schemas/deployment.json +++ b/spec/fixtures/api/schemas/deployment.json @@ -60,7 +60,8 @@ "scheduled_actions": { "type": "array", "items": { "$ref": "job/job.json" } - } + }, + "status": { "type": "string" } }, "additionalProperties": false } diff --git a/spec/fixtures/api/schemas/evidences/evidence.json b/spec/fixtures/api/schemas/evidences/evidence.json new file mode 100644 index 00000000000..ea3861258e1 --- /dev/null +++ b/spec/fixtures/api/schemas/evidences/evidence.json @@ -0,0 +1,11 @@ +{ + "type": "object", + "required": [ + "release" + ], + "properties": { + "release": { "$ref": "release.json" } + }, + "additionalProperties": false +} + diff --git a/spec/fixtures/api/schemas/evidences/issue.json b/spec/fixtures/api/schemas/evidences/issue.json new file mode 100644 index 00000000000..fd9daf17ab8 --- /dev/null +++ b/spec/fixtures/api/schemas/evidences/issue.json @@ -0,0 +1,25 @@ +{ + "type": "object", + "required": [ + "id", + "title", + "description", + "author", + "state", + "iid", + "confidential", + "created_at", + "due_date" + ], + "properties": { + "id": { "type": "integer" }, + "title": { "type": "string" }, + "description": { "type": ["string", "null"] }, + "state": { "type": "string" }, + "iid": { "type": "integer" }, + "confidential": { "type": "boolean" }, + "created_at": { "type": "date" }, + "due_date": { "type": ["date", "null"] } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/evidences/milestone.json b/spec/fixtures/api/schemas/evidences/milestone.json new file mode 100644 index 00000000000..ab27fdecde2 --- /dev/null +++ b/spec/fixtures/api/schemas/evidences/milestone.json @@ -0,0 +1,27 @@ +{ + "type": "object", + "required": [ + "id", + "title", + "description", + "state", + "iid", + "created_at", + "due_date", + "issues" + ], + "properties": { + "id": { "type": "integer" }, + "title": { "type": "string" }, + "description": { "type": ["string", "null"] }, + "state": { "type": "string" }, + "iid": { "type": "integer" }, + "created_at": { "type": "date" }, + "due_date": { "type": ["date", "null"] }, + "issues": { + "type": "array", + "items": { "$ref": "issue.json" } + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/evidences/project.json b/spec/fixtures/api/schemas/evidences/project.json new file mode 100644 index 00000000000..3a094bd276f --- /dev/null +++ b/spec/fixtures/api/schemas/evidences/project.json @@ -0,0 +1,16 @@ +{ + "type": "object", + "required": [ + "id", + "name", + "description", + "created_at" + ], + "properties": { + "id": { "type": "integer" }, + "name": { "type": "string" }, + "description": { "type": ["string", "null"] }, + "created_at": { "type": "date" } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/evidences/release.json b/spec/fixtures/api/schemas/evidences/release.json new file mode 100644 index 00000000000..37eb9a9b5c0 --- /dev/null +++ b/spec/fixtures/api/schemas/evidences/release.json @@ -0,0 +1,25 @@ +{ + "type": "object", + "required": [ + "id", + "tag_name", + "name", + "description", + "created_at", + "project", + "milestones" + ], + "properties": { + "id": { "type": "integer" }, + "tag_name": { "type": "string" }, + "name": { "type": ["string", "null"] }, + "description": { "type": "string" }, + "created_at": { "type": "date" }, + "project": { "$ref": "project.json" }, + "milestones": { + "type": "array", + "items": { "$ref": "milestone.json" } + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/job/build_trace.json b/spec/fixtures/api/schemas/job/build_trace.json new file mode 100644 index 00000000000..becd881ea57 --- /dev/null +++ b/spec/fixtures/api/schemas/job/build_trace.json @@ -0,0 +1,31 @@ +{ + "description": "Build trace", + "type": "object", + "required": [ + "id", + "status", + "complete", + "state", + "append", + "truncated", + "offset", + "size", + "total" + ], + "properties": { + "id": { "type": "integer" }, + "status": { "type": "string" }, + "complete": { "type": "boolean" }, + "state": { "type": ["string", "null"] }, + "append": { "type": ["boolean", "null"] }, + "truncated": { "type": ["boolean", "null"] }, + "offset": { "type": ["integer", "null"] }, + "size": { "type": ["integer", "null"] }, + "total": { "type": ["integer", "null"] }, + "html": { "type": ["string", "null"] }, + "lines": { + "type": ["array", "null"], + "items": { "$ref": "./build_trace_line.json" } + } + } +} diff --git a/spec/fixtures/api/schemas/job/build_trace_line.json b/spec/fixtures/api/schemas/job/build_trace_line.json new file mode 100644 index 00000000000..18726dff2bb --- /dev/null +++ b/spec/fixtures/api/schemas/job/build_trace_line.json @@ -0,0 +1,18 @@ +{ + "description": "Build trace line", + "type": "object", + "required": [ + "offset", + "content" + ], + "properties": { + "offset": { "type": "integer" }, + "content": { + "type": "array", + "items": { "$ref": "./build_trace_line_content.json" } + }, + "section": "string", + "section_header": "boolean", + "section_duration": "string" + } +} diff --git a/spec/fixtures/api/schemas/job/build_trace_line_content.json b/spec/fixtures/api/schemas/job/build_trace_line_content.json new file mode 100644 index 00000000000..41f8124c113 --- /dev/null +++ b/spec/fixtures/api/schemas/job/build_trace_line_content.json @@ -0,0 +1,11 @@ +{ + "description": "Build trace line content", + "type": "object", + "required": [ + "text" + ], + "properties": { + "text": { "type": "string" }, + "style": { "type": "string" } + } +} diff --git a/spec/fixtures/api/schemas/list.json b/spec/fixtures/api/schemas/list.json index b76ec115293..7603892e198 100644 --- a/spec/fixtures/api/schemas/list.json +++ b/spec/fixtures/api/schemas/list.json @@ -35,7 +35,8 @@ } }, "title": { "type": "string" }, - "position": { "type": ["integer", "null"] } + "position": { "type": ["integer", "null"] }, + "max_issue_count": { "type": "integer" } }, "additionalProperties": true } diff --git a/spec/fixtures/api/schemas/public_api/v4/board.json b/spec/fixtures/api/schemas/public_api/v4/board.json index d667f1d631c..8dc3999baa2 100644 --- a/spec/fixtures/api/schemas/public_api/v4/board.json +++ b/spec/fixtures/api/schemas/public_api/v4/board.json @@ -76,7 +76,8 @@ "name": { "type": "string" } } }, - "position": { "type": ["integer", "null"] } + "position": { "type": ["integer", "null"] }, + "max_issue_count": { "type": "integer" } }, "additionalProperties": false } diff --git a/spec/fixtures/api/schemas/public_api/v4/deployment.json b/spec/fixtures/api/schemas/public_api/v4/deployment.json index 3af2dc27d55..2371509edd6 100644 --- a/spec/fixtures/api/schemas/public_api/v4/deployment.json +++ b/spec/fixtures/api/schemas/public_api/v4/deployment.json @@ -6,6 +6,7 @@ "ref", "sha", "created_at", + "updated_at", "user", "deployable" ], @@ -15,6 +16,7 @@ "ref": { "type": "string" }, "sha": { "type": "string" }, "created_at": { "type": "string" }, + "updated_at": { "type": "string" }, "user": { "oneOf": [ { "type": "null" }, @@ -26,7 +28,8 @@ { "type": "null" }, { "$ref": "job.json" } ] - } + }, + "status": { "type": "string" } }, "additionalProperties": false } diff --git a/spec/fixtures/api/schemas/public_api/v4/environment.json b/spec/fixtures/api/schemas/public_api/v4/environment.json index 242e90fb7ac..57352017f03 100644 --- a/spec/fixtures/api/schemas/public_api/v4/environment.json +++ b/spec/fixtures/api/schemas/public_api/v4/environment.json @@ -17,7 +17,8 @@ { "type": "null" }, { "$ref": "deployment.json" } ] - } + }, + "state": { "type": "string" } }, "additionalProperties": false } diff --git a/spec/fixtures/api/schemas/public_api/v4/release.json b/spec/fixtures/api/schemas/public_api/v4/release.json index 662e61a9c06..2bdc8bc711c 100644 --- a/spec/fixtures/api/schemas/public_api/v4/release.json +++ b/spec/fixtures/api/schemas/public_api/v4/release.json @@ -19,6 +19,9 @@ "type": "array", "items": { "$ref": "milestone.json" } }, + "commit_path": { "type": "string" }, + "tag_path": { "type": "string" }, + "name": { "type": "string" }, "assets": { "required": ["count", "links", "sources"], "properties": { @@ -33,6 +36,13 @@ } }, "additionalProperties": false + }, + "_links": { + "required": ["merge_requests_url", "issues_url"], + "properties": { + "merge_requests_url": { "type": "string" }, + "issues_url": { "type": "string" } + } } }, "additionalProperties": false diff --git a/spec/fixtures/api/schemas/public_api/v4/release/release_for_guest.json b/spec/fixtures/api/schemas/public_api/v4/release/release_for_guest.json index 0c1e8fd5fb3..bce74892059 100644 --- a/spec/fixtures/api/schemas/public_api/v4/release/release_for_guest.json +++ b/spec/fixtures/api/schemas/public_api/v4/release/release_for_guest.json @@ -8,6 +8,12 @@ "created_at": { "type": "date" }, "released_at": { "type": "date" }, "upcoming_release": { "type": "boolean" }, + "milestones": { + "type": "array", + "items": { "$ref": "../milestone.json" } + }, + "commit_path": { "type": "string" }, + "tag_path": { "type": "string" }, "author": { "oneOf": [{ "type": "null" }, { "$ref": "../user/basic.json" }] }, @@ -18,6 +24,13 @@ "links": { "$ref": "../../../release/links.json" } }, "additionalProperties": false + }, + "_links": { + "required": ["merge_requests_url", "issues_url"], + "properties": { + "merge_requests_url": { "type": "string" }, + "issues_url": { "type": "string" } + } } }, "additionalProperties": false |