• Set the logger function for the response validation failure.

    If you've configured the transformation option to validate.log in the tsconfig.json file, then the error log information of the response validation failure would be logged through this function instead of throwing the 400 bad request error.

    By the way, be careful. If you've configured the response transformation option to be validate.log, client may get wrong response data. Therefore, this way is not recommended in the common backend server case.

    Parameters

    Returns void

    console.log