{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/v2.7.0-rc3/schemas/totpAdd.json",
    "type": "object",
    "title": "TOTP token add",
    "additionalProperties": false,
    "required": [
        "name",
        "secret",
        "code",
        "password"
    ],
    "properties": {
        "name": {
            "title": "TOTP token name",
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "example": "Mobile authenticator"
        },
        "secret": {
            "title": "TOTP secret",
            "type": "string",
            "minLength": 1,
            "maxLength": 32,
            "example": "JBSWY3DPEHPK3PXP"
        },
        "code": {
            "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/v2.7.0-rc3/schemas/definitions/user.json#/definitions/totpCode"
        },
        "password": {
            "$ref": "https://apidocs.iqrf.org/openapi/iqrf-gateway-webapp/v2.7.0-rc3/schemas/definitions/user.json#/definitions/passwordOld",
            "title": "Password"
        }
    }
}
