{
    "title": "Diagnose request v1",
    "description": "Requests a diagnostic report of a designated circuit.",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "https://api.nextpertise.nl/schemas/broadband/diagnostics/diagnose_request_v1.json",
    "type": "object",
    "properties": {
        "type": {
            "description": "Enum options:<pre class=\"empty-params-pre\">delt|selt|fiber-check|ont-check|ont-lan-check</pre>. Defines the requested report type",
            "type": "string",
            "enum": [
                "delt",
                "selt",
                "fiber-check",
                "ont-check",
                "ont-lan-check"
            ]
        },
        "nid": {
            "title": "Broadband NID",
            "description": "Carrier or circuit identification. To harmonize the way ordered broadband products are identified.",
            "type": [
                "string",
                "null"
            ],
            "pattern": "^[0-9]{4}[A-Z]{2}[0-9]{5}[0-9A-Z]{4}$"
        }
    },
    "additionalProperties": false,
    "required": [
        "type",
        "nid"
    ]
}