Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-14 12:07:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-14 12:07:51 +0300
commit00b8ecb72c9f77d864aff3572f028613f45af03c (patch)
treecb8f42234547d61f2721e3fe9361e84c6a710235 /spec/fixtures/api
parent138c61238317b2a61f387749a1f4583309675a83 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/fixtures/api')
-rw-r--r--spec/fixtures/api/schemas/external_validation.json75
1 files changed, 75 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/external_validation.json b/spec/fixtures/api/schemas/external_validation.json
new file mode 100644
index 00000000000..1bd00a2e6fc
--- /dev/null
+++ b/spec/fixtures/api/schemas/external_validation.json
@@ -0,0 +1,75 @@
+{
+ "type": "object",
+ "required" : [
+ "project",
+ "user",
+ "pipeline",
+ "builds"
+ ],
+ "properties" : {
+ "project": {
+ "type": "object",
+ "required": [
+ "id",
+ "path"
+ ],
+ "properties": {
+ "id": { "type": "integer" },
+ "path": { "type": "string" }
+ }
+ },
+ "user": {
+ "type": "object",
+ "required": [
+ "id",
+ "username",
+ "email"
+ ],
+ "properties": {
+ "id": { "type": "integer" },
+ "username": { "type": "string" },
+ "email": { "type": "string" }
+ }
+ },
+ "pipeline": {
+ "type": "object",
+ "required": [
+ "sha",
+ "ref",
+ "type"
+ ],
+ "properties": {
+ "sha": { "type": "string" },
+ "ref": { "type": "string" },
+ "type": { "type": "string" }
+ }
+ },
+ "builds": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [
+ "name",
+ "stage",
+ "image",
+ "services",
+ "script"
+ ],
+ "properties": {
+ "name": { "type": "string" },
+ "stage": { "type": "string" },
+ "image": { "type": ["string", "null"] },
+ "services": {
+ "type": ["array", "null"],
+ "items": { "type": "string" }
+ },
+ "script": {
+ "type": "array",
+ "items": { "type": "string" }
+ }
+ }
+ }
+ }
+ },
+ "additionalProperties": false
+}