{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "properties": {
    "sandbox_id": {
      "description": "A unique identifier for the sandbox.",
      "type": "string"
    },
    "uri": {
      "description": "The URI of the sandbox.",
      "type": "string",
      "format": "uri"
    },
    "checksums": {
      "description": "A hash where each key is one of the checksums that you are willing to upload",
      "patternProperties": {
        "[0-9a-f]{32}": {
          "type": "object",
          "properties": {
            "url": {
              "description": "The URL the file should be uploaded to. Only specified if needs_upload is true.",
              "type": "string",
              "format": "uri"
            },
            "needs_upload": {
              "description": "true if the checksum is not already on the server; false if it is.",
              "type": "boolean"
            }
          },
          "required": [
            "needs_upload"
          ]
        }
      }
    }
  }
}
