{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/definitions/mapping.json",
    "definitions": {
        "id": {
            "type": "integer",
            "minimum": 1,
            "title": "Mapping ID",
            "example": 2
        },
        "type": {
            "type": "string",
            "title": "Mapping type",
            "enum": [
                "spi",
                "uart"
            ],
            "example": "uart"
        },
        "name": {
            "type": "string",
            "title": "Mapping name",
            "example": "Raspberry Pi"
        },
        "deviceType": {
            "type": "string",
            "title": "Device type",
            "enum": [
                "adapter",
                "board"
            ],
            "example": "board"
        },
        "iqrfInterface": {
            "type": "string",
            "title": "Device name",
            "example": "/dev/ttyS0"
        },
        "busEnableGpioPin": {
            "type": "integer",
            "title": "Bus enable pin",
            "example": 7
        },
        "pgmSwitchGpioPin": {
            "type": "integer",
            "title": "Programming mode switch pin",
            "example": 22
        },
        "powerEnableGpioPin": {
            "type": "integer",
            "title": "Power enable pin",
            "example": 23
        },
        "baudRate": {
            "type": "integer",
            "title": "UART baud rate",
            "enum": [
                1200,
                2400,
                4800,
                9600,
                19200,
                38400,
                57600,
                115200,
                230400
            ],
            "example": 57600
        },
        "i2cEnableGpioPin": {
            "type": "integer",
            "title": "I2C interface enable pin",
            "example": 7
        },
        "spiEnableGpioPin": {
            "type": "integer",
            "title": "SPI interface enable pin",
            "example": 10
        },
        "uartEnableGpioPin": {
            "type": "integer",
            "title": "UART interface enable pin",
            "example": 6
        }
    }
}
