Skip to content
Snippets Groups Projects
job.json 2.72 KiB
Newer Older
  "$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",
            "type": {"$ref":"#/definitions/inputs-property-type"},
            "id": {"$ref":"#/definitions/inputs-property-id"},
            "name": {"$ref":"#/definitions/inputs-property-name"}
    },
    "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": {
      "required": [
        "type",
        "id"
      ],
      "additionalProperties":false
    },
Megan Henning's avatar
Megan Henning committed
    "origin": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "id": {
          "type": ["string", "null"]
        }
      },
      "required": [
        "type",
        "id"
      ],
      "additionalProperties":false
    },
    "saved_files": {
Megan Henning's avatar
Megan Henning committed
      "type": "array",
      "items": {"$ref": "../mongo/file.json"}
    },
    },

    "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"