{
    "title": "List reports request v1",
    "description": "Produce a list of the stored diagnostic reports.",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "https://api.nextpertise.nl/schemas/broadband/diagnostics/list_reports_request_v1.json",
    "type": "object",
    "properties": {
        "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}$"
        },
        "pagination": {
            "title": "Request Pagination Object",
            "description": "Used to limit the amount of items returned.",
            "type": "object",
            "properties": {
                "per_page": {
                    "description": "Amount of items per page. '0' means 'all' on some endpoints.",
                    "type": "integer",
                    "maximum": 10000,
                    "minimum": 0
                },
                "page": {
                    "description": "The requested page-index, starts at 1.",
                    "type": "integer",
                    "minimum": 1
                }
            },
            "required": [
                "per_page",
                "page"
            ]
        },
        "sort": {
            "type": "object",
            "properties": {
                "uuid": {
                    "type": "string",
                    "enum": [
                        "ASC",
                        "DESC"
                    ],
                    "description": "Enum options:<pre class=\"empty-params-pre\">ASC|DESC</pre>. undefined"
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "ASC",
                        "DESC"
                    ],
                    "description": "Enum options:<pre class=\"empty-params-pre\">ASC|DESC</pre>. undefined"
                },
                "status": {
                    "type": "string",
                    "enum": [
                        "ASC",
                        "DESC"
                    ],
                    "description": "Enum options:<pre class=\"empty-params-pre\">ASC|DESC</pre>. undefined"
                },
                "updated": {
                    "type": "string",
                    "enum": [
                        "ASC",
                        "DESC"
                    ],
                    "description": "Enum options:<pre class=\"empty-params-pre\">ASC|DESC</pre>. undefined"
                }
            },
            "additionalProperties": false
        },
        "filter": {
            "type": "object",
            "properties": {
                "uuid": {
                    "type": "string"
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "delt",
                        "selt",
                        "fiber-check",
                        "ont-check",
                        "ont-lan-check"
                    ],
                    "description": "Enum options:<pre class=\"empty-params-pre\">delt|selt|fiber-check|ont-check|ont-lan-check</pre>. undefined"
                },
                "status": {
                    "type": "string",
                    "enum": [
                        "complete",
                        "error"
                    ],
                    "description": "Enum options:<pre class=\"empty-params-pre\">complete|error</pre>. undefined"
                }
            },
            "additionalProperties": false
        }
    },
    "required": [
        "nid"
    ],
    "additionalProperties": false
}