summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/entities/lint_job_entity.json
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures/api/schemas/entities/lint_job_entity.json')
-rw-r--r--spec/fixtures/api/schemas/entities/lint_job_entity.json58
1 files changed, 58 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/entities/lint_job_entity.json b/spec/fixtures/api/schemas/entities/lint_job_entity.json
new file mode 100644
index 00000000000..b85f58d4291
--- /dev/null
+++ b/spec/fixtures/api/schemas/entities/lint_job_entity.json
@@ -0,0 +1,58 @@
+{
+ "type": "object",
+ "required": [
+ "name",
+ "stage",
+ "before_script",
+ "script",
+ "after_script",
+ "tag_list",
+ "environment",
+ "when",
+ "allow_failure",
+ "only",
+ "except"
+ ],
+ "properties": {
+ "name": {
+ "type": ["string"]
+ },
+ "stage": {
+ "type": ["string"]
+ },
+ "before_script": {
+ "type": ["array"],
+ "items": { "type": "string" }
+ },
+ "script": {
+ "type": ["array"],
+ "items": { "type": "string" }
+ },
+ "after_script": {
+ "type": ["array"],
+ "items": { "type": "string" }
+ },
+ "when": {
+ "items": { "type": ["string"] }
+ },
+ "allow_failure": {
+ "type": ["boolean"]
+ },
+ "environment": {
+ "type": ["string", null]
+ },
+ "tag_list": {
+ "type": ["array"],
+ "items": { "type": "string" }
+ },
+ "only": {
+ "type": ["array", "object", null],
+ "items": { "type": ["string", "array"]}
+ },
+ "except": {
+ "type": ["array", "object", null],
+ "items": { "type": ["string", "array"]}
+ }
+ },
+ "additionalProperties": false
+}