-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
35 lines (35 loc) · 1.13 KB
/
schema.json
File metadata and controls
35 lines (35 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"\$schema": "http://json-schema.org/draft-07/schema#",
"title": "GitStuntsManifest",
"description": "The manifest for a chunked and optionally encrypted asset in Git",
"type": "object",
"required": ["slug", "filename", "size", "chunks"],
"properties": {
"slug": { "type": "string" },
"filename": { "type": "string" },
"size": { "type": "integer" },
"chunks": {
"type": "array",
"items": {
"type": "object",
"required": ["index", "size", "digest", "blob"],
"properties": {
"index": { "type": "integer" },
"size": { "type": "integer" },
"digest": { "type": "string", "description": "SHA-256 hash" },
"blob": { "type": "string", "description": "Git OID" }
}
}
},
"encryption": {
"type": "object",
"required": ["algorithm", "nonce", "tag", "encrypted"],
"properties": {
"algorithm": { "type": "string" },
"nonce": { "type": "string", "description": "Base64 encoded" },
"tag": { "type": "string", "description": "Base64 encoded" },
"encrypted": { "type": "boolean" }
}
}
}
}