]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | { |
2 | "$schema": "http://json-schema.org/draft-04/schema#", | |
3 | "type": "object", | |
4 | "properties": { | |
5 | "epoch": { | |
6 | "description": "Scrub epoch", | |
7 | "type": "integer" | |
8 | }, | |
9 | "inconsistents": { | |
10 | "type": "array", | |
11 | "items": { | |
12 | "type": "object", | |
13 | "properties": { | |
14 | "name": { | |
15 | "type": "string" | |
16 | }, | |
17 | "nspace": { | |
18 | "type": "string" | |
19 | }, | |
20 | "locator": { | |
21 | "type": "string" | |
22 | }, | |
23 | "snap": { | |
24 | "oneOf": [ | |
25 | { | |
26 | "type": "string", | |
27 | "enum": [ | |
28 | "head", | |
29 | "snapdir" | |
30 | ] | |
31 | }, | |
32 | { | |
33 | "type": "integer", | |
34 | "minimum": 0 | |
35 | } | |
36 | ] | |
37 | }, | |
38 | "errors": { | |
39 | "description": "Errors for this object's snap", | |
40 | "type": "array", | |
41 | "items": { | |
42 | "enum": [ | |
94b18763 FG |
43 | "snapset_missing", |
44 | "snapset_corrupted", | |
45 | "info_missing", | |
46 | "info_corrupted", | |
47 | "snapset_error", | |
7c673cae FG |
48 | "head_mismatch", |
49 | "headless", | |
50 | "size_mismatch", | |
51 | "extra_clones", | |
52 | "clone_missing" | |
53 | ] | |
54 | }, | |
94b18763 | 55 | "minItems": 0, |
7c673cae FG |
56 | "uniqueItems": true |
57 | }, | |
58 | "missing": { | |
59 | "description": "List of missing clones if clone_missing error set", | |
60 | "type": "array", | |
61 | "items": { | |
62 | "type": "integer" | |
63 | } | |
64 | }, | |
65 | "extra_clones": { | |
66 | "description": "List of extra clones if extra_clones error set", | |
67 | "type": "array", | |
68 | "items": { | |
69 | "type": "integer" | |
70 | } | |
71 | } | |
72 | }, | |
73 | "required": [ | |
74 | "name", | |
75 | "nspace", | |
76 | "locator", | |
77 | "snap", | |
78 | "errors" | |
79 | ] | |
80 | } | |
81 | } | |
82 | }, | |
83 | "required": [ | |
84 | "epoch", | |
85 | "inconsistents" | |
86 | ] | |
87 | } |