{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "PeripheralCollectionItem",
    "type": "object",
    "additionalProperties": false,
    "description": "Information on a single peripheral device used in trip matching",
    "properties": {
        "id": {
            "type": "string",
            "description": "Unique ID of the peripheral device (e.g., MAC address)"
        },
        "name": {
            "type": "string",
            "description": "Name of the peripheral device"
        },
        "alias": {
            "type": "string",
            "description": "Alias of the peripheral device set by the user"
        },
        "device_type": {
            "type": "string",
            "description": "Type of peripheral device (e.g., car, speaker, receiver)"
        },
        "profiles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Profiles used by the device (e.g., A2DP, HFP)"
        },
        "rssi": {
            "type": "integer",
            "description": "Bluetooth RSSI signal level"
        },
        "protocol": {
            "type": "string",
            "enum": [
              "BLUETOOTH_LE",
              "BLUETOOTH_CLASSIC",
              "BLUETOOTH_DUAL",
              "BLUETOOTH_UNKNOWN",
              "CAR_PLAY",
              "AUDIO",
              "ANDROID_AUTO",
              "UNKNOWN"
            ],
            "description": "Protocol of the connection (e.g., Bluetooth_LE, Bluetooth_Classic, etc.)"
        }
    },
    "required": [
        "name"
    ]
}