{
	"$schema": "http://json-schema.org/draft-07/schema",
	"$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/schemas/modemList.json",
	"type": "array",
	"title": "Modem list",
	"examples": [
		{
			"interface": "ttyUSB4",
			"imei": "490154203237518",
			"manufacturer": "huawei",
			"model": "E3131",
			"state": "registered",
			"failedReason": null,
			"signal": 80,
			"rssi": -63
		}
	],
	"additionalItems": false,
	"items": {
		"$id": "#/items",
		"type": "object",
		"title": "Modem",
		"description": "Information about a LTE Modem.",
		"required": [
			"interface",
			"imei",
			"manufacturer",
			"model",
			"state",
			"failedReason",
			"signal",
			"rssi"
		],
		"additionalProperties": false,
		"properties": {
			"interface": {
				"$id": "#/items/properties/interface",
				"title": "Modem network interface",
				"type": "string",
				"description": "Network interface used by the LTE modem.",
				"example": "cdc-wdm0"
			},
			"imei": {
				"$id": "#/items/properties/imei",
				"title": "Modem IMEI",
				"type": "string",
				"description": "IMEI of the LTE modem.",
				"example": "490154203237518"
			},
			"manufacturer": {
				"$id": "#/items/properties/manufacturer",
				"title": "Modem manufacturer",
				"type": "string",
				"description": "Manufacturer of the LTE modem.",
				"example": "huawei"
			},
			"model": {
				"$id": "#/items/properties/model",
				"title": "Modem model",
				"type": "string",
				"description": "Model of the LTE modem.",
				"example": "E3131"
			},
			"state": {
				"$id": "#/items/properties/state",
				"title": "Modem state",
				"type": "string",
				"enum": [
					"failed",
					"unknown",
					"initializing",
					"locked",
					"disabled",
					"disabling",
					"enabling",
					"enabled",
					"searching",
					"registered",
					"disconnecting",
					"connecting",
					"connected"
				],
				"description": "State of the LTE modem.",
				"example": "registered"
			},
			"failedReason": {
				"$id": "#/items/properties/failedReason",
				"title": "Modem failed reason",
				"oneOf": [
					{
						"type": "null"
					},
					{
						"type": "string",
						"enum": [
							"esim-without-profiles",
							"none",
							"sim-error",
							"sim-missing",
							"unknown",
							"unknown-capabilities"
						]
					}
				],
				"description": "Reason why the modem failed to connect.",
				"example": null
			},
			"signal": {
				"$id": "#/items/properties/signal",
				"title": "Modem signal",
				"description": "Modem signal strength.",
				"type": "integer",
				"minimum": 0,
				"maximum": 100,
				"example": 80
			},
			"rssi": {
				"$id": "#/items/properties/rssi",
				"title": "RSSI",
				"description": "RSSI dBm",
				"oneOf": [
					{
						"type": "null"
					},
					{
						"type": "number"
					}
				],
				"example": -63
			}
		}
	}
}
