{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/networkWifiList.json",
    "type": "array",
    "title": "WiFi network list",
    "description": "List of available WiFi networks.",
    "example": [
        {
            "inUse": true,
            "bssid": "04:F0:21:24:1E:53",
            "ssid": "WIFI MAGDA",
            "mode": "infrastructure",
            "channel": 36,
            "rate": "405 Mbit/s",
            "signal": 60,
            "security": "WPA2-Personal",
            "interface": "wlp4s0"
        }
    ],
    "items": {
        "type": "object",
        "title": "WiFi network",
        "description": "Information about WiFI network.",
        "example": {
            "inUse": true,
            "bssid": "04:F0:21:24:1E:53",
            "ssid": "WIFI MAGDA",
            "mode": "infrastructure",
            "channel": 36,
            "rate": "405 Mbit/s",
            "signal": 60,
            "security": "WPA2-Personal",
            "interface": "wlp4s0"
        },
        "required": [
            "inUse",
            "bssid",
            "ssid",
            "mode",
            "channel",
            "rate",
            "signal",
            "security",
            "interface"
        ],
        "additionalProperties": false,
        "properties": {
            "inUse": {
                "type": "boolean",
                "title": "Is in use?",
                "example": true
            },
            "bssid": {
                "type": "string",
                "title": "BSSID",
                "description": "Basic Services Set Identifier",
                "pattern": "^[0-9A-Fa-f]{2}(:[0-9A-Fa-f]{2}){5}$",
                "example": "04:F0:21:24:1E:53"
            },
            "ssid": {
                "type": "string",
                "title": "SSID",
                "description": "Service Set Identifier",
                "example": "WIFI MAGDA"
            },
            "mode": {
                "type": "string",
                "title": "Network mode",
                "enum": [
                    "adhoc",
                    "infrastructure",
                    "mesh"
                ],
                "example": "infrastructure"
            },
            "channel": {
                "type": "integer",
                "minimum": 0,
                "title": "Network channel",
                "example": 36
            },
            "rate": {
                "type": "string",
                "title": "Speed rate",
                "example": "405 Mbit/s"
            },
            "signal": {
                "type": "integer",
                "title": "Signal strength",
                "minimum": 0,
                "maximum": 100,
                "example": 60
            },
            "security": {
                "type": "string",
                "enum": [
                    "OWE",
                    "OWE-TM",
                    "Open",
                    "WEP",
                    "WPA2-Enterprise",
                    "WPA2-Personal",
                    "WPA2/WPA3-Enterprise",
                    "WPA2/WPA3-Personal",
                    "WPA3-Enterprise",
                    "WPA3-Enterprise-192bit",
                    "WPA3-Personal",
                    "WPA-Enterprise",
                    "WPA-Personal",
                    "WPA/WPA2-Enterprise",
                    "WPA/WPA2-Personal"
                ],
                "title": "Network security",
                "example": "WPA2-Personal"
            },
            "interface": {
                "type": "string",
                "title": "Network interface",
                "example": "wlp4s0"
            }
        }
    }
}
