{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "definitions": { "_id": {"$ref":"../definitions/objectid.json#"}, "id": {"$ref":"../definitions/objectid.json#"}, "name": {"type":"string"}, "inputs-property-type":{"type":"string"}, "inputs-property-id":{"type":"string"}, "inputs-property-name":{"type":"string"}, "inputs-object": { "type": "object", "additionalProperties": { "type": "object", "properties": { "type": {"$ref":"#/definitions/inputs-property-type"}, "id": {"$ref":"#/definitions/inputs-property-id"}, "name": {"$ref":"#/definitions/inputs-property-name"} }, "required": [ "type", "id", "name" ], "additionalProperties":false } }, "inputs-array":{ "type":"array", "items":{ "type":"object", "properties":{ "type": {"$ref":"#/definitions/inputs-property-type"}, "id": {"$ref":"#/definitions/inputs-property-id"}, "name": {"$ref":"#/definitions/inputs-property-name"}, "input":{"type":"string"} } } }, "destination": { "type": "object", "properties": { "type": { "type": "string" }, "id": { "type": "string" } }, "required": [ "type", "id" ], "additionalProperties":false }, "origin": { "type": "object", "properties": { "type": { "type": "string" }, "id": { "type": ["string", "null"] } }, "required": [ "type", "id" ], "additionalProperties":false }, "saved_files": { "type": "array", "items": {"$ref": "../mongo/file.json"} }, "tags": { "type": "array", "items": { "type": "string" } }, "state":{ "type":"string" }, "attempt":{ "type":"integer" }, "config":{ "oneOf":[ { "enum":[null] }, { "type":"object" } ] }, "request":{ "type":"object", "properties":{ "inputs":{ "type":"array", "items":{ "type":"object", "properties":{ "type":{"enum":["http", "scitran"]}, "uri":{"type":"string"}, "location":{"type":"string"}, "vu":{"type":"string"} }, "required":["type", "uri", "location"] } }, "target":{"type":"object"}, "outputs":{"type":"array"} } }, "saved_files":{ "type":"array" } } }