{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://pushpin.kinga.dev/schemas/v2/device.json",
    "title": "Device",
    "description": "A device in an instrument",
    "type": "object",
    "properties": {
        "name": {
            "type": "string"
        },
        "slot": {
            "type": "integer"
        },
        "init": {
            "type": "array",
            "items": {
                "$ref": "/schemas/v2/message.json"
            }
        },
        "controls": {
            "type": "array",
            "items": {
                "$ref": "/schemas/v2/control.json"
            }
        }
    }
}