git-lfs/docs/api/v1.3/http-v1.3-batch-response-schema.json

84 lines
1.8 KiB
JSON
Raw Normal View History

2015-06-24 21:03:29 +00:00
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Git LFS HTTPS Batch API v1.3 Response",
2015-06-24 21:03:29 +00:00
"type": "object",
"definitions": {
"action": {
"type": "object",
"properties": {
"href": {
"type": "string"
},
"header": {
"type": "object",
"additionalProperties": true
},
"expires_at": {
"type": "string"
}
},
"required": ["href"],
"additionalProperties": false
}
},
2015-06-24 21:03:29 +00:00
"properties": {
"transfer": {
"type": "string"
},
2015-06-24 21:03:29 +00:00
"objects": {
"type": "array",
"items": {
"type": "object",
"properties": {
"oid": {
"type": "string"
},
2015-06-24 21:06:28 +00:00
"size": {
"type": "number",
"minimum": 0
2015-06-24 21:06:28 +00:00
},
"authenticated": {
"type": "boolean"
},
2015-06-24 21:03:29 +00:00
"actions": {
"type": "object",
"properties": {
"download": { "$ref": "#/definitions/action" },
"upload": { "$ref": "#/definitions/action" },
"verify": { "$ref": "#/definitions/action" }
},
"additionalProperties": false
},
"error": {
"type": "object",
"properties": {
"code": {
2015-07-27 21:18:42 +00:00
"type": "number"
},
"message": {
"type": "string"
}
},
"required": ["code", "message"],
"additionalProperties": false
2015-06-24 21:03:29 +00:00
}
},
2015-07-28 15:14:03 +00:00
"required": ["oid", "size"],
2015-06-24 21:03:29 +00:00
"additionalProperties": false
}
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"documentation_url": {
"type": "string"
},
2015-06-24 21:03:29 +00:00
},
"required": ["objects"]
2015-06-24 21:03:29 +00:00
}