{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "CiBuildSettings", "type": "object", "additionalProperties": false, "required": [ "build" ], "properties": { "env": { "type": [ "array", "null" ], "items": { "type": "string" } }, "build": { "minLength": 1, "oneOf": [ { "$ref": "#/definitions/Command" } ] }, "prepare": { "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/Command" } ] }, "post_build": { "oneOf": [ { "type": "null" }, { "$ref": "#/definitions/Command" } ] }, "emails": { "type": [ "array", "null" ], "items": { "type": "string" } } }, "definitions": { "Command": { "type": "object", "additionalProperties": false, "required": [ "path" ], "properties": { "path": { "type": "string", "minLength": 1 }, "args": { "type": [ "array", "null" ], "items": { "type": "string" } }, "env": { "type": [ "array", "null" ], "items": { "type": "string" } }, "working_dir": { "type": [ "null", "string" ] } } } } }