summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/entities
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-20 12:26:25 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-20 12:26:25 +0000
commita09983ae35713f5a2bbb100981116d31ce99826e (patch)
tree2ee2af7bd104d57086db360a7e6d8c9d5d43667a /spec/fixtures/api/schemas/entities
parent18c5ab32b738c0b6ecb4d0df3994000482f34bd8 (diff)
downloadgitlab-ce-a09983ae35713f5a2bbb100981116d31ce99826e.tar.gz
Add latest changes from gitlab-org/gitlab@13-2-stable-ee
Diffstat (limited to 'spec/fixtures/api/schemas/entities')
-rw-r--r--spec/fixtures/api/schemas/entities/dag_job.json10
-rw-r--r--spec/fixtures/api/schemas/entities/dag_job_group.json13
-rw-r--r--spec/fixtures/api/schemas/entities/dag_pipeline.json11
-rw-r--r--spec/fixtures/api/schemas/entities/dag_stage.json11
4 files changed, 45 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/entities/dag_job.json b/spec/fixtures/api/schemas/entities/dag_job.json
new file mode 100644
index 00000000000..171ac23ca06
--- /dev/null
+++ b/spec/fixtures/api/schemas/entities/dag_job.json
@@ -0,0 +1,10 @@
+{
+ "type": "object",
+ "required": ["name", "scheduling_type"],
+ "properties": {
+ "name": { "type": "string" },
+ "scheduling_type": { "type": ["string", null] },
+ "needs": { "type": "array" }
+ },
+ "additionalProperties": false
+}
diff --git a/spec/fixtures/api/schemas/entities/dag_job_group.json b/spec/fixtures/api/schemas/entities/dag_job_group.json
new file mode 100644
index 00000000000..69a4e69fc63
--- /dev/null
+++ b/spec/fixtures/api/schemas/entities/dag_job_group.json
@@ -0,0 +1,13 @@
+{
+ "type": "object",
+ "required": ["name", "size", "jobs"],
+ "properties": {
+ "name": { "type": "string" },
+ "size": { "type": "integer" },
+ "jobs": {
+ "type": "array",
+ "items": { "$ref": "dag_job.json" }
+ }
+ },
+ "additionalProperties": false
+}
diff --git a/spec/fixtures/api/schemas/entities/dag_pipeline.json b/spec/fixtures/api/schemas/entities/dag_pipeline.json
new file mode 100644
index 00000000000..a661577d040
--- /dev/null
+++ b/spec/fixtures/api/schemas/entities/dag_pipeline.json
@@ -0,0 +1,11 @@
+{
+ "type": "object",
+ "required": ["stages"],
+ "properties": {
+ "stages": {
+ "type": "array",
+ "items": { "$ref": "dag_stage.json" }
+ }
+ },
+ "additionalProperties": false
+}
diff --git a/spec/fixtures/api/schemas/entities/dag_stage.json b/spec/fixtures/api/schemas/entities/dag_stage.json
new file mode 100644
index 00000000000..6a7b1424ec5
--- /dev/null
+++ b/spec/fixtures/api/schemas/entities/dag_stage.json
@@ -0,0 +1,11 @@
+{
+ "type": "object",
+ "required": ["name", "groups"],
+ "properties": {
+ "name": { "type": "string" },
+ "groups": {
+ "type": "array",
+ "items": { "$ref": "dag_job_group.json" }
+ }
+ }
+}