{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/iqrfOsUpgradeList.json",
    "type": "array",
    "title": "IQRF OS and DPA upgrades",
    "items": {
        "type": "object",
        "title": "IQRF OS and DPA upgrade",
        "required": [
            "dpa",
            "os",
            "notes"
        ],
        "additionalProperties": false,
        "properties": {
            "dpa": {
                "type": "object",
                "title": "DPA",
                "required": [
                    "version",
                    "attributes",
                    "downloadPath"
                ],
                "additionalProperties": false,
                "properties": {
                    "version": {
                        "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/definitions/iqrf.json#/definitions/dpaVersion"
                    },
                    "attributes": {
                        "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/definitions/iqrf.json#/definitions/versionAttributes"
                    },
                    "downloadPath": {
                        "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/definitions/iqrf.json#/definitions/downloadPath"
                    },
                    "rfMode": {
                        "description": "RF mode of the DPA plugin, specified only for DPA versions lower than 4.00",
                        "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/definitions/iqrf.json#/definitions/rfMode"
                    }
                }
            },
            "os": {
                "type": "object",
                "title": "IQRF OS",
                "required": [
                    "build",
                    "version",
                    "trFamily",
                    "attributes",
                    "downloadPath"
                ],
                "additionalProperties": false,
                "properties": {
                    "build": {
                        "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/definitions/iqrf.json#/definitions/osBuild"
                    },
                    "version": {
                        "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/definitions/iqrf.json#/definitions/osVersion"
                    },
                    "trFamily": {
                        "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/definitions/iqrf.json#/definitions/trFamily"
                    },
                    "attributes": {
                        "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/definitions/iqrf.json#/definitions/versionAttributes"
                    },
                    "downloadPath": {
                        "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/definitions/iqrf.json#/definitions/downloadPath"
                    }
                }
            },
            "notes": {
                "type": "string",
                "title": "Upgrade notes",
                "example": "IQRF OS 4.05D, DPA 4.16"
            }
        }
    }
}
