Documentation
    Preparing search index...

    Interface IValidateErrorLog

    Error log information of the response validation failure.

    IValidationErrorLog is a structure representing the error log information when the returned value from the @TypedRoute or @EncryptedRoute decorated controller method is not following the promised type T.

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

    interface IValidateErrorLog {
        data: unknown;
        errors: IError[];
        method: string;
        path: string;
    }
    Index
    data: unknown

    Data that is not following the promised type T.

    errors: IError[]

    Validation error information with detailed reasons.

    method: string

    HTTP method of the request.

    path: string

    HTTP path of the request.