{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "definitions": {
        "mntent": {
            "additionalItems": false,
            "description": "An fstab entry",
            "properties": {
                "device": {
                    "type": "string"
                },
                "dump": {
                    "minimum": 0,
                    "type": "integer"
                },
                "fsck": {
                    "minimum": 0,
                    "type": "integer"
                },
                "fstype": {
                    "type": "string"
                },
                "options": {
                    "items": {
                        "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                }
            },
            "required": [
                "device",
                "fstype"
            ],
            "title": "mntent",
            "type": "object"
        }
    },
    "description": "JSON representation of /etc/fstab",
    "patternProperties": {
        "^/([^/]+(/[^/]+)*)?$": {
            "$ref": "#/definitions/mntent"
        }
    },
    "properties": {
        "swap": {
            "$ref": "#/definitions/mntent"
        }
    },
    "required": [
        "/",
        "swap"
    ],
    "title": "/etc/fstab",
    "type": "object"
}