{
    "title": "Settings for an Espruino project run from VS Code",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "This file contains the various settings for connecting and setting up an Espruino device and running a program on it. Primarily this is used by the Espruino VS Code extension",
    "type": "object",
    "required": [
        "port",
        "baudrate",
        "autoConnect",
        "resetBeforeSend"
    ],
    "port": {
        "title": "The COM port which the device will connect via",
        "type": "string"
    },
    "baudrate": {
        "title": "The baudrate for the connection to use when connecting to the port",
        "type": "number"
    },
    "autoConnect": {
        "title": "Should the specified port be connected to when VSCode activates",
        "type": "boolean"
    },
    "resetBeforeSend": {
        "title": "Reset the device before before sending the new file",
        "type": "boolean"
    },
    "properties": {
        "port": {
            "$ref": "#/port"
        },
        "baudrate": {
            "$ref": "#/baudrate"
        },
        "autoConnect": {
            "$ref": "#/autoConnect"
        },
        "resetBeforeSend": {
            "$ref": "#/resetBeforeSend"
        }
    }
}