{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/userToken.json",
    "type": "object",
    "title": "JWT + user info",
    "additionalProperties": false,
    "required": [
        "preferences",
        "user",
        "token"
    ],
    "properties": {
        "preferences": {
            "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/userPreferences.json"
        },
        "user": {
            "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/latest/schemas/userDetail.json"
        },
        "token": {
            "type": "string",
            "pattern": "^[A-Za-z0-9-_=]+\\.[A-Za-z0-9-_=]+\\.?[A-Za-z0-9-_.+/=]*$",
            "title": "JSON Web Token",
            "example": "eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0.eyJpc3MiOiJBU1VTLUI4NS1QUk8tR0FNRVIiLCJqdGkiOiJBU1VTLUI4NS1QUk8tR0FNRVIiLCJpYXQiOiIxNTg3MjE2NjMzLjQ2NDEzNyIsImV4cCI6IjE1ODczMDMwMzMuNDY0MTM3IiwidWlkIjoxfQ."
        }
    }
}
