{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/v2.7.0-rc3/schemas/definitions/networkConnection.json",
    "definitions": {
        "interfaceName": {
            "type": [
                "string",
                "null"
            ],
            "title": "Network interface name",
            "example": "eth0"
        },
        "name": {
            "type": "string",
            "title": "Network connection name",
            "example": "Wired connection 1"
        },
        "type": {
            "enum": [
                "6lowpan",
                "802-11-olpc-mesh",
                "802-11-wireless",
                "802-3-ethernet",
                "adsl",
                "bluetooth",
                "bond",
                "bridge",
                "cdma",
                "dummy",
                "generic",
                "gsm",
                "hsr",
                "infiniband",
                "ip-tunnel",
                "ipvlan",
                "loopback",
                "macsec",
                "macvlan",
                "ovs-bridge",
                "ovs-interface",
                "ovs-port",
                "pppoe",
                "team",
                "tun",
                "veth",
                "vlan",
                "vpn",
                "vrf",
                "vxlan",
                "wifi-p2p",
                "wimax",
                "wireguard",
                "wpan"
            ],
            "example": "802-3-ethernet",
            "title": "Network connection type",
            "type": "string"
        },
        "uuid": {
            "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/v2.7.0-rc3/schemas/definitions/common.json#/definitions/uuid",
            "title": "Network connection UUID"
        },
        "wifi": {
            "bssids": {
                "type": "array",
                "uniqueItems": true,
                "title": "Wi-Fi BSSIDs",
                "items": {
                    "type": "string",
                    "title": "Wi-Fi BSSID",
                    "pattern": "^[0-9A-Fa-f]{2}(:[0-9A-Fa-f]{2}){5}$",
                    "example": "00:11:22:33:44:55"
                }
            },
            "ssid": {
                "type": "string",
                "title": "Wi-Fi SSID",
                "description": "Wi-Fi Service Set Identifier",
                "example": "WIFI MAGDA"
            },
            "mode": {
                "type": "string",
                "title": "Wi-Fi network mode",
                "enum": [
                    "adhoc",
                    "ap",
                    "infrastructure",
                    "mesh"
                ],
                "example": "infrastructure"
            },
            "security": {
                "type": {
                    "type": "string",
                    "title": "Wi-Fi security type",
                    "enum": [
                        "open",
                        "owe",
                        "wep",
                        "leap",
                        "sae",
                        "wpa-eap",
                        "wpa-eap-suite-b-192",
                        "wpa-psk"
                    ],
                    "example": "wpa-psk"
                }
            }
        }
    }
}
