• Has valid email validator

    Parameters

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query]. Note:

      • body.email is required

    Returns Promise<number>

    200 Status OK

    Description

    This validator will check if email is valid by applying the following steps in sequence:

    1. Get email from context.body

    2. Check if email exist

    3. Check if email is valid

    Throws

    400 NBError Bad Request

    • email not exist in request body
    • Email format is incorrect

Generated using TypeDoc