gitlab-org--gitlab-foss/spec/fixtures/api/schemas/job/job.json
Steve Azzopardi 71433c5525
Add JSON schema validation for job API
Start validating against the exciting JSON schema for the job controller JSON
response.

The JSON schema is not complete since there is quite a lot missing, this will
be done in a separate issue.
2018-09-03 18:49:52 +02:00

31 lines
714 B
JSON

{
"description": "Basic job information",
"type": "object",
"required": [
"id",
"name",
"started",
"build_path",
"playable",
"created_at",
"updated_at",
"status"
],
"properties": {
"id": { "type": "integer" },
"name": { "type": "string" },
"started": {
"oneOf": [
{ "type": "string", "format": "date-time" },
{ "type": "boolean" }
]
},
"build_path": { "type": "string" },
"retry_path": { "type": "string" },
"playable": { "type": "boolean" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"status": { "$ref": "../ci_detailed_status.json" }
},
"additionalProperties": true
}