{
	"$schema": "http://json-schema.org/draft-07/schema",
	"$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/definitions/networkConnection.json",
	"definitions": {
		"interfaceName": {
			"$id": "#/definitions/interfaceName",
			"oneOf": [
				{"type": "null"},
				{"type": "string"}
			],
			"title": "Network interface name",
			"example": "eth0"
		},
		"name": {
			"$id": "#/definitions/name",
			"type": "string",
			"title": "Network connection name",
			"example": "Wired connection 1"
		},
		"type": {
			"$id": "#/definitions/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": {
			"$id": "#/definitions/uuid",
			"$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/definitions/common.json#/definitions/uuid",
			"title": "Network connection UUID"
		},
		"wifi": {
			"id": "#/definitions/wifi",
			"bssids": {
				"$id": "#/definitions/wifi/bssids",
				"type": "array",
				"title": "Wi-Fi BSSIDs",
				"items": {
					"$id": "#/definitions/wifi/bssids/items",
					"type": "string",
					"title": "Wi-Fi BSSID",
					"example": "00:11:22:33:44:55"
				}
			},
			"ssid": {
				"$id": "#/definitions/wifi/ssid",
				"type": "string",
				"title": "Wi-Fi SSID",
				"description": "Wi-Fi Service Set Identifier",
				"example": "WIFI MAGDA"
			},
			"mode": {
				"$id": "#/definitions/wifi/mode",
				"type": "string",
				"title": "Wi-Fi network mode",
				"enum": [
					"adhoc",
					"ap",
					"infrastructure",
					"mesh"
				],
				"example": "infrastructure"
			},
			"security": {
				"$id": "#/properties/wifi/security",
				"type": {
					"$id": "#/definitions/wifi/security/type",
					"type": "string",
					"title": "Wi-Fi security type",
					"enum": [
						"open",
						"wep",
						"leap",
						"wpa-eap",
						"wpa-psk"
					],
					"example": "wpa-psk"
				}
			}
		}
	}
}
