2016-08-30 19:11:44 +00:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"epoch": {
|
|
|
|
"description": "Scrub epoch",
|
|
|
|
"type": "integer"
|
|
|
|
},
|
|
|
|
"inconsistents": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"nspace": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"locator": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"snap": {
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"head",
|
|
|
|
"snapdir"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"description": "Errors for this object's snap",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"enum": [
|
2018-03-15 21:29:54 +00:00
|
|
|
"snapset_missing",
|
|
|
|
"snapset_corrupted",
|
2018-03-16 00:09:43 +00:00
|
|
|
"info_missing",
|
|
|
|
"info_corrupted",
|
2018-04-04 22:58:57 +00:00
|
|
|
"snapset_error",
|
2016-08-30 19:11:44 +00:00
|
|
|
"headless",
|
|
|
|
"size_mismatch",
|
|
|
|
"extra_clones",
|
|
|
|
"clone_missing"
|
|
|
|
]
|
|
|
|
},
|
2018-04-04 23:09:39 +00:00
|
|
|
"minItems": 0,
|
2016-08-30 19:11:44 +00:00
|
|
|
"uniqueItems": true
|
|
|
|
},
|
|
|
|
"missing": {
|
|
|
|
"description": "List of missing clones if clone_missing error set",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"extra_clones": {
|
|
|
|
"description": "List of extra clones if extra_clones error set",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "integer"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"name",
|
|
|
|
"nspace",
|
|
|
|
"locator",
|
|
|
|
"snap",
|
|
|
|
"errors"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"epoch",
|
|
|
|
"inconsistents"
|
|
|
|
]
|
|
|
|
}
|