blob: a21b5b5a7258e39c371756ef5f948996995afddd [file] [log] [blame]
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Volume Descriptor Serialized Format",
"description": "Configuration for processing a volume image's volume descriptor.",
"definitions": {
"guid": {
"type": "string",
"maxLength": 36,
"minLength": 36
},
"volume_descriptor": {
"type": "object",
"properties": {
"magic": {
"type": "integer",
"minimum": 0
},
"instance_guid": {
"$ref": "#/definitions/guid"
},
"type_guid": {
"$ref": "#/definitions/guid"
},
"name": {
"type": "string",
"maxLength": 40
},
"block_size": {
"type": "integer",
"minimum": 0
},
"encryption_type": {
"type": "string",
"enum": [
"ENCRYPTION_TYPE_NONE",
"ENCRYPTION_TYPE_ZXCRYPT"
],
"default": "ENCRYPTION_TYPE_NONE"
},
"options": {
"type": "array",
"contains": {
"type": "integer",
"minimum": 0
},
"uniqueItems": true
}
},
"additionalProperties": false,
"required": [
"magic",
"instance_guid",
"type_guid",
"block_size",
"name"
]
}
},
"type": "object",
"$ref": "#/definitions/volume_descriptor"
}