{
  "$schema": "http://json-schema.org/draft-04/schema",
  "title": "Git LFS HTTPS Batch API Response",
  "type": "object",

  "definitions": {
    "action": {
      "type": "object",
      "properties": {
        "href": {
          "type": "string"
        },
        "header": {
          "type": "object",
          "additionalProperties": true
        },
        "expires_in": {
            "type": "number",
            "maximum": 2147483647,
            "minimum": -2147483647
        },
        "expires_at": {
          "type": "string"
        }
      },
      "required": ["href"],
      "additionalProperties": false
    }
  },

  "properties": {
    "transfer": {
      "type": "string"
    },
    "objects": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "oid": {
            "type": "string"
          },
          "size": {
            "type": "number",
            "minimum": 0
          },
          "authenticated": {
            "type": "boolean"
          },
          "actions": {
            "type": "object",
            "properties": {
              "download": { "$ref": "#/definitions/action" },
              "upload": { "$ref": "#/definitions/action" },
              "verify": { "$ref": "#/definitions/action" }
            },
            "additionalProperties": false
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "number"
              },
              "message": {
                "type": "string"
              }
            },
            "required": ["code", "message"],
            "additionalProperties": false
          }
        },
        "required": ["oid", "size"],
        "additionalProperties": false
      }
    },
    "message": {
      "type": "string"
    },
    "request_id": {
      "type": "string"
    },
    "documentation_url": {
      "type": "string"
    }
  },
  "required": ["objects"]
}
