4 "id": "http://some.site.somewhere/entry-schema#",
5 "$schema": "http://json-schema.org/draft-04/schema#",
6 "description": "schema for an fstab entry",
8 "required": [ "storage" ],
13 { "$ref": "#/definitions/diskDevice" },
14 { "$ref": "#/definitions/diskUUID" },
15 { "$ref": "#/definitions/nfs" },
16 { "$ref": "#/definitions/tmpfs" }
20 "enum": [ "ext3", "ext4", "btrfs" ],
26 "items": { "type": "string" },
29 "readonly": { "type": "boolean" }
34 "type": { "enum": [ "disk" ] },
37 "pattern": "^/dev/[^/]+(/[^/]+)*$"
40 "required": [ "type", "device" ],
41 "additionalProperties": false
45 "type": { "enum": [ "disk" ] },
48 "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
51 "required": [ "type", "label" ],
52 "additionalProperties": false
56 "type": { "enum": [ "nfs" ] },
59 "pattern": "^(/[^/]+)+$"
64 { "format": "host-name" },
70 "required": [ "type", "server", "remotePath" ],
71 "additionalProperties": false
75 "type": { "enum": [ "tmpfs" ] },
82 "required": [ "type", "sizeInMB" ],
83 "additionalProperties": false