{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/iqrfOsPatchDetail.json",
    "type": "object",
    "title": "IQRF OS patch",
    "additionalProperties": false,
    "required": [
        "id",
        "moduleType",
        "fromOsVersion",
        "fromOsBuild",
        "toOsVersion",
        "toOsBuild",
        "partNumber",
        "parts",
        "fileName"
    ],
    "properties": {
        "id": {
            "type": "integer",
            "minimum": 1,
            "title": "IQRF OS patch ID",
            "example": 1
        },
        "moduleType": {
            "type": "string",
            "title": "Module type",
            "description": "Type of module this patch is intended for",
            "example": "TR7x"
        },
        "fromOsVersion": {
            "type": "integer",
            "title": "From OS version",
            "description": "Version of OS this patch upgrades from",
            "example": 307
        },
        "fromOsBuild": {
            "type": "integer",
            "title": "From OS build",
            "description": "OS build number this patch upgrades",
            "example": 2160
        },
        "toOsVersion": {
            "type": "integer",
            "title": "Target OS version",
            "description": "Version of OS this patch upgrades to",
            "example": 400
        },
        "toOsBuild": {
            "type": "integer",
            "title": "Target OS build",
            "description": "Os build number this patch upgrades to",
            "example": 2225
        },
        "partNumber": {
            "type": "integer",
            "title": "Part number",
            "description": "Number of patch part number in case a patch is composed of multiple parts",
            "example": 1
        },
        "parts": {
            "type": "integer",
            "title": "Number of parts this patch is composed of",
            "example": 1
        },
        "fileName": {
            "type": "string",
            "title": "Patch file name",
            "example": "ChangeOS-TR7xD-307(0870)-400(08B1)-1of2.iqrf"
        }
    }
}
