{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://judkins.house/apis/k2/v1/bastionConfigSimple.json",
    "$$target": "bastionConfigSimple.json",
    "title": "A Bastion configuration",
    "description": "Properties pertaining to a Bastion.",
    "properties": {
        "name": {
            "description": "Name of the Bastion configuration.",
            "type": "string"
        },
        "kind": {
            "description": "Type of bastion config",
            "enum": [
                "bastion"
            ],
            "type": "string"
        },
        "listenPort": {
            "description": "What port number to open for the ssh tunnel, default is 22",
            "type": "number",
            "minimum": 0,
            "default": 22,
            "maximum": 65535
        }
    },
    "required": [
        "name",
        "kind"
    ],
    "additionalProperties": false,
    "type": "object"
}