-
Notifications
You must be signed in to change notification settings - Fork 38
/
source-state.schema.json
41 lines (41 loc) · 1.05 KB
/
source-state.schema.json
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
36
37
38
39
40
41
{
"$defs": {
"source-state": {
"file": {
"type": "object",
"properties": {
"url": { "type": "string" },
"checksum": {
"type": "object",
"properties": {
"md5": { "type": "string" },
"sha1": { "type": "string" },
"sha256": { "type": "string" },
"sha512": { "type": "string" }
}
},
"version": { "type": "string" },
"timestamp": { "type": "string" }
},
"required": [ "url", "checksum" ]
},
"git": {
"type": "object",
"properties": {
"url": { "type": "string" },
"commit": { "type": "string" },
"tag": { "type": "string" },
"branch": { "type": "string" },
"version": { "type": "string" },
"timestamp": { "type": "string" }
},
"required": [ "url" ]
}
}
},
"type": "object",
"anyOf": [
{ "$ref": "#/$defs/source-state/file" },
{ "$ref": "#/$defs/source-state/git" }
]
}