{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/v2.7.0-rc3/schemas/controllerPinConfig.json",
    "title": "Controller pin configuration",
    "description": "IQRF Gateway Controller pin configuration for specific boards",
    "type": "object",
    "required": [
        "name",
        "deviceType",
        "greenLed",
        "redLed",
        "button"
    ],
    "additionalProperties": false,
    "properties": {
        "id": {
            "title": "Config ID",
            "description": "Pin configuration database ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
        },
        "name": {
            "title": "Config name",
            "description": "Pin configuration name",
            "type": "string",
            "example": "IQD-GW-02"
        },
        "deviceType": {
            "type": "string",
            "title": "Device type",
            "enum": [
                "adapter",
                "board"
            ],
            "example": "board"
        },
        "greenLed": {
            "title": "Green LED pin",
            "description": "Green LED pin number",
            "type": "integer",
            "example": 0
        },
        "redLed": {
            "title": "Red LED pin",
            "description": "Red LED pin number",
            "type": "integer",
            "example": 1
        },
        "button": {
            "title": "Button pin",
            "description": "Controller API/management button pin number",
            "type": "integer",
            "example": 2
        },
        "sck": {
            "title": "Clock pin",
            "description": "I2C clock pin number",
            "type": "integer",
            "example": 11
        },
        "sda": {
            "title": "Data pin",
            "description": "I2C data pin number",
            "type": "integer",
            "example": 12
        }
    }
}
