def METHOD_NAME(parameter_type, value, param, param_name=None):
    """
    Validate request parameter.
    The default validator provided by connexion returns a verbose error on failures. Overriding this method
    in order to strip additional details we do not want to propagate to the user.
    """
    error = super(CustomParameterValidator, CustomParameterValidator).METHOD_NAME(
        parameter_type, value, param, param_name
    )
    # When the request fails validation against the object schema the default returned error contains a first
    # line with a high level error messaging and then subsequent lines with the JSON schema details.
    # Stripping the JSON schema related part in order to not return this in the response.
    if error and "Failed validating" in error:
        error = error.split("\n", 1)[0]
    return error