{
    "title": "List user profiles request",
    "description": "List all profiles for loggedin users company",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "https://api.nextpertise.nl/schemas/user/list_profiles_request_v1.json",
    "type": "object",
    "properties": {
        "filter": {
            "type": "object",
            "properties": {
                "firstname": {
                    "type": "string"
                },
                "lastname": {
                    "type": "string"
                },
                "username": {
                    "type": "string"
                },
                "language": {
                    "type": "string"
                },
                "timezone": {
                    "type": "string"
                }
            },
            "maxProperties": 1,
            "additionalProperties": false
        },
        "sort": {
            "type": "object",
            "properties": {
                "firstname": {
                    "type": "string",
                    "enum": [
                        "ASC",
                        "DESC"
                    ],
                    "description": "Enum options:<pre class=\"empty-params-pre\">ASC|DESC</pre>. undefined"
                },
                "lastname": {
                    "type": "string",
                    "enum": [
                        "ASC",
                        "DESC"
                    ],
                    "description": "Enum options:<pre class=\"empty-params-pre\">ASC|DESC</pre>. undefined"
                },
                "username": {
                    "type": "string",
                    "enum": [
                        "ASC",
                        "DESC"
                    ],
                    "description": "Enum options:<pre class=\"empty-params-pre\">ASC|DESC</pre>. undefined"
                },
                "language": {
                    "type": "string",
                    "enum": [
                        "ASC",
                        "DESC"
                    ],
                    "description": "Enum options:<pre class=\"empty-params-pre\">ASC|DESC</pre>. undefined"
                },
                "timezone": {
                    "type": "string",
                    "enum": [
                        "ASC",
                        "DESC"
                    ],
                    "description": "Enum options:<pre class=\"empty-params-pre\">ASC|DESC</pre>. undefined"
                }
            },
            "maxProperties": 1,
            "additionalProperties": false
        },
        "paging": {
            "title": "Paginate",
            "description": "Request pagination of the result set.",
            "type": "object",
            "properties": {
                "offset": {
                    "description": "First record to include in result set.",
                    "type": "integer"
                },
                "length": {
                    "description": "Number of records to return, when the result set is smaller than this number it indicates that the last page is reached.",
                    "type": "integer"
                }
            },
            "additionalProperties": false,
            "required": [
                "offset",
                "length"
            ]
        }
    },
    "additionalProperties": false
}