{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/v2.7.0-rc3/schemas/mosquittoUser.json",
    "type": "object",
    "title": "Mosquitto user",
    "additionalProperties": false,
    "required": [
        "id",
        "username",
        "createdAt",
        "state",
        "blockedAt"
    ],
    "properties": {
        "id": {
            "title": "User ID",
            "type": "integer",
            "minimum": 1,
            "example": 1
        },
        "username": {
            "title": "Username",
            "type": "string",
            "minLength": 1,
            "example": "test"
        },
        "createdAt": {
            "title": "Created at timestamp",
            "type": "string",
            "format": "date-time",
            "example": "2026-02-20T10:55:20.356Z"
        },
        "state": {
            "title": "User state",
            "type": "string",
            "enum": [
                "active",
                "blocked"
            ],
            "example": "active"
        },
        "blockedAt": {
            "title": "Blocked at timestamp",
            "type": [
                "string",
                "null"
            ],
            "format": "date-time",
            "example": "2026-02-20T10:55:20.356Z"
        }
    }
}
